Esri Geoportal Server
1.0

com.esri.gpt.catalog.schema
Class InputMap

java.lang.Object
  extended by com.esri.gpt.catalog.schema.Component
      extended by com.esri.gpt.catalog.schema.UiComponent
          extended by com.esri.gpt.catalog.schema.Input
              extended by com.esri.gpt.catalog.schema.InputMap

public class InputMap
extends Input

Interactive map component.

The component is configured from a node with a schema configuration XML document.

Example:

<parameter key="envelope.map">
<input type="map"/>
</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
InputMap()
          Default constructor.
InputMap(InputMap 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.
 InputMap duplicate()
          Produces a deep clone of the object.
 void echo(StringBuffer sb)
          Appends property information for the component to a StringBuffer.
 int getDefaultHeight()
          Gets the default height (300).
 int getDefaultWidth()
          Gets the default width (600).
 int getHeight()
          Gets the map height.
 int getWidth()
          Gets the map width.
 UIComponent makeInputComponent(UiContext context, Section section, Parameter parameter)
          Makes a Faces HtmlInputText component for a parameter.
 UIComponent makeOutputComponent(UiContext context, Section section, Parameter parameter)
          Makes the Faces UI output component for a parameter.
 void setHeight(int size)
          Sets the map height.
 void setWidth(int size)
          Sets the map width.
 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.Input
applyHint, evaluateDefault, findInputComponent, formatValue, getDefaultValue, getEditable, getFacesId, getHintMode, getHintResourceKey, getInputValue, getOnChange, getOnClick, getTestResourceKey, 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

InputMap

public InputMap()
Default constructor.


InputMap

public InputMap(InputMap objectToDuplicate)
Construct by duplicating an existing object.

Parameters:
objectToDuplicate - the object to duplicate
Method Detail

getDefaultHeight

public int getDefaultHeight()
Gets the default height (300).

Returns:
the default size

getDefaultWidth

public int getDefaultWidth()
Gets the default width (600).

Returns:
the default width

getHeight

public int getHeight()
Gets the map height.

Returns:
the height

setHeight

public void setHeight(int size)
Sets the map height.

Parameters:
size - the height

getWidth

public int getWidth()
Gets the map width.

Returns:
the width

setWidth

public void setWidth(int size)
Sets the map width.

Parameters:
size - the width

configure

public void configure(CfgContext context,
                      Node node,
                      NamedNodeMap attributes)
Configures the object based upon a node loaded from a schema configuration XML.
The super.configure method should be invoked prior to any sub-class configuration.

The following attributes are configured:
width height

Overrides:
configure in class Input
Parameters:
context - the configuration context
node - the configuration node
attributes - the attributes of the configuration node

duplicate

public InputMap duplicate()
Produces a deep clone of the object.
The duplication constructor is invoked.
return new InputText(this);

Specified by:
duplicate in class Input

echo

public void echo(StringBuffer sb)
Appends property information for the component to a StringBuffer.
The method is intended to support "FINEST" logging.
super.echo should be invoked prior appending any local information.

Overrides:
echo in class Input
Parameters:
sb - the StringBuffer to use when appending information

makeInputComponent

public UIComponent makeInputComponent(UiContext context,
                                      Section section,
                                      Parameter parameter)
Makes a Faces HtmlInputText component for a parameter.

Specified by:
makeInputComponent in class Input
Parameters:
context - the UI context
section - the parent section
parameter - the associated parameter
Returns:
the UI component

makeOutputComponent

public UIComponent makeOutputComponent(UiContext context,
                                       Section section,
                                       Parameter parameter)
Makes the Faces UI output component for a parameter.

The output component is suitable for display on the metadata details page.

Overrides:
makeOutputComponent in class Input
Parameters:
context - the UI context
section - the parent section
parameter - the associated parameter
Returns:
the UI input component

unBind

public void unBind(UiContext context,
                   UIComponent editorForm,
                   Parameter parameter)
            throws SchemaException
Triggered on the save event from the metadata editor.

Overrides:
unBind in class Input
Parameters:
context - the UI context
editorForm - the Faces HtmlForm for the metadata editor
parameter - the associated parameter
Throws:
SchemaException - if an associated Faces UIComponent cannot be located

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.