public class Composite 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 |
Composite(WingContext context,
String name,
String rend)
Construct a new field.
|
| Modifier and Type | Method and Description |
|---|---|
CheckBox |
addCheckBox(String name)
Add a boolean input control which may be toggled by the user.
|
CheckBox |
addCheckBox(String name,
String rend)
Add a boolean input control which may be toggled by the user.
|
Instance |
addInstance()
Add a field instance
|
Radio |
addRadio(String name)
Add a boolean input control which may be toggled by the user.
|
Radio |
addRadio(String name,
String rend)
Add a boolean input control which may be toggled by the user.
|
Select |
addSelect(String name)
Add a menu input control which allows the user to select from a list of
available options.
|
Select |
addSelect(String name,
String rend)
Add a menu input control which allows the user to select from a list of
available options.
|
Text |
addText(String name)
Add a single-line text input control.
|
Text |
addText(String name,
String rend)
Add a single-line text input control.
|
TextArea |
addTextArea(String name)
Add a multi-line text input control.
|
TextArea |
addTextArea(String name,
String rend)
Add a multi-line text input control.
|
void |
enableAddOperation()
Enable the add operation for this field.
|
void |
enableDeleteOperation()
Enable the delete operation for this field.
|
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 Composite(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.WingException - passed through.public void enableAddOperation()
throws WingException
WingException - passed through.public void enableDeleteOperation()
throws WingException
WingException - passed through.public CheckBox addCheckBox(String name, String rend) throws WingException
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.WingException - passed through.public CheckBox addCheckBox(String name) throws WingException
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.WingException - passed through.public Radio addRadio(String name, String rend) throws WingException
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.WingException - passed through.public Radio addRadio(String name) throws WingException
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.WingException - passed through.public Select addSelect(String name, String rend) throws WingException
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.WingException - passed through.public Select addSelect(String name) throws WingException
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.WingException - passed through.public Text addText(String name, String rend) throws WingException
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.WingException - passed through.public Text addText(String name) throws WingException
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.WingException - passed through.public TextArea addTextArea(String name, String rend) throws WingException
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.WingException - passed through.public TextArea addTextArea(String name) throws WingException
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.WingException - passed through.public Instance addInstance() throws WingException
WingException - passed through.Copyright © 2016 DuraSpace. All rights reserved.