1 18 19 20 package org.apache.struts.util; 21 22 23 import java.io.Serializable ; 24 25 26 36 public class ImageButtonBean implements Serializable { 37 38 39 41 42 45 public ImageButtonBean() { 46 } 47 48 54 public ImageButtonBean(String x, String y) { 55 this.x = x; 56 this.y = y; 57 } 58 59 60 62 63 66 private String x; 67 68 public String getX() { 69 return (this.x); 70 } 71 72 public void setX(String x) { 73 this.x = x; 74 } 75 76 77 80 private String y; 81 82 public String getY() { 83 return (this.y); 84 } 85 86 public void setY(String y) { 87 this.y = y; 88 } 89 90 91 93 94 98 public boolean isSelected() { 99 return ((x != null) || (y != null)); 100 } 101 102 103 106 public String toString() { 107 StringBuffer sb = new StringBuffer ("ImageButtonBean["); 108 sb.append(this.x); 109 sb.append(", "); 110 sb.append(this.y); 111 sb.append("]"); 112 return (sb.toString()); 113 } 114 115 } 116 | Popular Tags |