com.vaadin.terminal.gwt.client.ui
Class TreeAction

java.lang.Object
  extended by com.vaadin.terminal.gwt.client.ui.Action
      extended by com.vaadin.terminal.gwt.client.ui.TreeAction
All Implemented Interfaces:
com.google.gwt.core.client.Scheduler.ScheduledCommand, com.google.gwt.user.client.Command

public class TreeAction
extends Action

This class is used for "row actions" in VTree and ITable


Field Summary
 
Fields inherited from class com.vaadin.terminal.gwt.client.ui.Action
caption, iconUrl, owner
 
Constructor Summary
TreeAction(ActionOwner owner)
           
TreeAction(ActionOwner owner, String target, String action)
           
 
Method Summary
 void execute()
          Sends message to server that this action has been fired.
 String getActionKey()
           
 String getTargetKey()
           
 void setActionKey(String actionKey)
           
 void setTargetKey(String targetKey)
           
 
Methods inherited from class com.vaadin.terminal.gwt.client.ui.Action
getCaption, getHTML, getIconUrl, setCaption, setIconUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeAction

public TreeAction(ActionOwner owner)

TreeAction

public TreeAction(ActionOwner owner,
                  String target,
                  String action)
Method Detail

execute

public void execute()
Sends message to server that this action has been fired. Messages are "standard" Vaadin messages whose value is comma separated pair of targetKey (row, treeNod ...) and actions id. Variablename is always "action". Actions are always sent immediatedly to server.

Specified by:
execute in interface com.google.gwt.core.client.Scheduler.ScheduledCommand
Specified by:
execute in interface com.google.gwt.user.client.Command
Specified by:
execute in class Action

getActionKey

public String getActionKey()

setActionKey

public void setActionKey(String actionKey)

getTargetKey

public String getTargetKey()

setTargetKey

public void setTargetKey(String targetKey)


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.