From: Jani Laakso Date: Thu, 20 Sep 2007 07:59:47 +0000 (+0000) Subject: Refactoring for new package convention. X-Git-Tag: 6.7.0.beta1~5973 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=21a92697f9bee9965c3184a2442b4a344835d730;p=vaadin-framework.git Refactoring for new package convention. svn changeset:2347/svn branch:trunk --- 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