org.apache.struts.util
クラス ImageButtonBean

java.lang.Object
  拡張org.apache.struts.util.ImageButtonBean
すべての実装インタフェース:
java.io.Serializable

public class ImageButtonBean
extends java.lang.Object
implements java.io.Serializable

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.

バージョン:
$Revision: 1.1 $ $Date: 2004/10/20 03:26:41 $
関連項目:
直列化された形式

フィールドの概要
private  java.lang.String x
          The X coordinate of the button press.
private  java.lang.String y
          The Y coordinate of the button press.
 
コンストラクタの概要
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.
 
メソッドの概要
 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.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

x

private java.lang.String x
The X coordinate of the button press.


y

private java.lang.String y
The Y coordinate of the button press.

コンストラクタの詳細

ImageButtonBean

public ImageButtonBean()
Construct an instance with empty property values.


ImageButtonBean

public ImageButtonBean(java.lang.String x,
                       java.lang.String y)
Construct an instance with the supplied property values.

パラメータ:
x - The X coordinate of the button press.
y - The Y coordinate of the button press.
メソッドの詳細

getX

public java.lang.String getX()

setX

public void setX(java.lang.String x)

getY

public java.lang.String getY()

setY

public void setY(java.lang.String y)

isSelected

public boolean isSelected()
A convenience method to determine whether or not the corresponding image element was selected.


toString

public java.lang.String toString()
Return a string representation of this object.



このドキュメントは、Ja-Jakartaにより訳されました。コメントがある場合は、report@jajakarta.orgまでお願いします。
Copyright (C) 2000-2004 - Apache Software Foundation