com.esri.adf.web.ags.data.edit.bean
Class EditBean

java.lang.Object
  extended by com.esri.adf.web.ags.data.edit.bean.EditBean
All Implemented Interfaces:
WebContextInitialize, WebLifecycle, Serializable

public class EditBean
extends Object
implements Serializable, WebContextInitialize, WebLifecycle

This is the backing bean that handles all editing functions. You can override this bean to change default behaviors of the Web Editor. The sample code shows how to change the default "select" action to XOR select.

  public class EditEx extends EditBean{
 
  private static final long serialVersionUID = 1L;
 
  public EditEx() {
  super();
  }
  
  // override the server action of the select button
  public void select(MapEvent event) {
  try {
  
  // convert spatial reference of the select box to the map spatial reference.  
  WebGeometry extent = toMapGeometry(event.getWebGeometry());
  
  // convert the ADF geometry to an ArcObject geometry
  IEnvelope env = EditWebUtil.toEnvelope((WebExtent) extent, getCache()
  .getServerContext());
 
  // create a select action
  SelectByExtent select = new SelectByExtent(env);
  
  // turn on the XOR mode
  select.setXorMode(true);
  
  // process the action
  process(select, true);
 
  // refresh the map image.
  getWebContext().refresh();
 
  } catch (Exception e) {
  e.printStackTrace();
  }
  }
 

See Also:
Serialized Form

Nested Class Summary
static class EditBean.GeometryType
          Geometry Types: point, line, polygon.
 
Field Summary
protected  ResourceBean cache
          The resources and cache associated with the editing bean.
protected  ConfigBean config
          The configuration.
protected  String statusMessage
          The status message to send to client side.
 
Constructor Summary
EditBean()
           
 
Method Summary
 void activate()
           Objects (context attributes, resources and functionalities) should perform setup tasks to ready themselves up to do user operations in this method.
 void addPoint(MapEvent event)
          A task action to add Point feature.
 void addPolygon(MapEvent event)
          A task action to add polygon feature.
 void addPolyline(MapEvent event)
          A task action to add line feature.
 void addVertex(MapEvent event)
          A task action to insert a vertex either along an existing segment, or between two existing vertices.
 void changeConfig(Map<?,?> request, Element response)
          Handles the AJAX "changeConfig" call.
 void clearSelect()
          Clears all the selected feature on the current layer.
 void closeEditor(Map<?,?> request, Element response)
          Handles the AJAX "closeEditor" call.
 void closeEditWindows()
          A task tool to stop editing, discard unsaved edits, and close editing window.
 void continueEnterXY(String xValue, String yValue)
          A task action to add XY values.
protected  void copy(MapEvent event)
          A task action to copy the feature by clicking anywhere on the map to locate the new feature.
 void copyPoint(MapEvent event)
          A task action to copy the feature by clicking anywhere on the map to locate the new feature.
 void copyPolygon(MapEvent event)
          A task action to copy the feature by clicking anywhere on the map to locate the new feature.
 void copyPolyline(MapEvent event)
          A task action to copy the feature by clicking anywhere on the map to locate the new feature.
 void delete()
          A task tool to delete the selected feature.
 void deleteVertex(MapEvent event)
          A task action to delete the selected vertex.
 void destroy()
           The cleaup chores (such as releasing held resources) of attributes of a WebContext should be performed in this method.
 void discard()
          A task tool to stop editing and discard all the changes.
 void enterFinalXY(String xValue, String yValue)
          A task action to enter the last XY value.
 void enterXY(Map<?,?> request, Element response)
          Handles the AJAX "enterXY" call.
 void enterXY(String clientAction, String serverAction)
          A task action to build or modify geometry by entering XY values instead of using a Map Mouse click.
protected  void finalize()
           
 void firstOID()
          Moves to the first selected feature in the queue.
 String getApplyLabel()
          A label property in the editing window.
 AttributeFilter getAttributeFilter()
          Gets the attribute filter.
 Attribute[] getAttributes()
          Gets all the attributes of the current selected feature.
 String getAttributesLabel()
          A label property in the editing window.
protected  ResourceBean getCache()
          Gets the resources associated with the current bean.
 String getCloseWindowConfirmLabel()
          A label property in the editing window.
 String getConfigurationName()
          Gets the configuration name of the EditBean.
 List<javax.faces.model.SelectItem> getConfigurationNames()
          Gets the available configurations of the EditBean.
 List<ConfigBean> getConfigurations()
          Gets the available configurations of the EditBean.
 String getContinueLabel()
          A label property in the editing window.
 String getCreateFeatureLabel()
          A label property in the editing window.
 int getCurrentOID()
          Gets the current OID of the selected feature.
 int getCurrentOIDIndex()
          Gets the index of the current OID in the selected features.
 DateFormat getDateFormat()
          Gets the date format for date converting.
 String getEditFeatureLabel()
          A label property in the editing window.
 String getEditLabel()
          A label property in the editing window.
 String getEnteredLabel()
          A label property in the editing window.
 String getEnteredLastPoint()
          Gets the last entered point as a string.
 String getEnterGeometyType()
          Gets the geometry type of the tool operation.
 ActionEventListener getEventListener()
          Gets the event listener of actions.
 String getFeaturesLabel()
          A label property in the editing window.
 String getFinalLabel()
          A label property in the editing window.
 Integer getLayerID()
          Gets the layer index of the working layer.
 Map<Integer,String> getLayers()
          Gets the layers list for editing.
 String getMaxCountLabel()
          A label property in the editing window.
 int getNumberOfConfig()
          Returns the number of configurations.
 int getNumberOfVersions()
          Returns the number of configurations.
 String getPixelsLabel()
          A label property in the editing window.
 int getSeleciontSize()
          Deprecated.  
 String getSelectColorLabel()
          A label property in the editing window.
 String getSelectConfigLabel()
          A label property in the editing window.
 String getSelectFeaturesLabel()
          A label property in the editing window.
 int getSelectionSize()
          Gets the size of feature selection on the current layer.
 String getSelectVersionLabel()
          A label property in the editing window.
 String getSettingsLabel()
          A label property in the editing window.
 String getShapeType()
          Gets the geometry type of the current working layer.
 String getSnapColorLabel()
          A label property in the editing window.
 SnapRulesBean[] getSnapRules()
          Gets the snapping settings.
 String getStartEditingLabel()
          A label property in the editing window.
 String getStatusMessage()
          A task property "statusMessage" showing operation status.
 ConfigBean getTaskConfig()
          Gets the configuration.
 String getTaskName()
          Gets task window title.
 String getToleranceLabel()
          A label property in the editing window.
 String getTypeLabel()
          A label property in the editing window.
 String getVersion()
          Gets the working version for editing.
 List<javax.faces.model.SelectItem> getVersions()
          Sets the available version list for editing.
 String getVerticesColorLabel()
          A label property in the editing window.
protected  WebContext getWebContext()
          Gets the webContext associated with the bean.
 String getWindowName()
          Gets the current window associated with bean.
 boolean hasEdits()
          Returns true if there are edits available.
 boolean hasNextOID()
          Returns true if current feature is not the last in the queue.
 boolean hasPreOID()
          Returns true if current feature is not the first in the queue.
 void init(Map<?,?> request, Element response)
          Handles the AJAX "init" call.
 void init(WebContext context)
           The initialization chores of attributes of a WebContext should be performed in this method.
 boolean isAddFeaturesEnabled()
          Returns true if add attributes function is enabled.
 boolean isBeingEdited()
          Returns true if it is in the middle of a editing session.
 boolean isContinueEnterXY()
          Returns true if can continue enter XY value.
 boolean isEditAttributesEnabled()
          Returns true if edit attributes function is enabled.
 boolean isEditFeaturesEnabled()
          Returns true if edit features function is enabled.
 boolean isEnterFinalXY()
          Returns true if can enter final XY value.
 boolean isPooledEditing()
          Returns true if the map service is pooled.
 boolean isRedoable()
          Returns true if redo is enabled.
 boolean isReshapeable()
          Returns true if the vertices is on.
 boolean isSelected()
          Returns true if there features selected.
 boolean isSnapEnabled()
          Returns true if the snapping is enabled.
 boolean isUndoable()
          Returns true if undo is enabled.
 boolean isVersionedEditing()
          Returns true if the data source supports versioning.
 boolean isWindowOpened()
          Returns true if the editor window is opened.
 void lastOID()
          Moves to the last selected feature in the queue.
protected  void merge()
          A task tool to operates on a selection set at least two features must be selected.
 void mergePolygon()
          A task tool to operates on a selection set at least two features must be selected.
 void mergePolyline()
          A task tool to operates on a selection set at least two features must be selected.
 void move(MapEvent event)
          A task action to re-locate the feature by clicking anywhere on the map.
 void moveVertex(MapEvent event)
          A task tool to move an existing vertex.
 void nextOID()
          Moves to the next OID in the queue.
 void onAjaxServerAction(Map<?,?> request, Element response)
          Handlers the editing AJAX calls.
 void passivate()
           Objects (context attributes, resources and functionalities) should perform cleanup tasks after having performed user operations in this method.
 void preOID()
          Moves to the previous selected feature in the queue.
protected  void process(EditAction action, boolean changeSelection)
          Processes the action.
 void redo()
          A task tool to redo edits
 void refresh()
          Redraws the associated MapControl.
 void refresh(Map<?,?> request, Element response)
          Handles the AJAX "refresh" call.
protected  void renderAttribute(Element root, Attribute att)
          Converts the attribute to an element and appends it to the given root element.
protected  void renderConfig(Element root)
          Converts the ConfigBean to an element and appends it to the given parent element.
protected  void renderLayers(Element root)
          Converts the layers to an element and appends it to the given parent element.
protected  void resetSelectionIndex()
          Resets the index of the selection queue to "0".
 void save()
          A task tool to stop and save all the edits.
 void select(MapEvent event)
          Selects feature within the given extent.
 void setAttributeFilter(AttributeFilter attributeFilter)
          Sets the attribute filter.
 void setAvailableConfigurations(List<ConfigBean> configBeans)
          Sets the available configurations of the EditBean.
 void setConfigurationName(String configurationName)
          Sets the configuration of the EditBean by name.
 void setDateFormat(DateFormat dateFormat)
          Sets the date format for date converting.
 void setEventListener(ActionEventListener eventListener)
          Sets the event listener of actions.
 void setLayerID(Integer layerID)
          Sets the layer index of the working layer.
 void setTaskConfig(ConfigBean configbean)
          Sets the configuration.
 void setTaskName(String taskName)
          Sets the name of the Bean.
 void setVersion(String version)
          Sets the working version for editing.
 void setWindowOpened(boolean windowOpened)
          Sets to true if the editor window is opened.
 void showVertices()
          A task tool to show vertices on selected feature.
 void snapPoint(Map<?,?> request, Element response)
          Handles the AJAX "snapPoint" call.
 Object[] snapPoint(WebPoint point)
          Returns snap result of the given point in map reference system.
 void splitLine(MapEvent event)
          A task tool allows the user to select a point along existing segment to split the line feature.
 void splitPolygon(MapEvent event)
          A task action to sketch a line to split the polygon feature.
 void startEditing()
          Starts editing.
protected static String toLocalMessage(String message)
          Gets the localized message.
protected static String toLocalMessage(String message, Object[] params)
          Gets the localized message.
protected  WebGeometry toMapGeometry(WebGeometry geometry)
          Converts the geometry to a map geometry.
 void toXML(Element root)
          Renders attributes of this editing bean to elements and append them to the given root.
 void undo()
          A task too to undo previous edit.
 void updateAttribute(int index, String value)
          Updates the attribute.
 void updateAttributes(Map<?,?> request, Element response)
          Handles the AJAX "updateAttributes" call.
 void updateSettings(Map<?,?> request, Element response)
          Handles the AJAX "updateSettings" call.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cache

protected ResourceBean cache
The resources and cache associated with the editing bean.


config

protected ConfigBean config
The configuration.


statusMessage

protected String statusMessage
The status message to send to client side.

Constructor Detail

EditBean

public EditBean()
Method Detail

destroy

public void destroy()
Description copied from interface: WebContextInitialize

The cleaup chores (such as releasing held resources) of attributes of a WebContext should be performed in this method.

Typically this method is called by the WebContext when the context itself is destroyed.

The WebContext attribute is unusable after this method has been called.

Specified by:
destroy in interface WebContextInitialize
See Also:
WebContext.destroy()

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

activate

public void activate()
Description copied from interface: WebLifecycle

Objects (context attributes, resources and functionalities) should perform setup tasks to ready themselves up to do user operations in this method.

Typical setup tasks including (re)connecting to GIS servers and (re)hydrating server objects. This method is called on context attributes and on resources by the WebContext when the context itself is activated. The resource subsequently calls this method on its functionalities.

This method is called on every request before the JSF lifecycle is executed.

Specified by:
activate in interface WebLifecycle
See Also:
WebContext.activate()

passivate

public void passivate()
Description copied from interface: WebLifecycle

Objects (context attributes, resources and functionalities) should perform cleanup tasks after having performed user operations in this method.

Typical cleanup tasks including closing connections to GIS servers and dehydrating server objects. This method is called on context attributes and on resources by the WebContext when the context itself is passivated. The resource subsequently calls this method on its functionalities.

This method is called on every request after the JSF lifecycle is executed.

Specified by:
passivate in interface WebLifecycle
See Also:
WebContext.passivate()

init

public void init(WebContext context)
Description copied from interface: WebContextInitialize

The initialization chores of attributes of a WebContext should be performed in this method.

Typically this method is called by the WebContext when the context itself is initialized. It is important to note that this method is again called by the context when a GISResource is dynamically added to or removed from the context. Classes that implement this method should keep this in mind and adapt the method to react to the callbacks in these circumstances as well.

A WebContext attribute is usable only after this method has been called.

Specified by:
init in interface WebContextInitialize
Parameters:
context - WebContext- the WebContext
See Also:
WebContext.init(WebContext), WebContext.addResource(String, GISResource, int), WebContext.removeResource(GISResource)

getVersions

public List<javax.faces.model.SelectItem> getVersions()
Sets the available version list for editing.


getVersion

public String getVersion()
Gets the working version for editing.

Returns:
Returns the version.

setVersion

public void setVersion(String version)
Sets the working version for editing.

Parameters:
version - The version to set.

getLayers

public Map<Integer,String> getLayers()
Gets the layers list for editing.


getShapeType

public String getShapeType()
Gets the geometry type of the current working layer.

Returns:
the GeometryType as string.

getLayerID

public Integer getLayerID()
Gets the layer index of the working layer.

Returns:
Returns the layerID.

setLayerID

public void setLayerID(Integer layerID)
Sets the layer index of the working layer.

Parameters:
layerID - The layerID to set.

getWindowName

public String getWindowName()
Gets the current window associated with bean.

Returns:
Returns the window name, e.g. "version", "edit".

clearSelect

public void clearSelect()
Clears all the selected feature on the current layer.


startEditing

public void startEditing()
Starts editing.


select

public void select(MapEvent event)
Selects feature within the given extent.

Parameters:
event - the map event contain the extent.

updateAttribute

public void updateAttribute(int index,
                            String value)
Updates the attribute.

Parameters:
value - the new value of the attribute.
index - the index of the attribute.

getAttributes

public Attribute[] getAttributes()
Gets all the attributes of the current selected feature.

Returns:
the attribute array.

isSelected

public boolean isSelected()
Returns true if there features selected.

Returns:
Returns true if there features selected.

isReshapeable

public boolean isReshapeable()
Returns true if the vertices is on.


getCurrentOID

public int getCurrentOID()
Gets the current OID of the selected feature.

Returns:
Returns the OID.

getCurrentOIDIndex

public int getCurrentOIDIndex()
Gets the index of the current OID in the selected features.

Returns:
Returns the index.

getSeleciontSize

public int getSeleciontSize()
Deprecated. 

Gets the size of feature selection on the current layer.

Returns:
Returns the size.

getSelectionSize

public int getSelectionSize()
Gets the size of feature selection on the current layer.

Returns:
Returns the size.

nextOID

public void nextOID()
Moves to the next OID in the queue.


firstOID

public void firstOID()
Moves to the first selected feature in the queue.


lastOID

public void lastOID()
Moves to the last selected feature in the queue.


preOID

public void preOID()
Moves to the previous selected feature in the queue.


hasNextOID

public boolean hasNextOID()
Returns true if current feature is not the last in the queue.

Returns:
true if current feature is not the last in the queue.

hasPreOID

public boolean hasPreOID()
Returns true if current feature is not the first in the queue.

Returns:
true if current feature is not the first in the queue.

refresh

public void refresh()
Redraws the associated MapControl.


hasEdits

public boolean hasEdits()
Returns true if there are edits available.


isBeingEdited

public boolean isBeingEdited()
Returns true if it is in the middle of a editing session.


toLocalMessage

protected static String toLocalMessage(String message)
Gets the localized message.


toLocalMessage

protected static String toLocalMessage(String message,
                                       Object[] params)
Gets the localized message.


showVertices

public void showVertices()
A task tool to show vertices on selected feature.


save

public void save()
A task tool to stop and save all the edits.


discard

public void discard()
A task tool to stop editing and discard all the changes.


isUndoable

public boolean isUndoable()
Returns true if undo is enabled.


isRedoable

public boolean isRedoable()
Returns true if redo is enabled.


redo

public void redo()
A task tool to redo edits


undo

public void undo()
A task too to undo previous edit.


copyPoint

public void copyPoint(MapEvent event)
A task action to copy the feature by clicking anywhere on the map to locate the new feature. The feature must first be selected then the user simply clicks on the Map. The feature is copied to that exact location.

Parameters:
event -

copyPolyline

public void copyPolyline(MapEvent event)
A task action to copy the feature by clicking anywhere on the map to locate the new feature. The feature must first be selected then the user simply clicks on the Map. The feature is copied to that exact location.

Parameters:
event -

copyPolygon

public void copyPolygon(MapEvent event)
A task action to copy the feature by clicking anywhere on the map to locate the new feature. The feature must first be selected then the user simply clicks on the Map. The feature is copied to that exact location.

Parameters:
event -

copy

protected void copy(MapEvent event)
A task action to copy the feature by clicking anywhere on the map to locate the new feature. The feature must first be selected then the user simply clicks on the Map. The feature is copied to that exact location.

Parameters:
event -

move

public void move(MapEvent event)
A task action to re-locate the feature by clicking anywhere on the map. The feature must first be selected then the user simply clicks on the Map. The feature is moved to that exact location.

Parameters:
event -

splitLine

public void splitLine(MapEvent event)
A task tool allows the user to select a point along existing segment to split the line feature.

Parameters:
event -

splitPolygon

public void splitPolygon(MapEvent event)
A task action to sketch a line to split the polygon feature. It must cut a segment at least twice. The feature should be split into two.

Parameters:
event -

delete

public void delete()
A task tool to delete the selected feature.


mergePolyline

public void mergePolyline()
A task tool to operates on a selection set at least two features must be selected.


mergePolygon

public void mergePolygon()
A task tool to operates on a selection set at least two features must be selected.


merge

protected void merge()
A task tool to operates on a selection set at least two features must be selected.


addVertex

public void addVertex(MapEvent event)
A task action to insert a vertex either along an existing segment, or between two existing vertices.

Parameters:
event -

moveVertex

public void moveVertex(MapEvent event)
A task tool to move an existing vertex. The tool allows the user to select the vertex of interest. To move the vertex the editor can click anywhere on the Map they wish to re-locate it.

Parameters:
event -

deleteVertex

public void deleteVertex(MapEvent event)
A task action to delete the selected vertex. The tool allows the user to select the vertex of interest. Upon selection of vertex it is deleted. If the editor deletes the wrong vertex they can undo their action with the Undo tool.

Parameters:
event -

addPoint

public void addPoint(MapEvent event)
A task action to add Point feature.

Parameters:
event -

addPolyline

public void addPolyline(MapEvent event)
A task action to add line feature.

Parameters:
event -

addPolygon

public void addPolygon(MapEvent event)
A task action to add polygon feature.

Parameters:
event -

getStatusMessage

public String getStatusMessage()
A task property "statusMessage" showing operation status.


getTaskConfig

public ConfigBean getTaskConfig()
Gets the configuration.

Returns:
Returns the config.

setTaskConfig

public void setTaskConfig(ConfigBean configbean)
Sets the configuration.

Parameters:
configbean - The config to set.

getEventListener

public ActionEventListener getEventListener()
Gets the event listener of actions.

Returns:
Returns the eventListener.

setEventListener

public void setEventListener(ActionEventListener eventListener)
Sets the event listener of actions.

Parameters:
eventListener - The eventListener to set.

getAttributeFilter

public AttributeFilter getAttributeFilter()
Gets the attribute filter.

Returns:
Returns the attributeFilter.

setAttributeFilter

public void setAttributeFilter(AttributeFilter attributeFilter)
Sets the attribute filter.

Parameters:
attributeFilter - The attributeFilter to set.

getSnapRules

public SnapRulesBean[] getSnapRules()
Gets the snapping settings.

Returns:
the snapping settings.

isSnapEnabled

public boolean isSnapEnabled()
Returns true if the snapping is enabled.


snapPoint

public Object[] snapPoint(WebPoint point)
Returns snap result of the given point in map reference system.

Parameters:
point - the input point in screen reference system.
Returns:
Object[]{WebPoint, String};
 1. snap point in screen reference system or null.
 2. snap layers String or null.
 

isPooledEditing

public boolean isPooledEditing()
Returns true if the map service is pooled.

Returns:
Returns true if the map service is pooled.

isVersionedEditing

public boolean isVersionedEditing()
Returns true if the data source supports versioning.

Returns:
Returns true if it is versioned editing.

isAddFeaturesEnabled

public boolean isAddFeaturesEnabled()
Returns true if add attributes function is enabled.


isEditAttributesEnabled

public boolean isEditAttributesEnabled()
Returns true if edit attributes function is enabled.


isEditFeaturesEnabled

public boolean isEditFeaturesEnabled()
Returns true if edit features function is enabled.


getTaskName

public String getTaskName()
Gets task window title.


setTaskName

public void setTaskName(String taskName)
Sets the name of the Bean. It will be showed as bean windows title.

Parameters:
taskName - the bean name.

isContinueEnterXY

public boolean isContinueEnterXY()
Returns true if can continue enter XY value.


isEnterFinalXY

public boolean isEnterFinalXY()
Returns true if can enter final XY value.


getEnterGeometyType

public String getEnterGeometyType()
Gets the geometry type of the tool operation.

Returns:
Returns the geometry type.

getEnteredLastPoint

public String getEnteredLastPoint()
Gets the last entered point as a string.

Returns:
Returns the point.

enterXY

public void enterXY(String clientAction,
                    String serverAction)
A task action to build or modify geometry by entering XY values instead of using a Map Mouse click.


continueEnterXY

public void continueEnterXY(String xValue,
                            String yValue)
A task action to add XY values.


enterFinalXY

public void enterFinalXY(String xValue,
                         String yValue)
A task action to enter the last XY value.


resetSelectionIndex

protected void resetSelectionIndex()
Resets the index of the selection queue to "0".


process

protected void process(EditAction action,
                       boolean changeSelection)
                throws Exception
Processes the action.

Parameters:
action - the action to process.
changeSelection - set to true if the action need to update selection.
Throws:
Exception

toMapGeometry

protected WebGeometry toMapGeometry(WebGeometry geometry)
Converts the geometry to a map geometry.

Parameters:
geometry - the geometry to convert.
Returns:
the geometry in the map spatial reference system.

getWebContext

protected WebContext getWebContext()
Gets the webContext associated with the bean.

Returns:
Returns the webContext.

getCache

protected ResourceBean getCache()
Gets the resources associated with the current bean.

Returns:
Returns the cache.

closeEditWindows

public void closeEditWindows()
A task tool to stop editing, discard unsaved edits, and close editing window. Closing editor windows does not refresh WebContext associated with this bean.


getDateFormat

public DateFormat getDateFormat()
Gets the date format for date converting. By default the date format is system default date time format, e.g. "Sep 21, 2007 12:00:00 AM"

Returns:
Returns the dateFormat.

setDateFormat

public void setDateFormat(DateFormat dateFormat)
Sets the date format for date converting. By default the date format is system default date time format, e.g. "Sep 21, 2007 12:00:00 AM"

Parameters:
dateFormat - The dateFormat to set.

isWindowOpened

public boolean isWindowOpened()
Returns true if the editor window is opened.

Returns:
Returns Returns true if the editor window is opened.

setWindowOpened

public void setWindowOpened(boolean windowOpened)
Sets to true if the editor window is opened.

Parameters:
windowOpened - Sets to true if the editor window is opened.

getSettingsLabel

public String getSettingsLabel()
A label property in the editing window.


getCreateFeatureLabel

public String getCreateFeatureLabel()
A label property in the editing window.


getEditFeatureLabel

public String getEditFeatureLabel()
A label property in the editing window.


getSelectFeaturesLabel

public String getSelectFeaturesLabel()
A label property in the editing window.


getEditLabel

public String getEditLabel()
A label property in the editing window.


getAttributesLabel

public String getAttributesLabel()
A label property in the editing window.


getToleranceLabel

public String getToleranceLabel()
A label property in the editing window.


getPixelsLabel

public String getPixelsLabel()
A label property in the editing window.


getMaxCountLabel

public String getMaxCountLabel()
A label property in the editing window.


getFeaturesLabel

public String getFeaturesLabel()
A label property in the editing window.


getStartEditingLabel

public String getStartEditingLabel()
A label property in the editing window.


getSelectVersionLabel

public String getSelectVersionLabel()
A label property in the editing window.


getSelectConfigLabel

public String getSelectConfigLabel()
A label property in the editing window.


getSelectColorLabel

public String getSelectColorLabel()
A label property in the editing window.


getVerticesColorLabel

public String getVerticesColorLabel()
A label property in the editing window.


getSnapColorLabel

public String getSnapColorLabel()
A label property in the editing window.


getApplyLabel

public String getApplyLabel()
A label property in the editing window.


getContinueLabel

public String getContinueLabel()
A label property in the editing window.


getFinalLabel

public String getFinalLabel()
A label property in the editing window.


getTypeLabel

public String getTypeLabel()
A label property in the editing window.


getEnteredLabel

public String getEnteredLabel()
A label property in the editing window.


getCloseWindowConfirmLabel

public String getCloseWindowConfirmLabel()
A label property in the editing window.


toXML

public void toXML(Element root)
Renders attributes of this editing bean to elements and append them to the given root.

Parameters:
root - the root element to append the attributes elements.

renderLayers

protected void renderLayers(Element root)
Converts the layers to an element and appends it to the given parent element.

Parameters:
root - the parent element

renderConfig

protected void renderConfig(Element root)
Converts the ConfigBean to an element and appends it to the given parent element.


renderAttribute

protected void renderAttribute(Element root,
                               Attribute att)
Converts the attribute to an element and appends it to the given root element.

Parameters:
root - the root element to append the attribute element.
att - the attribute to convert.

onAjaxServerAction

public void onAjaxServerAction(Map<?,?> request,
                               Element response)
Handlers the editing AJAX calls.

Parameters:
request - the request key value pairs.
response - the output element.

init

public void init(Map<?,?> request,
                 Element response)
Handles the AJAX "init" call.

Parameters:
request - the request key value pairs.
response - the output element.

closeEditor

public void closeEditor(Map<?,?> request,
                        Element response)
Handles the AJAX "closeEditor" call.

Parameters:
request - the request key value pairs.
response - the output element.

snapPoint

public void snapPoint(Map<?,?> request,
                      Element response)
Handles the AJAX "snapPoint" call.

Parameters:
request - the request key value pairs.
response - the output element.

updateAttributes

public void updateAttributes(Map<?,?> request,
                             Element response)
Handles the AJAX "updateAttributes" call.

Parameters:
request - the request key value pairs.
response - the output element.

refresh

public void refresh(Map<?,?> request,
                    Element response)
Handles the AJAX "refresh" call.

Parameters:
request - the request key value pairs.
response - the output element.

enterXY

public void enterXY(Map<?,?> request,
                    Element response)
Handles the AJAX "enterXY" call.

Parameters:
request - the request key value pairs.
response - the output element.

updateSettings

public void updateSettings(Map<?,?> request,
                           Element response)
Handles the AJAX "updateSettings" call.

Parameters:
request - the request key value pairs.
response - the output element.

changeConfig

public void changeConfig(Map<?,?> request,
                         Element response)
Handles the AJAX "changeConfig" call.

Parameters:
request - the request key value pairs.
response - the output element.

getConfigurations

public List<ConfigBean> getConfigurations()
Gets the available configurations of the EditBean.

Returns:
Returns the available configurations.

getConfigurationNames

public List<javax.faces.model.SelectItem> getConfigurationNames()
Gets the available configurations of the EditBean.

Returns:
Returns the available configuration names.

getConfigurationName

public String getConfigurationName()
Gets the configuration name of the EditBean.

Returns:
Returns the configuration name.

setConfigurationName

public void setConfigurationName(String configurationName)
Sets the configuration of the EditBean by name.

Parameters:
configurationName - The name of the configuration bean to set.

setAvailableConfigurations

public void setAvailableConfigurations(List<ConfigBean> configBeans)
Sets the available configurations of the EditBean.

Parameters:
configBeans - The available configurations to set.

getNumberOfConfig

public int getNumberOfConfig()
Returns the number of configurations.

Returns:
the number

getNumberOfVersions

public int getNumberOfVersions()
Returns the number of configurations.

Returns:
the number