public class Params extends AbstractWingElement implements StructuralElement
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
A_AUTHORITY_CONTROLLED
True if this field is authority-controlled
|
static java.lang.String |
A_AUTHORITY_REQUIRED
True if an authority value is required
|
static java.lang.String |
A_AUTOFOCUS
The name of the HTML5 autofocus field
|
static java.lang.String |
A_CHOICES
The name of the field to use for a list of choices
|
static java.lang.String |
A_CHOICES_CLOSED
The name of the field to use for a list of choices
|
static java.lang.String |
A_CHOICES_PRESENTATION
See PRESENTATION_*
|
static java.lang.String |
A_COLS
The name of the cols attribute
|
static java.lang.String |
A_EVTBEHAVIOR
The name of the behavior attribute
|
static java.lang.String |
A_MAX_LENGTH
The name of the max length attribute
|
static java.lang.String |
A_MULTIPLE
The name of the multiple attribute
|
static java.lang.String |
A_OPERATIONS
The name of the operations attribute
|
static java.lang.String |
A_RETURN_VALUE
The name of the return value attribute
|
static java.lang.String |
A_ROWS
The name of the rows attribute
|
static java.lang.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 java.lang.String |
autofocus
Value of the HTML5 autofocus field
|
protected java.lang.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 java.lang.String |
E_PARAMS
The name of the params element
|
protected java.lang.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 java.lang.String |
OPERATION_ADD
Possible operations
|
static java.lang.String |
OPERATION_DELETE |
static java.lang.String[] |
OPERATIONS |
protected java.lang.String |
presentation
Value of the Choices Presentation attribute
|
static java.lang.String |
PRESENTATION_AUTHORLOOKUP |
static java.lang.String |
PRESENTATION_LOOKUP |
static java.lang.String |
PRESENTATION_NONE |
static java.lang.String |
PRESENTATION_SELECT
Possible UI presentation values
|
static java.lang.String |
PRESENTATION_SUGGEST |
static java.lang.String[] |
PRESENTATIONS |
protected java.lang.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(java.lang.String value)
Set the field's autofocus attribute, an HTML5 feature.
|
void |
setChoices(java.lang.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(java.lang.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(java.lang.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(java.lang.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(org.xml.sax.ContentHandler contentHandler,
org.xml.sax.ext.LexicalHandler lexicalHandler,
org.xml.sax.helpers.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 java.lang.String E_PARAMS
public static final java.lang.String A_OPERATIONS
public static final java.lang.String A_RETURN_VALUE
public static final java.lang.String A_SIZE
public static final java.lang.String A_EVTBEHAVIOR
public static final java.lang.String A_MAX_LENGTH
public static final java.lang.String A_MULTIPLE
public static final java.lang.String A_ROWS
public static final java.lang.String A_COLS
public static final java.lang.String A_AUTHORITY_CONTROLLED
public static final java.lang.String A_AUTHORITY_REQUIRED
public static final java.lang.String A_AUTOFOCUS
public static final java.lang.String A_CHOICES
public static final java.lang.String A_CHOICES_PRESENTATION
public static final java.lang.String A_CHOICES_CLOSED
public static final java.lang.String OPERATION_ADD
public static final java.lang.String OPERATION_DELETE
public static final java.lang.String[] OPERATIONS
public static final java.lang.String PRESENTATION_SELECT
public static final java.lang.String PRESENTATION_SUGGEST
public static final java.lang.String PRESENTATION_LOOKUP
public static final java.lang.String PRESENTATION_AUTHORLOOKUP
public static final java.lang.String PRESENTATION_NONE
public static final java.lang.String[] PRESENTATIONS
protected boolean addOperation
protected boolean deleteOperation
protected java.lang.String returnValue
protected int size
protected java.lang.String evtBehavior
protected int maxlength
protected boolean multiple
protected int rows
protected int cols
protected boolean authority
protected boolean authority_required
protected java.lang.String autofocus
protected java.lang.String choices
protected java.lang.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(java.lang.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(java.lang.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(java.lang.String value)
value - public void setChoices(java.lang.String fieldKey)
fieldKey - pre-determined metadata field keypublic void setChoicesPresentation(java.lang.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(org.xml.sax.ContentHandler contentHandler,
org.xml.sax.ext.LexicalHandler lexicalHandler,
org.xml.sax.helpers.NamespaceSupport namespaces)
throws org.xml.sax.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.org.xml.sax.SAXExceptionCopyright © 2014 DuraSpace. All Rights Reserved.