Package com.oorian.messaging.commands
Class SetFocusAndSelectCommand
java.lang.Object
com.oorian.messaging.commands.Command
com.oorian.messaging.commands.SetFocusAndSelectCommand
Command that sets focus on an input element and selects all of its text content.
This command is useful for directing user attention to an input field and pre-selecting its contents so the user can immediately type a replacement value.
-
Constructor Summary
ConstructorsConstructorDescriptionSetFocusAndSelectCommand(String elementId) Creates a SetFocusAndSelectCommand for the specified element. -
Method Summary
Methods inherited from class com.oorian.messaging.commands.Command
getElementId, getId, setElementId, toString
-
Constructor Details
-
SetFocusAndSelectCommand
Creates a SetFocusAndSelectCommand for the specified element.- Parameters:
elementId- the ID of the input element to focus and select
-
-
Method Details