public class Text 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 |
Text(WingContext context,
String name,
String rend)
Construct a new field.
|
| Modifier and Type | Method and Description |
|---|---|
Instance |
addInstance()
Add a field instance
|
void |
enableAddOperation()
Enable the add operation for this field.
|
void |
enableDeleteOperation()
Enable the delete operation for this field.
|
Value |
setAuthorityValue()
Set the authority value of the field removing any previous authority values.
|
Value |
setAuthorityValue(String characters,
String confidence)
Set the authority value of the field removing any previous authority values.
|
void |
setSize(int size)
Set the size of the text field.
|
void |
setSize(int size,
int maxLength)
Set the size and maximum size of the text field.
|
Value |
setValue()
Set the raw value of the field removing any previous raw values.
|
void |
setValue(Message message)
Set the raw value of the field removing any previous raw values.
|
void |
setValue(String characters)
Set the raw value of the field removing any previous raw values.
|
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 Text(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 setSize(int size)
size - (May be zero for no defined value) he default size for a
field.public void setSize(int size,
int maxLength)
size - (May be zero for no defined value) he default size for a
field.maxLength - (May be zero for no defined value) The maximum length that the
theme should accept for form input.public void enableAddOperation()
throws WingException
WingExceptionpublic void enableDeleteOperation()
throws WingException
WingExceptionpublic Value setValue() throws WingException
WingExceptionpublic void setValue(String characters) throws WingException
characters - (May be null) Field value as a stringWingExceptionpublic void setValue(Message message) throws WingException
message - (Required) A key into the i18n catalogue for translation into
the user's preferred language.WingExceptionpublic Value setAuthorityValue() throws WingException
WingExceptionpublic Value setAuthorityValue(String characters, String confidence) throws WingException
WingExceptionpublic Instance addInstance() throws WingException
WingExceptionCopyright © 2016 DuraSpace. All Rights Reserved.