|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.struts.util.ImageButtonBean
A simple JavaBean to encapsulate the request parameters sent for an HTML
input element of type image. Such an element causes two parameters to be
sent, one each for the X and Y coordinates of the button press. An instance
of this bean within an ActionForm
can be used to capture these
and provide a simple means of detecting whether or not the corresponding
image was selected.
Field Summary | |
private java.lang.String |
x
The X coordinate of the button press. |
private java.lang.String |
y
The Y coordinate of the button press. |
Constructor Summary | |
ImageButtonBean()
Construct an instance with empty property values. |
|
ImageButtonBean(java.lang.String x,
java.lang.String y)
Construct an instance with the supplied property values. |
Method Summary | |
java.lang.String |
getX()
|
java.lang.String |
getY()
|
boolean |
isSelected()
A convenience method to determine whether or not the corresponding image element was selected. |
void |
setX(java.lang.String x)
|
void |
setY(java.lang.String y)
|
java.lang.String |
toString()
Return a string representation of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.lang.String x
private java.lang.String y
Constructor Detail |
public ImageButtonBean()
public ImageButtonBean(java.lang.String x, java.lang.String y)
x
- The X coordinate of the button press.y
- The Y coordinate of the button press.Method Detail |
public java.lang.String getX()
public void setX(java.lang.String x)
public java.lang.String getY()
public void setY(java.lang.String y)
public boolean isSelected()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |