aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/terminal/gwt/client/ui/TreeAction.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/itmill/toolkit/terminal/gwt/client/ui/TreeAction.java')
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/client/ui/TreeAction.java86
1 files changed, 43 insertions, 43 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/TreeAction.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/TreeAction.java
index 3e690455af..39cd917536 100644
--- a/src/com/itmill/toolkit/terminal/gwt/client/ui/TreeAction.java
+++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/TreeAction.java
@@ -5,47 +5,47 @@ package com.itmill.toolkit.terminal.gwt.client.ui;
*/
public class TreeAction extends Action {
- String targetKey = "";
- String actionKey = "";
-
- public TreeAction(ActionOwner owner) {
- super(owner);
- }
-
- public TreeAction(ActionOwner owner, String target, String action) {
- this(owner);
- this.targetKey = target;
- this.actionKey = action;
- }
-
- /**
- * Sends message to server that this action has been fired. Messages are
- * "standard" Toolkit 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.
- */
- public void execute() {
- owner.getClient().updateVariable(owner.getPaintableId(), "action",
- targetKey + "," + actionKey, true);
- owner.getClient().getContextMenu().hide();
- }
-
- public String getActionKey() {
- return actionKey;
- }
-
- public void setActionKey(String actionKey) {
- this.actionKey = actionKey;
- }
-
- public String getTargetKey() {
- return targetKey;
- }
-
- public void setTargetKey(String targetKey) {
- this.targetKey = targetKey;
- }
+ String targetKey = "";
+ String actionKey = "";
+
+ public TreeAction(ActionOwner owner) {
+ super(owner);
+ }
+
+ public TreeAction(ActionOwner owner, String target, String action) {
+ this(owner);
+ targetKey = target;
+ actionKey = action;
+ }
+
+ /**
+ * Sends message to server that this action has been fired. Messages are
+ * "standard" Toolkit 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.
+ */
+ public void execute() {
+ owner.getClient().updateVariable(owner.getPaintableId(), "action",
+ targetKey + "," + actionKey, true);
+ owner.getClient().getContextMenu().hide();
+ }
+
+ public String getActionKey() {
+ return actionKey;
+ }
+
+ public void setActionKey(String actionKey) {
+ this.actionKey = actionKey;
+ }
+
+ public String getTargetKey() {
+ return targetKey;
+ }
+
+ public void setTargetKey(String targetKey) {
+ this.targetKey = targetKey;
+ }
}