|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.form.BaseCheckBox
public abstract class BaseCheckBox
The BaseCheckBox is an abstract TransformationBean for creating a checkbox. Checkboxes are on/off switches that may be toggled by the user. A switch is "on" when the control element's checked attribute is set. When a form is submitted, only "on" checkbox controls will be submitted. Several checkboxes in a form may share the same control name. Thus, for example, checkboxes allow users to select several values for the same property. The INPUT element is used to create a checkbox control.
Note that subclasses of this bean actually provide the markup rendering used in/with Servlet and JavaServer Pages technologies. If you need to add support for a markup language that is not explicitly provided with AppDev Studio, then you must extend this class.
For More Information:
JSP custom tags provide an alternative to using the TransformationBeans. Visit the Custom Tag Library Reference for additional information on the sas:CheckBox custom tag.
Note: A snapshot of the AppDev Studio Developers Site is installed on your local Web server when you install AppDev Studio. To access the site from webAF, select Help -> Developer Site .
Field Summary |
---|
Fields inherited from class com.sas.servlet.tbeans.form.BaseFormElement |
---|
RB_KEY |
Constructor Summary | |
---|---|
BaseCheckBox()
Construct a new CheckBox object |
Method Summary | |
---|---|
boolean |
getSelected()
Gets the state of the checkbox : TRUE is selected |
java.lang.String |
getText()
Gets the displayed text associated with the checkbox. |
java.lang.String |
getValue()
Gets the value that is assigned to a checkbox that is on/selected. |
boolean |
isLabelBolding()
Returns whether the to bold the label when the checkbox is selected: TRUE bold label |
void |
setLabelBolding(boolean value)
Sets whether the to bold the label when the checkbox is selected: TRUE bold label Default value is FALSE. |
void |
setSelected(boolean value)
Sets the state of the checkbox : TRUE is selected |
void |
setText(java.lang.String value)
Sets the displayed text associated with the checkbox. |
void |
setValue(java.lang.String value)
Sets the value that is assigned to a checkbox that is on/selected. |
Constructor Detail |
---|
public BaseCheckBox()
Method Detail |
---|
public void setValue(java.lang.String value)
value
- The value associated with the checkbox when it is on/selected.public java.lang.String getValue()
public void setText(java.lang.String value)
value
- The text associated with the checkbox.public java.lang.String getText()
public void setSelected(boolean value)
value
- true if the checkbox is marked as selectedpublic boolean getSelected()
public void setLabelBolding(boolean value)
value
- true to bold the label when the checkbox is selectedpublic boolean isLabelBolding()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |