org.seasar.s2click.control
クラス GreyboxButton

java.lang.Object
  上位を拡張 net.sf.click.control.AbstractControl
      上位を拡張 net.sf.click.control.Field
          上位を拡張 net.sf.click.control.Button
              上位を拡張 org.seasar.s2click.control.GreyboxButton
すべての実装されたインタフェース:
java.io.Serializable, net.sf.click.Control

public class GreyboxButton
extends net.sf.click.control.Button

GreyBoxを使用して指定したページを モーダルダイアログとして表示するボタンです。

導入されたバージョン:
0.4.0
作成者:
Naoki Takezoe
関連項目:
直列化された形式

フィールドの概要
protected  java.lang.String dialogTitle
           
static java.lang.String[] GREYBOX_RESOURCES
          greyboxのリソース(click/greyboxにデプロイされます)
protected  int height
           
static java.lang.String HTML_IMPORTS
           
protected  java.lang.Class<? extends net.sf.click.Page> pageClass
           
protected  int width
           
 
クラス net.sf.click.control.Field から継承されたフィールド
disabled, error, focus, form, help, label, listener, listenerMethod, readonly, required, tabindex, title, validate, value
 
クラス net.sf.click.control.AbstractControl から継承されたフィールド
attributes, messages, name, parent, styles
 
インタフェース net.sf.click.Control から継承されたフィールド
CONTROL_MESSAGES
 
コンストラクタの概要
GreyboxButton()
           
GreyboxButton(java.lang.String name)
           
GreyboxButton(java.lang.String name, java.lang.String label)
           
GreyboxButton(java.lang.String name, java.lang.String label, java.lang.String title, java.lang.Class<? extends net.sf.click.Page> pageClass)
           
 
メソッドの概要
 int getDialogHeight()
          ダイアログの高さを取得します。
 java.lang.String getDialogTitle()
          greyboxによるモーダルダイアログのタイトルを取得します。
 int getDialogWidth()
          ダイアログの幅を取得します。
 java.lang.String getHtmlImports()
          
 java.lang.Class<? extends net.sf.click.Page> getPageClass()
          greyboxによるモーダルダイアログとして表示するページクラスを設定します。
 void onDeploy(javax.servlet.ServletContext servletContext)
          
 void setDialogHeight(int height)
          ダイアログの高さを設定します。
 void setDialogTitle(java.lang.String dialogTitle)
          greyboxによるモーダルダイアログのタイトルを設定します。
 void setDialogWidth(int width)
          ダイアログの幅を設定します。
 void setPageClass(java.lang.Class<? extends net.sf.click.Page> pageClass)
          greyboxによるモーダルダイアログとして表示するページクラスを設定します。
 java.lang.String toString()
           
 
クラス net.sf.click.control.Button から継承されたメソッド
getOnClick, getType, onProcess, onRender, setOnClick
 
クラス net.sf.click.control.Field から継承されたメソッド
bindRequestValue, getError, getErrorLabel, getFocus, getFocusJavaScript, getForm, getHelp, getId, getLabel, getRequestValue, getTabIndex, getTextAlign, getTitle, getValidate, getValidationJavaScript, getValue, getValueObject, getWidth, invokeListener, isDisabled, isHidden, isReadonly, isRequired, isValid, onDestroy, onInit, setDisabled, setError, setErrorMessage, setErrorMessage, setErrorMessage, setErrorMessage, setFocus, setForm, setHelp, setLabel, setListener, setReadonly, setRequired, setTabIndex, setTextAlign, setTitle, setValidate, setValue, setValueObject, setWidth, validate
 
クラス net.sf.click.control.AbstractControl から継承されたメソッド
addStyleClass, appendAttributes, getAttribute, getAttributes, getContext, getMessage, getMessage, getMessage, getMessages, getName, getPage, getParent, getStyle, getStyles, hasAttribute, hasAttributes, hasStyles, removeStyleClass, setAttribute, setId, setName, setParent, setStyle
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

HTML_IMPORTS

public static final java.lang.String HTML_IMPORTS
関連項目:
定数フィールド値

dialogTitle

protected java.lang.String dialogTitle

width

protected int width

height

protected int height

pageClass

protected java.lang.Class<? extends net.sf.click.Page> pageClass

GREYBOX_RESOURCES

public static final java.lang.String[] GREYBOX_RESOURCES
greyboxのリソース(click/greyboxにデプロイされます)

コンストラクタの詳細

GreyboxButton

public GreyboxButton()

GreyboxButton

public GreyboxButton(java.lang.String name)

GreyboxButton

public GreyboxButton(java.lang.String name,
                     java.lang.String label)

GreyboxButton

public GreyboxButton(java.lang.String name,
                     java.lang.String label,
                     java.lang.String title,
                     java.lang.Class<? extends net.sf.click.Page> pageClass)
メソッドの詳細

onDeploy

public void onDeploy(javax.servlet.ServletContext servletContext)

定義:
インタフェース net.sf.click.Control 内の onDeploy
オーバーライド:
クラス net.sf.click.control.Field 内の onDeploy

getHtmlImports

public java.lang.String getHtmlImports()

定義:
インタフェース net.sf.click.Control 内の getHtmlImports
オーバーライド:
クラス net.sf.click.control.Field 内の getHtmlImports

setPageClass

public void setPageClass(java.lang.Class<? extends net.sf.click.Page> pageClass)
greyboxによるモーダルダイアログとして表示するページクラスを設定します。

パラメータ:
pageClass - 表示するページクラス

getPageClass

public java.lang.Class<? extends net.sf.click.Page> getPageClass()
greyboxによるモーダルダイアログとして表示するページクラスを設定します。

戻り値:
表示するページクラス

setDialogTitle

public void setDialogTitle(java.lang.String dialogTitle)
greyboxによるモーダルダイアログのタイトルを設定します。

パラメータ:
dialogTitle - ダイアログのタイトル

getDialogTitle

public java.lang.String getDialogTitle()
greyboxによるモーダルダイアログのタイトルを取得します。

戻り値:
ダイアログのタイトル

setDialogWidth

public void setDialogWidth(int width)
ダイアログの幅を設定します。

パラメータ:
width - ダイアログの幅

getDialogWidth

public int getDialogWidth()
ダイアログの幅を取得します。

戻り値:
ダイアログの幅

setDialogHeight

public void setDialogHeight(int height)
ダイアログの高さを設定します。

パラメータ:
height - ダイアログの高さ

getDialogHeight

public int getDialogHeight()
ダイアログの高さを取得します。

戻り値:
ダイアログの高さ

toString

public java.lang.String toString()
オーバーライド:
クラス net.sf.click.control.Button 内の toString