asquare.gwt.tk.client.ui.commands
Class FocusCommand
java.lang.Object
asquare.gwt.tk.client.ui.commands.FocusCommand
- All Implemented Interfaces:
- Command
public class FocusCommand
- extends Object
- implements Command
Focuses or blurs a widget.
- See Also:
DeferredCommand.add(com.google.gwt.user.client.Command)
|
Constructor Summary |
FocusCommand(HasFocus widget)
Constructs a command which will focus the specified widget. |
FocusCommand(HasFocus widget,
boolean focus)
Constructs a command which will focus or blur the specified widget. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FocusCommand
public FocusCommand(HasFocus widget)
- Constructs a command which will focus the specified widget.
- Parameters:
widget - a widget which implements HasFocus
FocusCommand
public FocusCommand(HasFocus widget,
boolean focus)
- Constructs a command which will focus or blur the specified widget.
- Parameters:
widget - a widget which implements HasFocusfocus - true to focus widget, false to blur
execute
public void execute()
- Specified by:
execute in interface Command
© 2007 Mat Gessel