|
Esri Geoportal Server 1.0
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| 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
public abstract class Input
Super-class for an input component associated with a metadata schema.
| Field Summary | |
|---|---|
static String |
INPUTTYPE_DELIMITEDTEXTAREA
Delimited text area input type = "delimitedTextArea" |
static String |
INPUTTYPE_MAP
Interactive map input type = "map" |
static String |
INPUTTYPE_SELECTMANYCHECKBOX
Select many checkbox input type = "selectManyCheckbox" |
static String |
INPUTTYPE_SELECTONEMEMU
Select one menu input type = "selectOneMenu" |
static String |
INPUTTYPE_SELECTWITHOTHER
Select one menu with an "Other" option for inputting text = "selectWithOther" |
static String |
INPUTTYPE_TEXT
Text input type = "text" |
static String |
INPUTTYPE_TEXTAREA
Text area input type = "textArea" |
static String |
INPUTTYPE_TEXTARRAY
Text array input type = "textArray" |
static String |
INPUTTYPE_UNKNOWN
Unknown input type = "unknown" |
| Constructor Summary | |
|---|---|
Input()
Default constructor. |
|
Input(Input objectToDuplicate)
Construct by duplicating an existing object. |
|
| Method Summary | |
|---|---|
protected UIComponent |
applyHint(UiContext context,
UIComponent inputComponent)
Applies a hint to an input component if a hint resource key was configured. |
void |
configure(CfgContext context,
Node node,
NamedNodeMap attributes)
Configures the object based upon a node loaded from a schema configuration XML. |
abstract Input |
duplicate()
Produces a deep clone of the object. |
void |
echo(StringBuffer sb)
Appends property information for the component to a StringBuffer. |
protected String |
evaluateDefault(UiContext context,
String currentValue)
Evaluates the default value for the input component. |
protected UIInput |
findInputComponent(UiContext context,
UIComponent editorForm)
Finds the associated Faces UIInput component. |
protected String |
formatValue(Parameter parameter,
String value)
Formats a value associated with a parameter. |
String |
getDefaultValue()
Gets the default value. |
boolean |
getEditable()
Gets the editable status. |
String |
getFacesId()
Gets the Faces ID for the component. |
String |
getHintMode()
Gets the mode for an optional hint ("inline","tip","toggle"). |
String |
getHintResourceKey()
Gets the UI property bundle resource key for a hint associated with the component. |
protected String |
getInputValue(UIInput input)
Returns the String value for a Faces UIInput component. |
String |
getOnChange()
Gets the Javascript associated with the onchange event. |
String |
getOnClick()
Gets the Javascript associated with the onclick event. |
String |
getTestResourceKey()
Gets the UI property bundle resource key for a test link button associated with the component. |
abstract UIComponent |
makeInputComponent(UiContext context,
Section section,
Parameter parameter)
Makes the Faces UI input component for a parameter. |
UIComponent |
makeOutputComponent(UiContext context,
Section section,
Parameter parameter)
Makes the Faces UI output component for a parameter. |
void |
setComponentValue(UiContext context,
UIInput input,
Parameter parameter)
Sets the value for an input component. |
void |
setDefaultValue(String value)
Sets the default value. |
void |
setEditable(boolean editable)
Sets the editable status. |
void |
setFacesId(String id)
Sets the Faces ID for the component. |
void |
setHintMode(String mode)
Sets the mode for an optional hint ("inline","tip","toggle"). |
void |
setHintResourceKey(String key)
Sets the UI property bundle resource key for a hint associated with the component. |
void |
setOnChange(String js)
Sets the Javascript associated with the onclick event. |
void |
setOnClick(String js)
Sets the Javascript associated with the onclick event. |
void |
setTestResourceKey(String key)
Sets the UI property bundle resource key for a test link button associated with the component. |
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.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 |
| Field Detail |
|---|
public static final String INPUTTYPE_DELIMITEDTEXTAREA
public static final String INPUTTYPE_MAP
public static final String INPUTTYPE_SELECTMANYCHECKBOX
public static final String INPUTTYPE_SELECTONEMEMU
public static final String INPUTTYPE_SELECTWITHOTHER
public static final String INPUTTYPE_TEXT
public static final String INPUTTYPE_TEXTAREA
public static final String INPUTTYPE_TEXTARRAY
public static final String INPUTTYPE_UNKNOWN
| Constructor Detail |
|---|
public Input()
public Input(Input objectToDuplicate)
objectToDuplicate - the object to duplicate| Method Detail |
|---|
public String getDefaultValue()
public void setDefaultValue(String value)
value - the default valuepublic boolean getEditable()
public void setEditable(boolean editable)
editable - true if this input component is editablepublic String getFacesId()
public void setFacesId(String id)
id - Faces IDpublic String getHintMode()
public void setHintMode(String mode)
mode - the hint modepublic String getHintResourceKey()
public void setHintResourceKey(String key)
key - the hint resource keypublic String getOnChange()
public void setOnChange(String js)
js - the Javascriptpublic String getOnClick()
public void setOnClick(String js)
js - the Javascriptpublic String getTestResourceKey()
public void setTestResourceKey(String key)
key - the hint resource key
protected UIComponent applyHint(UiContext context,
UIComponent inputComponent)
context - the UI contextinputComponent - the subject input component
public void configure(CfgContext context,
Node node,
NamedNodeMap attributes)
configure in class UiComponentcontext - the configuration contextnode - the configuration nodeattributes - the attributes of the configuration nodepublic abstract Input duplicate()
duplicate in class Componentpublic void echo(StringBuffer sb)
echo in class UiComponentsb - the StringBuffer to use when appending information
protected String evaluateDefault(UiContext context,
String currentValue)
context - the UI contextcurrentValue - the current value of the component
protected UIInput findInputComponent(UiContext context,
UIComponent editorForm)
throws SchemaException
context - the UI contexteditorForm - the Faces HtmlForm for the metadata editor
SchemaException - if the associated Faces UIInput component cannot be located
protected String formatValue(Parameter parameter,
String value)
parameter - the associated parametervalue - the value to formatprotected String getInputValue(UIInput input)
input - the Faces input component whose value will be returned
public abstract UIComponent makeInputComponent(UiContext context,
Section section,
Parameter parameter)
context - the UI contextsection - the parent sectionparameter - the associated parameter
public UIComponent makeOutputComponent(UiContext context,
Section section,
Parameter parameter)
context - the UI contextsection - the parent sectionparameter - the associated parameter
public void setComponentValue(UiContext context,
UIInput input,
Parameter parameter)
context - the UI contextinput - the Faces input componentparameter - the associated parameter
public void unBind(UiContext context,
UIComponent editorForm,
Parameter parameter)
throws SchemaException
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.0
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||