com.ontimize.util.gis.client.utils
Class IMLayersXmlDefinitionBuilder

java.lang.Object
  extended by com.ontimize.gui.InteractionManager
      extended by com.ontimize.gui.BasicInteractionManager
          extended by com.ontimize.util.gis.client.utils.IMLayersXmlDefinitionBuilder
All Implemented Interfaces:
com.ontimize.gui.DataNavigationListener, com.ontimize.gui.Freeable, com.ontimize.gui.ValueChangeListener, java.util.EventListener

public class IMLayersXmlDefinitionBuilder
extends com.ontimize.gui.BasicInteractionManager

Interaction manager for the layer xml generation form. Once the required xml forms are
in the current project, the application.xml code to use those form is:

 <FormManager id="managerlayersxml" form="admin/formlayersxmldefinitionbuilder.xml"
    imanager="com.ontimize.util.gis.client.utils.IMLayersXmlDefinitionBuilder">
    <InteractionManager form="crs/formcrsselection.xml"
        class="com.ontimize.util.gis.client.utils.crs.IMCRSSelection" />
    <InteractionManager form="formlayersxmlshowparameters.xml"
        class="com.ontimize.util.gis.client.utils.IMLayersXmlDefShowParameters" />
    <InteractionManager form="formlayersxmladdparameter.xml"
       class="com.ontimize.util.gis.client.utils.IMLayersXmlDefAddParameter" />
 /FormManager> 
 


Nested Class Summary
 
Nested classes/interfaces inherited from class com.ontimize.gui.BasicInteractionManager
com.ontimize.gui.BasicInteractionManager.AvancedQueryListener, com.ontimize.gui.BasicInteractionManager.DeleteListener, com.ontimize.gui.BasicInteractionManager.InsertListener, com.ontimize.gui.BasicInteractionManager.QueryListener, com.ontimize.gui.BasicInteractionManager.UpdateListener
 
Nested classes/interfaces inherited from class com.ontimize.gui.InteractionManager
com.ontimize.gui.InteractionManager.DeleteFieldsListener, com.ontimize.gui.InteractionManager.InteractionManagerAction, com.ontimize.gui.InteractionManager.PrintingThread
 
Field Summary
protected static int addParamDialogHeight
           
protected static int addParamDialogWidth
           
protected static java.lang.String addParamFormPath
           
protected  com.ontimize.gui.button.Button bAddDataProviderParam
           
protected  com.ontimize.gui.button.Button bAddMouseClickParam
           
protected  com.ontimize.gui.button.Button bAddMouseOverParam
           
protected  com.ontimize.gui.button.Button bCrsSelection
           
protected  com.ontimize.gui.button.Button bGenerateXmlDef
           
protected  com.ontimize.gui.button.Button bShowDataProviderParams
           
protected  com.ontimize.gui.button.Button bShowMouseClickParams
           
protected  com.ontimize.gui.button.Button bShowMouseOverParams
           
protected  com.ontimize.gui.button.Button bStyleSetup
           
protected static java.lang.String crsFormPath
           
protected  javax.swing.JDialog dAddParam
           
protected  com.ontimize.gui.field.TextDataField dataProviderClass
           
protected  com.ontimize.gui.field.TextComboDataField dataProviderType
           
protected  com.ontimize.gui.container.EJDialog dCrsSelection
           
protected  javax.swing.JDialog dShowParams
           
protected  com.ontimize.gui.container.EJDialog dStyleSetup
           
protected  com.ontimize.gui.Form fAddParam
           
protected  com.ontimize.gui.Form fCrsSelection
           
protected  com.ontimize.gui.Form fShowParams
           
protected  com.ontimize.gui.Form fStyleSetup
           
protected  com.ontimize.gui.field.TextComboDataField geometryType
           
protected  com.ontimize.gui.field.TextDataField layerAttr
           
protected  com.ontimize.gui.field.CheckDataField layerClientSide
           
protected  com.ontimize.gui.field.TextDataField layerCrs
           
protected  com.ontimize.gui.field.MemoDataField layerDescription
           
protected  com.ontimize.gui.field.CheckDataField layerEditable
           
protected  com.ontimize.gui.field.CheckDataField layerLocal
           
protected  com.ontimize.gui.field.RealDataField layerMaxX
           
protected  com.ontimize.gui.field.RealDataField layerMaxY
           
protected  com.ontimize.gui.field.RealDataField layerMinX
           
protected  com.ontimize.gui.field.RealDataField layerMinY
           
protected  com.ontimize.gui.field.CheckDataField layerSelectable
           
protected  com.ontimize.gui.field.TextDataField layerTitle
           
protected  com.ontimize.gui.field.CheckDataField layerVisible
           
protected  com.ontimize.gui.field.TextDataField onMouseClickClass
           
protected  com.ontimize.gui.field.TextDataField onMouseOverClass
           
static int PARAMETER_DATA_PROVIDER
           
static int PARAMETER_ON_MOUSE_CLICK
           
static int PARAMETER_ON_MOUSE_OVER
           
protected  com.ontimize.gui.field.TextDataField pkFormField
           
protected  com.ontimize.gui.field.TextDataField pkLayerField
           
protected static int showParamsDialogHeight
           
protected static int showParamsDialogWidth
           
protected static java.lang.String showParamsFormPath
           
protected  java.lang.String styleDefinition
           
protected  com.ontimize.gui.Form styleForm
           
protected static java.lang.String styleSetupFormPath
           
protected  IGisLayerXMLBuilder xmlBuilder
           
protected  com.ontimize.gui.field.MemoDataField xmlDefinition
           
 
Fields inherited from class com.ontimize.gui.BasicInteractionManager
addColumnsToTableView, afterUpdate, attributes, attributesValues, AVANCED_QUERY_DEFAULT_VALUE, avancedQueryListener, CLOSE_DETAIL_FORM_AFTER_INSERT_DEFAULT_VALUE, closeDetailFormAfterInsert, CONFIRM_DELETE_DEFAULT_VALUE, defaultInteractionScriptManagerClassName, defaultScriptEnabled, deleteListener, detailForm, expression, formAncestor, formInteractionScriptManager, insertListener, keysValues, keysValuesLastQuery, M_DELETE_CONFIRM, M_FILL_ALL_REQUIRED_FIELDS, M_MODIFIED_DATA_APPLY_CHANGES, M_UPDATE_CONFIRM, queryListener, S_CORRECT_DELETE, S_CORRECT_INSERT, S_CORRECT_UPDATE, S_INCORRECT_DELETE, S_INCORRECT_INSERT, S_INCORRECT_UPDATE, scriptEnabled, searchBetweenResults, showDeleteConfirmMessage, stayInRecordAfterInsert, updateListener
 
Fields inherited from class com.ontimize.gui.InteractionManager
ADVANCED_QUERY_KEY, CHECK_MODIFIED_DATA_CHANGED_DEFAULT_VALUE, checkModifiedDataChangeEvent, client, currentMode, dataChangedEventProcessing, DEBUG, DELETE_KEY, deleteFieldsListener, f11Button, f12Button, f7Button, f9Button, formManager, HELP_KEY, INSERT, INSERT_KEY, interactionManagerModeListenerList, managedForm, modifiedFieldAttributes, NEWMODE, printThread, QUERY, QUERY_KEY, QUERYINSERT, selectionPrintingKey, setDefaultFocusEnabled, UPDATE, UPDATE_ALL, UPDATE_CHANGED, UPDATE_KEY, updateMethod, valueChangedListenerAttributes, warningBirthdayMessage
 
Constructor Summary
IMLayersXmlDefinitionBuilder()
           
 
Method Summary
 void addParameter(java.lang.Object name, java.lang.Object value, int type)
           
protected  void buildAddParamDialog()
           
protected  void buildAddParamForm()
           
protected  void buildShowParamsDialog()
           
protected  void buildShowParamsForm()
           
 void hideDialog()
           
 void registerInteractionManager(com.ontimize.gui.Form form, com.ontimize.gui.FormManager gf)
           
 void setCRSCode(java.lang.Object code)
           
 void setInitialState()
           
 void setStyleDefinition(java.lang.String styleDefinition)
           
 void setUpdateMode()
           
 
Methods inherited from class com.ontimize.gui.BasicInteractionManager
checkDelete, checkInsert, checkQuery, checkSearchInResults, checkUpdate, cloneInteractionManager, createScriptManager, dataWillChange, ensureComponentVisible, free, getAncestorsTo, getAttributesValuesUpdateForm, getEmptyRequiredFieldsMessage, getFormKeyValues, getInsertAttributesValues, getQueryAttributes, print, query, removeDeleteListener, removeInsertListener, removeQueryListener, removeUpdateListener, requestFocusForEmptyRequiredComponent, setDetailForm, setInsertMode, setQueryInsertMode, setQueryMode, setShowDeleteConfirmMessage, setStayInRecordAfterInsert
 
Methods inherited from class com.ontimize.gui.InteractionManager
addInteractionManagerModeListener, checkBirthday, dataChanged, finalize, fireInteractionManagerModeChanged, getCheckModifiedDataChangeEvent, getCurrentMode, getDataChangedEventProcessing, getDefaultActiveFocus, getFieldValues, getImageValues, getModifiedFieldAttributes, getTableValues, getTemplateFields, getTemplateImages, getTemplateTables, registerFormKeyBindings, removeInteractionManagerModeListener, setCheckModifiedDataChangeEvent, setDataChangedEventProcessing, setDefaultFocusEnabled, setUpdateMethodVersion, setValueChangedEventListener, setWarningBirthdayMessage, valueChanged
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAMETER_ON_MOUSE_OVER

public static final int PARAMETER_ON_MOUSE_OVER
See Also:
Constant Field Values

PARAMETER_ON_MOUSE_CLICK

public static final int PARAMETER_ON_MOUSE_CLICK
See Also:
Constant Field Values

PARAMETER_DATA_PROVIDER

public static final int PARAMETER_DATA_PROVIDER
See Also:
Constant Field Values

addParamDialogWidth

protected static int addParamDialogWidth

addParamDialogHeight

protected static int addParamDialogHeight

showParamsDialogWidth

protected static int showParamsDialogWidth

showParamsDialogHeight

protected static int showParamsDialogHeight

xmlBuilder

protected IGisLayerXMLBuilder xmlBuilder

fAddParam

protected com.ontimize.gui.Form fAddParam

dAddParam

protected javax.swing.JDialog dAddParam

fShowParams

protected com.ontimize.gui.Form fShowParams

dShowParams

protected javax.swing.JDialog dShowParams

fCrsSelection

protected com.ontimize.gui.Form fCrsSelection

dCrsSelection

protected com.ontimize.gui.container.EJDialog dCrsSelection

fStyleSetup

protected com.ontimize.gui.Form fStyleSetup

dStyleSetup

protected com.ontimize.gui.container.EJDialog dStyleSetup

crsFormPath

protected static java.lang.String crsFormPath

styleSetupFormPath

protected static java.lang.String styleSetupFormPath

addParamFormPath

protected static java.lang.String addParamFormPath

showParamsFormPath

protected static java.lang.String showParamsFormPath

bGenerateXmlDef

protected com.ontimize.gui.button.Button bGenerateXmlDef

bStyleSetup

protected com.ontimize.gui.button.Button bStyleSetup

bCrsSelection

protected com.ontimize.gui.button.Button bCrsSelection

bAddMouseOverParam

protected com.ontimize.gui.button.Button bAddMouseOverParam

bAddMouseClickParam

protected com.ontimize.gui.button.Button bAddMouseClickParam

bAddDataProviderParam

protected com.ontimize.gui.button.Button bAddDataProviderParam

bShowMouseOverParams

protected com.ontimize.gui.button.Button bShowMouseOverParams

bShowMouseClickParams

protected com.ontimize.gui.button.Button bShowMouseClickParams

bShowDataProviderParams

protected com.ontimize.gui.button.Button bShowDataProviderParams

styleForm

protected com.ontimize.gui.Form styleForm

layerAttr

protected com.ontimize.gui.field.TextDataField layerAttr

layerTitle

protected com.ontimize.gui.field.TextDataField layerTitle

layerCrs

protected com.ontimize.gui.field.TextDataField layerCrs

onMouseOverClass

protected com.ontimize.gui.field.TextDataField onMouseOverClass

onMouseClickClass

protected com.ontimize.gui.field.TextDataField onMouseClickClass

pkFormField

protected com.ontimize.gui.field.TextDataField pkFormField

pkLayerField

protected com.ontimize.gui.field.TextDataField pkLayerField

dataProviderClass

protected com.ontimize.gui.field.TextDataField dataProviderClass

dataProviderType

protected com.ontimize.gui.field.TextComboDataField dataProviderType

geometryType

protected com.ontimize.gui.field.TextComboDataField geometryType

layerDescription

protected com.ontimize.gui.field.MemoDataField layerDescription

xmlDefinition

protected com.ontimize.gui.field.MemoDataField xmlDefinition

layerVisible

protected com.ontimize.gui.field.CheckDataField layerVisible

layerLocal

protected com.ontimize.gui.field.CheckDataField layerLocal

layerSelectable

protected com.ontimize.gui.field.CheckDataField layerSelectable

layerEditable

protected com.ontimize.gui.field.CheckDataField layerEditable

layerClientSide

protected com.ontimize.gui.field.CheckDataField layerClientSide

layerMinX

protected com.ontimize.gui.field.RealDataField layerMinX

layerMaxX

protected com.ontimize.gui.field.RealDataField layerMaxX

layerMinY

protected com.ontimize.gui.field.RealDataField layerMinY

layerMaxY

protected com.ontimize.gui.field.RealDataField layerMaxY

styleDefinition

protected java.lang.String styleDefinition
Constructor Detail

IMLayersXmlDefinitionBuilder

public IMLayersXmlDefinitionBuilder()
Method Detail

setInitialState

public void setInitialState()
Overrides:
setInitialState in class com.ontimize.gui.BasicInteractionManager

setUpdateMode

public void setUpdateMode()
Overrides:
setUpdateMode in class com.ontimize.gui.BasicInteractionManager

registerInteractionManager

public void registerInteractionManager(com.ontimize.gui.Form form,
                                       com.ontimize.gui.FormManager gf)
Overrides:
registerInteractionManager in class com.ontimize.gui.BasicInteractionManager

addParameter

public void addParameter(java.lang.Object name,
                         java.lang.Object value,
                         int type)

setCRSCode

public void setCRSCode(java.lang.Object code)

setStyleDefinition

public void setStyleDefinition(java.lang.String styleDefinition)

hideDialog

public void hideDialog()

buildAddParamForm

protected void buildAddParamForm()

buildShowParamsForm

protected void buildShowParamsForm()

buildAddParamDialog

protected void buildAddParamDialog()

buildShowParamsDialog

protected void buildShowParamsDialog()