GWT Tk 0.2.3

asquare.gwt.tk.client.ui.commands
Class FocusCommand

java.lang.Object
  extended by 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.
 
Method Summary
 void execute()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 HasFocus
focus - true to focus widget, false to blur
Method Detail

execute

public void execute()
Specified by:
execute in interface Command

GWT Tk 0.2.3

© 2007 Mat Gessel