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).
- Version:
- $Id: c6b9ca22d0c0e40699c0dcd5dd060b47ad6d82b0 $
|
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
Copyright © 2004–2015 XWiki. All rights reserved.