public abstract class CheckboxTagSupport extends CheckedInputTagSupport
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CHECKBOX_OFF_PARAM_PREFIX
変更パラメータのプレフィックス
|
| Constructor and Description |
|---|
CheckboxTagSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createInputTag(boolean checked)
入力タグを作成する。
|
protected void |
createOutputTag(boolean checked)
出力タグを作成する。
|
protected abstract java.lang.String |
getOffLabel()
チェックなしの場合に使用するラベルを取得する。
|
protected java.lang.String |
getOffValue()
チェックなしの場合に使用する値を取得する。
デフォルト実装では、デフォルトの値( CustomTagConfig.getCheckboxOffValue())を返す。 |
protected java.lang.String |
getType()
type属性を取得する。
|
protected boolean |
getUseOffValue()
チェックなしの値設定を使用するか否かを取得する。
デフォルト実装では、常にtrueを返す。 |
protected java.lang.String |
getValue()
value属性の値を取得する。
|
doStartTag, getLabel, isChecked, setErrorCss, setLabel, setNameAlias, setOnchange, setValuesetAutofocus, setDisabled, setNamesetAccesskey, setOnblur, setOnfocus, setTabindexcheckChildElementsOfForm, getTagName, setCssClass, setDir, setId, setLang, setOnclick, setOndblclick, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setStyle, setTitle, setXmlLangdoCatch, doFinally, getAttributes, setDynamicAttributepublic static final java.lang.String CHECKBOX_OFF_PARAM_PREFIX
protected java.lang.String getType()
CheckedInputTagSupportgetType in class CheckedInputTagSupportprotected java.lang.String getValue()
getValue in class CheckedInputTagSupportprotected void createOutputTag(boolean checked)
throws javax.servlet.jsp.JspException
チェックありの場合はラベルを出力する。 ラベルはHTMLエスケープして出力する。
createOutputTag in class CheckedInputTagSupportchecked - チェックありか否か。チェックありの場合はtruejavax.servlet.jsp.JspException - JSP例外protected void createInputTag(boolean checked)
throws javax.servlet.jsp.JspException
inputタグとラベルを連結して出力する。 type属性にサブクラスが返す値を設定する。 チェックありの場合はchecked属性を設定する。 name属性に対応するエラーメッセージが存在する場合はclass属性に指定されたCSSクラス名を追記で設定する。 属性とラベルはHTMLエスケープして出力する。
createInputTag in class CheckedInputTagSupportchecked - チェックありか否か。チェックありの場合はtruejavax.servlet.jsp.JspException - JSP例外protected boolean getUseOffValue()
protected abstract java.lang.String getOffLabel()
protected java.lang.String getOffValue()
CustomTagConfig.getCheckboxOffValue())を返す。