From 21a92697f9bee9965c3184a2442b4a344835d730 Mon Sep 17 00:00:00 2001 From: Jani Laakso Date: Thu, 20 Sep 2007 07:59:47 +0000 Subject: [PATCH] Refactoring for new package convention. svn changeset:2347/svn branch:trunk --- .../terminal/gwt/client/ui/Action.java | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/Action.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/Action.java index f01c035ad6..8e0dbbeeb5 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/Action.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/Action.java @@ -4,29 +4,29 @@ import com.google.gwt.user.client.Command; import com.itmill.toolkit.terminal.gwt.client.ApplicationConnection; /** - * + * */ public abstract class Action implements Command { - - protected IActionOwner owner; - + + protected ActionOwner owner; + protected String iconUrl = null; - + protected String caption = ""; - - public Action(IActionOwner owner) { + + public Action(ActionOwner owner) { this.owner = owner; } - + /** * Executed when action fired */ public abstract void execute(); - + public String getHTML() { StringBuffer sb = new StringBuffer(); - if(getIconUrl() != null) { - sb.append("\"icon\""); + if (getIconUrl() != null) { + sb.append("\"icon\""); } sb.append(getCaption()); @@ -40,24 +40,24 @@ public abstract class Action implements Command { public void setCaption(String caption) { this.caption = caption; } - + public String getIconUrl() { return iconUrl; } } /** - * Action owner must provide a set of actions for context menu - * and IAction objects. + * Action owner must provide a set of actions for context menu and IAction + * objects. */ -interface IActionOwner { - +interface ActionOwner { + /** * @return Array of IActions */ public Action[] getActions(); public ApplicationConnection getClient(); - + public String getPaintableId(); } \ No newline at end of file -- 2.39.5