Date: 2004-07-26T17:19:11
Editor: MichaelMcGrady <[EMAIL PROTECTED]>
Wiki: Apache Struts Wiki
Page: StrutsCatalogMultipleImageButtonsWithNoJavaScript
URL: http://wiki.apache.org/struts/StrutsCatalogMultipleImageButtonsWithNoJavaScript
no comment
Change Log:
------------------------------------------------------------------------------
@@ -13,35 +13,35 @@
public class Button
implements Serializable {
- private Operation cancel = new Operation("cancel");
- private Operation clear = new Operation("clear");
- private Operation commitChange = new Operation("commitChange");
- private Operation exit = new Operation("exit");
- private Operation reset = new Operation("reset");
- private Operation select = new Operation("select");
- private Operation submit = new Operation("submit");
+ 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");
public Button() {}
- public Operation getCancel() { return cancel; }
- public Operation getClear() { return clear; }
- public Operation getCommitChange() { return commitChange; }
- public Operation getExit() { return exit; }
- public Operation getReset() { return reset; }
- public Operation getSelect() { return select; }
- public Operation getSubmit() { return submit; }
+ 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 class Operation
+ public class Command
implements Serializable {
private String name;
private Integer x, y;
- public Operation() { }
- public Operation(String name) { this.name = name; }
+ public Command() { }
+ public Command(String name) { this.name = name; }
public void setName(String name) { this.name = name; }
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.Operation: name = " + name + "
x = " + x + " y = " + y; }
+ public String toString() { return "Button.Command: name = " + name + " x
= " + x + " y = " + y; }
}
}
}}}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]