org.xwiki.gwt.user.client
Class FocusCommand
java.lang.Object
org.xwiki.gwt.user.client.FocusCommand
- All Implemented Interfaces:
- com.google.gwt.core.client.Scheduler.ScheduledCommand, com.google.gwt.user.client.Command
public class FocusCommand
- extends Object
- implements com.google.gwt.user.client.Command
Command that sets focus on the specified widget.
We need the deferred command focus setting in order to handle the issue described at
http://code.google.com/p/google-web-toolkit/issues/detail?id=1849 and the applied workarounds in existing code (e.g.
GlassPanel).
Constructor Summary |
FocusCommand(com.google.gwt.user.client.ui.Focusable widget)
Builds a focus command for the specified widget. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FocusCommand
public FocusCommand(com.google.gwt.user.client.ui.Focusable widget)
- Builds a focus command for the specified widget.
- Parameters:
widget
- the widget to set focus to upon execution
execute
public void execute()
- Specified by:
execute
in interface com.google.gwt.core.client.Scheduler.ScheduledCommand
- Specified by:
execute
in interface com.google.gwt.user.client.Command