Date: 2004-07-26T23:27:17
   Editor: MichaelMcGrady <[EMAIL PROTECTED]>
   Wiki: Apache Struts Wiki
   Page: StrutsCatalogMultipleImageButtonsWithNoJavaScript
   URL: http://wiki.apache.org/struts/StrutsCatalogMultipleImageButtonsWithNoJavaScript

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -20,36 +20,22 @@
 {{{
 public class Button
     implements Serializable {
-
-  private Command cancel       = new Command("cancel");
-  private Command clear        = new Command("clear");
-  private Command commitChange = new Command("commitChange");
-  private Command exit         = new Command("exit");
-  private Command reset        = new Command("reset");
-  private Command select       = new Command("select");
-  private Command submit       = new Command("submit");
+  private Command reset  = new Command();
+  private Command submit = new Command();
 
   public Button() {}
-  public Command getCancel()       { return cancel; }
-  public Command getClear()        { return clear; }
-  public Command getCommitChange() { return commitChange; }
-  public Command getExit()         { return exit; }
-  public Command getReset()        { return reset; }
-  public Command getSelect()       { return select; }
-  public Command getSubmit()       { return submit; }
+  public Command getReset()  { return reset; }
+  public Command getSubmit() { return submit; }
 
   public class Command
       implements Serializable {
-    private String  name;
     private Integer x, y;
 
-    public Command()                    { }
-    public Command(String name)         { this.name = name; }
-    public void setName(String name) { this.name = name; }
+    public Command()                 { }
     public void setX(Integer x)      { this.x = x; }
     public void setY(Integer y)      { this.y = y; }
     public boolean pressed()         { return (x != null || y != null); }
-    public String toString()         { return "Button.Command: name = " + name + " x 
= " + x + " y = " + y; }
+    public String toString()         { return "Button.Command: x = " + x + " y = " + 
y; }
   }
 }
 }}}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to