|
Esri Geoportal Server 1.2.2
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.gpt.catalog.schema.Component
com.esri.gpt.catalog.schema.UiComponent
com.esri.gpt.catalog.schema.Input
com.esri.gpt.catalog.schema.InputText
com.esri.gpt.catalog.schema.InputTextArea
com.esri.gpt.catalog.schema.InputDelimitedTextArea
public class InputDelimitedTextArea
Input delimited text area component associated with a metadata parameter.
The component provides a text area for inputing a delimited list of values (such as keywords) associated with multiple nodes within a metadata document.
The component is configured from a node with a schema configuration XML document.
Example:
<parameter key="abstract">
<input type="delimitedTextArea"
cols="60" rows="8" delimiter=","/>
</parameter>
Field Summary |
---|
Fields inherited from class com.esri.gpt.catalog.schema.Input |
---|
INPUTTYPE_DELIMITEDTEXTAREA, INPUTTYPE_MAP, INPUTTYPE_SELECTMANYCHECKBOX, INPUTTYPE_SELECTONEMEMU, INPUTTYPE_SELECTWITHOTHER, INPUTTYPE_TEXT, INPUTTYPE_TEXTAREA, INPUTTYPE_TEXTARRAY, INPUTTYPE_UNKNOWN |
Constructor Summary | |
---|---|
InputDelimitedTextArea()
Default constructor. |
|
InputDelimitedTextArea(InputDelimitedTextArea objectToDuplicate)
Construct by duplicating an existing object. |
Method Summary | |
---|---|
void |
configure(CfgContext context,
Node node,
NamedNodeMap attributes)
Configures the object based upon a node loaded from a schema configuration XML. |
InputDelimitedTextArea |
duplicate()
Produces a deep clone of the object. |
void |
echo(StringBuffer sb)
Appends property information for the component to a StringBuffer. |
String |
getDefaultDelimeter()
Gets the default delimiter (","). |
String |
getDelimiter()
Gets the delimiter. |
protected String |
makeDelimitedValue(Parameter parameter)
Makes a delimited string multiple values associated with the parameter. |
UIComponent |
makeInputComponent(UiContext context,
Section section,
Parameter parameter)
Makes a Faces HtmlInputTextarea component for a parameter. |
void |
setDelimiter(String delimiter)
Sets the delimiter. |
void |
unBind(UiContext context,
UIComponent editorForm,
Parameter parameter)
Triggered on the save event from the metadata editor. |
Methods inherited from class com.esri.gpt.catalog.schema.InputTextArea |
---|
getCols, getDefaultCols, getDefaultMaxlength, getDefaultRows, getRows, setCols, setRows |
Methods inherited from class com.esri.gpt.catalog.schema.InputText |
---|
getDefaultSize, getMaxlength, getSize, setMaxlength, setSize |
Methods inherited from class com.esri.gpt.catalog.schema.Input |
---|
applyHint, evaluateDefault, findInputComponent, formatValue, getDefaultValue, getEditable, getFacesId, getHintMode, getHintResourceKey, getInputValue, getOnChange, getOnClick, getTestResourceKey, makeOutputComponent, setComponentValue, setDefaultValue, setEditable, setFacesId, setHintMode, setHintResourceKey, setOnChange, setOnClick, setTestResourceKey |
Methods inherited from class com.esri.gpt.catalog.schema.UiComponent |
---|
getStyleClass, makeBR, makeNBSP, setStyleClass |
Methods inherited from class com.esri.gpt.catalog.schema.Component |
---|
getKey, setKey, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InputDelimitedTextArea()
public InputDelimitedTextArea(InputDelimitedTextArea objectToDuplicate)
objectToDuplicate
- the object to duplicateMethod Detail |
---|
public String getDelimiter()
public void setDelimiter(String delimiter)
delimiter
- the delimiterpublic String getDefaultDelimeter()
public void configure(CfgContext context, Node node, NamedNodeMap attributes)
The following attributes are configured:
key maxlength cols rows delimiter
configure
in class InputTextArea
context
- the configuration contextnode
- the configuration nodeattributes
- the attributes of the configuration nodepublic InputDelimitedTextArea duplicate()
duplicate
in class InputTextArea
public void echo(StringBuffer sb)
echo
in class InputTextArea
sb
- the StringBuffer to use when appending informationprotected String makeDelimitedValue(Parameter parameter)
parameter
- the associated parameter
public UIComponent makeInputComponent(UiContext context, Section section, Parameter parameter)
The multiple values associated with the parameter (parameter.getMultipleValues()) are used to generate a delimited single value. The super class method (InputTextArea.makeInputComponent) is then invoked to create component.
The reverse operation is executed on the unBind() method.
makeInputComponent
in class InputTextArea
context
- the UI contextsection
- the parent sectionparameter
- the associated parameter
public void unBind(UiContext context, UIComponent editorForm, Parameter parameter) throws SchemaException
On this event, the multiple values associated with the parameter (parameter.getMultipleValues()) are generated from the delimited input string.
unBind
in class InputText
context
- the UI contexteditorForm
- the Faces HtmlForm for the metadata editorparameter
- the associated parameter
SchemaException
- if an associated Faces UIComponent cannot be located
|
Esri Geoportal Server 1.2.2
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |