public class CheckBox extends Field
A_DISABLED, A_FIELD_TYPE, A_REQUIRED, disabled, E_FIELD, errors, fields, help, instances, label, name, OPERATION_ADD, OPERATION_DELETE, OPERATIONS, options, params, rend, required, type, TYPE_BUTTON, TYPE_CHECKBOX, TYPE_COMPOSITE, TYPE_FILE, TYPE_HIDDEN, TYPE_PASSWORD, TYPE_RADIO, TYPE_SELECT, TYPE_TEXT, TYPE_TEXTAREA, TYPES, valuescontextA_ID, A_NAME, A_RENDER| Modifier | Constructor and Description |
|---|---|
protected |
CheckBox(WingContext context,
String name,
String rend)
Construct a new field.
|
| Modifier and Type | Method and Description |
|---|---|
Instance |
addInstance()
Add a field instance
|
void |
addOption(boolean selected,
int returnValue,
Message message)
Add an option.
|
void |
addOption(boolean selected,
int returnValue,
String characters)
Add an option.
|
Option |
addOption(boolean selected,
String returnValue)
Add an option.
|
void |
addOption(boolean selected,
String returnValue,
Message message)
Add an option.
|
void |
addOption(boolean selected,
String returnValue,
String characters)
Add an option.
|
Option |
addOption(int returnValue)
Add an option.
|
void |
addOption(int returnValue,
Message message)
Add an option.
|
void |
addOption(int returnValue,
String characters)
Add an option.
|
Option |
addOption(String returnValue)
Add an option.
|
void |
addOption(String returnValue,
Message message)
Add an option.
|
void |
addOption(String returnValue,
String characters)
Add an option.
|
void |
enableAddOperation()
Enable the add operation for this field.
|
void |
enableDeleteOperation()
Enable the delete operation for this field.
|
void |
setOptionSelected(int returnValue)
Set the given option as selected.
|
void |
setOptionSelected(String returnValue)
Set the given option as checked.
|
addError, addError, addError, dispose, removeValueOfType, setAuthorityControlled, setAuthorityControlled, setAuthorityRequired, setAuthorityRequired, setAutofocus, setChoices, setChoicesClosed, setChoicesClosed, setChoicesPresentation, setDisabled, setDisabled, setHelp, setHelp, setHelp, setLabel, setLabel, setLabel, setRequired, setRequired, toSAXendElement, endElement, getWingContext, greater, lesser, require, require, requireFalse, requireTrue, restrict, sendCharacters, setWingContext, startElement, startElementprotected CheckBox(WingContext context, String name, String rend) throws WingException
context - (Required) The context this element is contained in, such as
where to route SAX events and what i18n catalogue to use.name - (Required) a non-unique local identifier used to differentiate
the element from its siblings within an interactive division.
This is the name of the field use when data is submitted back
to the server.rend - (May be null) a rendering hint used to override the default
display of the element.WingExceptionpublic void enableAddOperation()
throws WingException
WingExceptionpublic void enableDeleteOperation()
throws WingException
WingExceptionpublic Option addOption(String returnValue) throws WingException
returnValue - (Required) The value to be passed back if this option is
selected.WingExceptionpublic Option addOption(int returnValue) throws WingException
returnValue - (Required) The value to be passed back if this option is
selected.WingExceptionpublic Option addOption(boolean selected, String returnValue) throws WingException
selected - (Required) Set the option is checkedreturnValue - (Required) The value to be passed back if this option is
checked.WingExceptionpublic void addOption(String returnValue, String characters) throws WingException
returnValue - (Required) The value to be passed back if this option is
checked.characters - (Required) The text to set as the visible option.WingExceptionpublic void addOption(boolean selected,
String returnValue,
String characters)
throws WingException
selected - (Required) Set the option is checkedreturnValue - (Required) The value to be passed back if this option is
checked.characters - (Required) The text to set as the visible option.WingExceptionpublic void addOption(int returnValue,
String characters)
throws WingException
returnValue - (Required) The value to be passed back if this option is
checked.characters - (Required) The text to set as the visible option.WingExceptionpublic void addOption(boolean selected,
int returnValue,
String characters)
throws WingException
selected - (Required) Set the option as selected.returnValue - (Required) The value to be passed back if this option is
selected.characters - (Required) The text to set as the visible option.WingExceptionpublic void addOption(String returnValue, Message message) throws WingException
returnValue - (Required) The value to be passed back if this option is
selected.message - (Required) The transalted text to set as the visible option.WingExceptionpublic void addOption(boolean selected,
String returnValue,
Message message)
throws WingException
selected - (Required) Set the option as selected.returnValue - (Required) The value to be passed back if this option is
selected.message - (Required) The transalted text to set as the visible option.WingExceptionpublic void addOption(int returnValue,
Message message)
throws WingException
returnValue - (Required) The value to be passed back if this option is
selected.message - (Required) The transalted text to set as the visible option.WingExceptionpublic void addOption(boolean selected,
int returnValue,
Message message)
throws WingException
selected - (Required) Set the field as selected.returnValue - (Required) The value to be passed back if this option is
selected.message - (Required) The transalted text to set as the visible option.WingExceptionpublic void setOptionSelected(String returnValue) throws WingException
returnValue - (Required) The return value of the option to be selected.WingExceptionpublic void setOptionSelected(int returnValue)
throws WingException
returnValue - (Required) The return value of the option to be selected.WingExceptionpublic Instance addInstance() throws WingException
WingExceptionCopyright © 2014 DuraSpace. All Rights Reserved.