org.seasar.s2click.control
クラス GreyboxLink

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

public class GreyboxLink
extends net.sf.click.control.AbstractLink

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.AbstractLink から継承されたフィールド
disabled, imageSrc, label, parameters, tabindex, title
 
クラス net.sf.click.control.AbstractControl から継承されたフィールド
attributes, messages, name, parent, styles
 
インタフェース net.sf.click.Control から継承されたフィールド
CONTROL_MESSAGES
 
コンストラクタの概要
GreyboxLink()
           
GreyboxLink(java.lang.String name)
           
GreyboxLink(java.lang.String name, java.lang.String label)
           
GreyboxLink(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 getHref()
           
 java.lang.String getHtmlImports()
          
 java.lang.Class<? extends net.sf.click.Page> getPageClass()
          greyboxによるモーダルダイアログとして表示するページクラスを設定します。
 void onDeploy(javax.servlet.ServletContext servletContext)
          
 boolean onProcess()
           
 void setDialogHeight(int height)
          ダイアログの高さを設定します。
 void setDialogTitle(java.lang.String dialogTitle)
          greyboxによるモーダルダイアログのタイトルを設定します。
 void setDialogWidth(int width)
          ダイアログの幅を設定します。
 void setListener(java.lang.Object listener, java.lang.String method)
           
 void setPageClass(java.lang.Class<? extends net.sf.click.Page> pageClass)
          greyboxによるモーダルダイアログとして表示するページクラスを設定します。
 java.lang.String toString()
           
 
クラス net.sf.click.control.AbstractLink から継承されたメソッド
getId, getImageSrc, getLabel, getParameter, getParameters, getTabIndex, getTitle, hasParameters, isDisabled, onDestroy, onInit, onRender, setDisabled, setImageSrc, setLabel, setParameter, setTabIndex, setTitle
 
クラス 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にデプロイされます)

コンストラクタの詳細

GreyboxLink

public GreyboxLink()

GreyboxLink

public GreyboxLink(java.lang.String name)

GreyboxLink

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

GreyboxLink

public GreyboxLink(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.AbstractLink 内の onDeploy

getHtmlImports

public java.lang.String getHtmlImports()

定義:
インタフェース net.sf.click.Control 内の getHtmlImports
オーバーライド:
クラス net.sf.click.control.AbstractLink 内の 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()
ダイアログの高さを取得します。

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

getHref

public java.lang.String getHref()
定義:
クラス net.sf.click.control.AbstractLink 内の getHref

onProcess

public boolean onProcess()

setListener

public void setListener(java.lang.Object listener,
                        java.lang.String method)

toString

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