public class Params extends AbstractWingElement implements StructuralElement
| Modifier and Type | Field and Description |
|---|---|
static String |
A_AUTHORITY_CONTROLLED
True if this field is authority-controlled
|
static String |
A_AUTHORITY_REQUIRED
True if an authority value is required
|
static String |
A_AUTOFOCUS
The name of the HTML5 autofocus field
|
static String |
A_CHOICES
The name of the field to use for a list of choices
|
static String |
A_CHOICES_CLOSED
The name of the field to use for a list of choices
|
static String |
A_CHOICES_PRESENTATION
See PRESENTATION_*
|
static String |
A_COLS
The name of the cols attribute
|
static String |
A_EVTBEHAVIOR
The name of the behavior attribute
|
static String |
A_MAX_LENGTH
The name of the max length attribute
|
static String |
A_MULTIPLE
The name of the multiple attribute
|
static String |
A_OPERATIONS
The name of the operations attribute
|
static String |
A_RETURN_VALUE
The name of the return value attribute
|
static String |
A_ROWS
The name of the rows attribute
|
static String |
A_SIZE
The name of the size attribute
|
protected boolean |
addOperation
The supported operations for this field
|
protected boolean |
authority
Value of the AuthorityControlled attribute
|
protected boolean |
authority_required
Value of the Authority_Required attribute
|
protected String |
autofocus
Value of the HTML5 autofocus field
|
protected String |
choices
Value of the Choices attribute
|
protected boolean |
choicesClosed
Value of choicesClosed option
|
protected int |
cols
The number of cols the field should span
|
protected boolean |
deleteOperation |
static String |
E_PARAMS
The name of the params element
|
protected String |
evtBehavior
The event behavior attribute such as onchange, onfocus, on...
|
protected int |
maxlength
The maximum length of the field
|
protected boolean |
multiple
Whether multiple values for this field are allowed
|
static String |
OPERATION_ADD
Possible operations
|
static String |
OPERATION_DELETE |
static String[] |
OPERATIONS |
protected String |
presentation
Value of the Choices Presentation attribute
|
static String |
PRESENTATION_AUTHORLOOKUP |
static String |
PRESENTATION_LOOKUP |
static String |
PRESENTATION_NONE |
static String |
PRESENTATION_SELECT
Possible UI presentation values
|
static String |
PRESENTATION_SUGGEST |
static String[] |
PRESENTATIONS |
protected String |
returnValue
The return value for the field, checkboxes and radio buttons.
|
protected int |
rows
The number of rows the field should span
|
protected int |
size
The field size
|
contextA_ID, A_NAME, A_RENDER| Modifier | Constructor and Description |
|---|---|
protected |
Params(WingContext context)
Construct a new parameter's element
|
| Modifier and Type | Method and Description |
|---|---|
void |
enableAddOperation()
Enable the add operation for this field set.
|
void |
enableDeleteOperation()
Enable the delete operation for this field set.
|
void |
setAuthorityControlled()
Set this field to be authority-controlled.
|
void |
setAuthorityControlled(boolean value)
Set this field to be authority-controlled.
|
void |
setAuthorityRequired()
Set this field as authority_required.
|
void |
setAuthorityRequired(boolean value)
Set this field to either be required or not required as determined by the
required parameter.
|
void |
setAutofocus(String value)
Set the field's autofocus attribute, an HTML5 feature.
|
void |
setChoices(String fieldKey) |
void |
setChoicesClosed()
Sets whether choices are "closed" to the set returned by plugin.
|
void |
setChoicesClosed(boolean value)
Sets whether choices are "closed" to the set returned by plugin.
|
void |
setChoicesPresentation(String value)
Set the kind of UI presentation requested for this choice, e.g.
|
void |
setCols(int cols)
Set the number of columns of this field.
|
void |
setEvtBehavior(String behavior)
Set the event behavior (e.g.
|
void |
setMaxLength(int maxlength)
Set the maximum length of the field.
|
void |
setMultiple(boolean multiple)
Determine if this field can accept multiple values.
|
void |
setReturnValue(String returnValue)
The returned value for this field if it is checked (or selected).
|
void |
setRows(int rows)
Set the number of rows of this field.
|
void |
setSize(int size)
Set the size of the field.
|
void |
toSAX(ContentHandler contentHandler,
LexicalHandler lexicalHandler,
NamespaceSupport namespaces)
Translate this element and all contained elements into SAX events.
|
dispose, endElement, endElement, getWingContext, greater, lesser, require, require, requireFalse, requireTrue, restrict, sendCharacters, setWingContext, startElement, startElementpublic static final String E_PARAMS
public static final String A_OPERATIONS
public static final String A_RETURN_VALUE
public static final String A_SIZE
public static final String A_EVTBEHAVIOR
public static final String A_MAX_LENGTH
public static final String A_MULTIPLE
public static final String A_ROWS
public static final String A_COLS
public static final String A_AUTHORITY_CONTROLLED
public static final String A_AUTHORITY_REQUIRED
public static final String A_AUTOFOCUS
public static final String A_CHOICES
public static final String A_CHOICES_PRESENTATION
public static final String A_CHOICES_CLOSED
public static final String OPERATION_ADD
public static final String OPERATION_DELETE
public static final String[] OPERATIONS
public static final String PRESENTATION_SELECT
public static final String PRESENTATION_SUGGEST
public static final String PRESENTATION_LOOKUP
public static final String PRESENTATION_AUTHORLOOKUP
public static final String PRESENTATION_NONE
public static final String[] PRESENTATIONS
protected boolean addOperation
protected boolean deleteOperation
protected String returnValue
protected int size
protected String evtBehavior
protected int maxlength
protected boolean multiple
protected int rows
protected int cols
protected boolean authority
protected boolean authority_required
protected String autofocus
protected String choices
protected String presentation
protected boolean choicesClosed
protected Params(WingContext context) throws WingException
context - (Required) The context this element is contained in, such as
where to route SAX events and what i18n catalogue to use.WingExceptionpublic void enableAddOperation()
throws WingException
WingExceptionpublic void enableDeleteOperation()
throws WingException
WingExceptionpublic void setSize(int size)
size - (Required) The size of the field.public void setEvtBehavior(String behavior)
behavior - The action on onchange of the field.public void setMaxLength(int maxlength)
maxlength - (Required) The maximum length of the field.public void setRows(int rows)
rows - (Required) The number of rows.public void setCols(int cols)
cols - (Required) The number of columns.public void setReturnValue(String returnValue)
returnValue - (Required) The value to be returned if this field is checked.public void setMultiple(boolean multiple)
multiple - (Required) whether the field can accept multiple values.public void setAuthorityControlled()
public void setAuthorityControlled(boolean value)
value - true if authority-controlled.public void setAuthorityRequired()
public void setAuthorityRequired(boolean value)
value - Determine if the authority control is required or not on this field.public void setAutofocus(String value)
value - public void setChoices(String fieldKey)
fieldKey - pre-determined metadata field keypublic void setChoicesPresentation(String value) throws WingException
value - pre-determined metadata field keyWingExceptionpublic void setChoicesClosed(boolean value)
value - pre-determined metadata field keypublic void setChoicesClosed()
public void toSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, NamespaceSupport namespaces) throws SAXException
toSAX in interface WingElementcontentHandler - (Required) The registered contentHandler where SAX events
should be routed too.lexicalHandler - (Required) The registered lexicalHandler where lexical events
(such as CDATA, DTD, etc) should be routed too.namespaces - (Required) SAX Helper class to keep track of namespaces able
to determine the correct prefix for a given namespace URI.SAXExceptionCopyright © 2014 DuraSpace. All Rights Reserved.