]> source.dussan.org Git - vaadin-framework.git/commitdiff
Refactoring for new package convention.
authorJani Laakso <jani.laakso@itmill.com>
Thu, 20 Sep 2007 07:59:47 +0000 (07:59 +0000)
committerJani Laakso <jani.laakso@itmill.com>
Thu, 20 Sep 2007 07:59:47 +0000 (07:59 +0000)
svn changeset:2347/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/Action.java

index f01c035ad64886aab6a26c46689798e2dc05e628..8e0dbbeeb5660a7b5f1704352e4dc06bcb539fb8 100644 (file)
@@ -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("<img src=\""+getIconUrl()+"\" alt=\"icon\" />");
+               if (getIconUrl() != null) {
+                       sb.append("<img src=\"" + getIconUrl() + "\" alt=\"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