|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
com.ontimize.gui.field.AbstractFormComponent
com.ontimize.gui.field.IdentifiedAbstractFormComponent
com.ontimize.util.gis.client.gui.OGisComponent
public class OGisComponent
This is the main gis component that contains all the other existing components like the map viewer, the layers selection panel...
In order to insert this component in a Ontimize form the most basic xml code is:
<com.ontimize.util.gis.client.gui.OGisComponent
attr="geometriesComponent" layersconf="GeometryLayers">
where two necessary parameters are setted:EditionGisViewer)
"true" enables the form operation mode changes listening. By default
EditionGisViewer,
Serialized Form| Nested Class Summary | |
|---|---|
class |
OGisComponent.InitThread
|
class |
OGisComponent.ParseFormAttributeThread
|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected IGisClientManager |
gisClientManager
|
protected IGisViewer |
gisViewer
|
protected boolean |
imModeEnabled
|
(package private) boolean |
inserted
|
protected int |
lastIMMode
|
protected int |
lastLayerIndex
|
protected int |
lastOverMapLayerLast
|
protected java.util.List<javax.swing.JComponent> |
layeredComponents
|
protected IGisLayeredPane |
layeredPane
|
protected java.lang.Object |
layersConfigurationId
|
protected java.awt.LayoutManager |
layout
|
protected boolean |
loadingFinishedPending
|
protected IGisLoadingViewer |
loadingViewer
|
protected boolean |
modifiable
|
protected java.util.Hashtable |
parameters
|
protected com.ontimize.gui.Form |
parentForm
|
protected com.ontimize.locator.ReferenceLocator |
referenceLocator
|
protected boolean |
required
|
protected java.util.ResourceBundle |
res
|
protected java.lang.StringBuilder |
strBuilder
|
protected java.util.concurrent.ExecutorService |
tpes
|
protected java.lang.Object |
value
|
protected java.util.Hashtable<java.lang.String,java.lang.Object> |
viewerPreferences
|
| Fields inherited from class com.ontimize.gui.field.IdentifiedAbstractFormComponent |
|---|
attribute, enabledPermission, restricted, visiblePermission |
| Fields inherited from class com.ontimize.gui.field.AbstractFormComponent |
|---|
defaultBottomMargin, defaultLeftMargin, defaultRightMargin, defaultTopMargin |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface com.ontimize.util.templates.ITemplateField |
|---|
DATA_TYPE_FIELD, DATA_TYPE_IMAGE, DATA_TYPE_TABLE |
| Fields inherited from interface com.ontimize.gui.field.DataComponent |
|---|
COMP_FOCUS_YELLOW, GREEN_VERY_LIGHT, LIGHT_GRAY_BLUE, LIGHT_GREYISH_BLUE, VERY_LIGHT_BLUE, VERY_LIGHT_GRAY, VERY_LIGHT_PINK, VERY_LIGHT_RED, VERY_LIGHT_SKYBLUE, VERY_LIGHT_YELLOW, VERY_LIGHT_YELLOW_2 |
| Fields inherited from interface com.ontimize.gui.field.FormComponent |
|---|
DEBUG |
| Fields inherited from interface com.ontimize.gui.i18n.Internationalization |
|---|
DEBUG_LANGUAGE |
| Fields inherited from interface com.ontimize.gui.SecureElement |
|---|
DESACTIVATE_COMPONENT_BY_PERMISSION_TIP |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
OGisComponent(java.util.Hashtable parameters)
|
|
| Method Summary | |
|---|---|
void |
add(java.awt.Component comp,
java.lang.Object constraints)
|
protected void |
addComponentsToLayeredPane()
Add new components to the gis layered panel, each one is setted in a layer over the previously added component. |
int |
addComponentToLayeredPane(java.awt.Component comp)
Add a new component to the gis layered panel |
int |
addComponentToLayeredPane(java.awt.Component comp,
int index)
Add a new component to the gis layered panel, indicating the index of the component inside the layered panel |
protected void |
addLog(java.lang.Object o,
int level)
|
void |
deleteData()
|
java.lang.Object |
getFormFieldValue(java.lang.String formFieldName)
Gets a form field value. |
com.ontimize.gui.Form |
getFormReference()
Get the gis component form reference |
java.lang.Object |
getGisViewer()
Get a reference to the gis map component |
java.lang.String |
getLabelComponentText()
|
java.util.List<javax.swing.JComponent> |
getLayerPaneComponents()
Get the list of components added into the OntimizeGis component layered panel |
java.util.ResourceBundle |
getResourceBundle()
|
int |
getSQLDataType()
|
int |
getTemplateDataType()
|
java.lang.Object |
getTemplateDataValue()
|
java.lang.Object |
getValue()
|
void |
init(java.util.Hashtable params)
|
protected void |
initViewer(java.lang.String viewerClassName)
Inits the map viewer with the given viewer class name. |
void |
interactionManagerModeChanged(com.ontimize.gui.InteractionManagerModeEvent ev)
|
boolean |
isEmpty()
|
boolean |
isHidden()
|
boolean |
isModifiable()
|
boolean |
isModified()
|
boolean |
isRequired()
|
void |
loadingFinished()
Method used to indicate to the gis component that the map viewer has finished its initialization process |
protected void |
loadUserPreferences()
Load user OGisComponent preferences from user preferences |
protected void |
paintComponent(java.awt.Graphics g)
|
protected void |
parseFormAttributeParameters(FormAttribute formAttr)
Parse the incoming FormAttribute parameters. |
protected java.util.Hashtable<java.lang.String,java.lang.Object> |
parsePreferencesString(java.lang.String preferencesString)
// TODO METHOD |
void |
registerKeyListener(java.awt.event.KeyListener listener)
Register a new key events listener on the gis component |
void |
reloadComponent()
Initilializes the Gis component, forcing it to request the layers configuration data again |
void |
removeComponentFromLayeredPane(java.awt.Component comp)
Remove the given component from the gis component layered panel |
protected void |
setComponentsVisible(boolean visible)
Set all the actual subcomponents visible |
void |
setCursor(java.awt.Cursor cursor)
Changes the actual gis component cursor |
void |
setEnabled(boolean enabled)
|
void |
setLoadingMessage(java.lang.String message)
Set the actual message of the loading panel |
void |
setModifiable(boolean modifiable)
|
void |
setParentForm(com.ontimize.gui.Form f)
|
void |
setPreferredSize(java.awt.Dimension preferredSize)
|
void |
setRequired(boolean required)
|
void |
setResourceBundle(java.util.ResourceBundle res)
|
void |
setSize(java.awt.Dimension d)
|
void |
setSize(int width,
int height)
|
void |
setValue(java.lang.Object value)
|
void |
setVisible(boolean flag)
|
void |
unRegisterKeyListener(java.awt.event.KeyListener listener)
Delete the key events listener from the gis component key listeners group |
| Methods inherited from class com.ontimize.gui.field.IdentifiedAbstractFormComponent |
|---|
checkEnabledPermission, checkVisiblePermission, getAttribute, getParentForm, initPermissions, isRestricted |
| Methods inherited from class com.ontimize.gui.field.AbstractFormComponent |
|---|
getConstraints, getTextsToTranslate, setComponentLocale |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update, updateUI |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.ontimize.util.gis.client.interfaces.IOGisComponent |
|---|
getAttribute, getBounds |
| Methods inherited from interface com.ontimize.gui.field.FormComponent |
|---|
getConstraints, isEnabled |
| Methods inherited from interface com.ontimize.gui.i18n.Internationalization |
|---|
getTextsToTranslate, setComponentLocale |
| Methods inherited from interface com.ontimize.gui.field.IdentifiedElement |
|---|
getAttribute |
| Methods inherited from interface com.ontimize.gui.SecureElement |
|---|
initPermissions, isRestricted |
| Field Detail |
|---|
protected com.ontimize.locator.ReferenceLocator referenceLocator
protected IGisViewer gisViewer
protected java.lang.Object value
protected java.util.Hashtable<java.lang.String,java.lang.Object> viewerPreferences
protected final java.lang.StringBuilder strBuilder
protected IGisClientManager gisClientManager
protected java.lang.Object layersConfigurationId
protected java.awt.LayoutManager layout
protected IGisLoadingViewer loadingViewer
protected java.util.Hashtable parameters
protected int lastOverMapLayerLast
protected int lastLayerIndex
protected java.util.List<javax.swing.JComponent> layeredComponents
protected java.util.concurrent.ExecutorService tpes
protected IGisLayeredPane layeredPane
boolean inserted
protected java.util.ResourceBundle res
protected int lastIMMode
protected boolean loadingFinishedPending
protected boolean imModeEnabled
protected boolean required
protected boolean modifiable
protected com.ontimize.gui.Form parentForm
| Constructor Detail |
|---|
public OGisComponent(java.util.Hashtable parameters)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public void add(java.awt.Component comp,
java.lang.Object constraints)
add in class java.awt.Container
public void init(java.util.Hashtable params)
throws java.lang.Exception
init in interface com.ontimize.gui.field.FormComponentparams - EditionGisViewer)
falsejava.lang.Exceptionprotected void parseFormAttributeParameters(FormAttribute formAttr)
FormAttribute parameters.
If parameter name starts with the prefix "viewer." then the parameter
is passed to the map viewer.
Example:
<com.ontimize.util.gis.client.gui.OGisComponent
attr="geometriesComponent" layersconf="GeometryLayers">
<com.ontimize.util.gis.client.gui.FormAttribute
mame="viewer.zoomInFactor" value="3.0" />
</com.ontimize.util.gis.client.gui.OGisComponent>
formAttr - Form attribute to parseprotected void initViewer(java.lang.String viewerClassName)
EditionGisViewer
as default.
viewerClassName - Map viewer class nameprotected void loadUserPreferences()
public java.lang.Object getGisViewer()
IOGisComponent
getGisViewer in interface IOGisComponentprotected void paintComponent(java.awt.Graphics g)
paintComponent in class javax.swing.JComponentpublic void setEnabled(boolean enabled)
setEnabled in interface com.ontimize.gui.field.FormComponentsetEnabled in class javax.swing.JComponentpublic void setVisible(boolean flag)
setVisible in interface com.ontimize.gui.field.FormComponentsetVisible in class javax.swing.JComponentprotected java.util.Hashtable<java.lang.String,java.lang.Object> parsePreferencesString(java.lang.String preferencesString)
preferencesString - public void setLoadingMessage(java.lang.String message)
IOGisComponent
setLoadingMessage in interface IOGisComponentmessage - Loading panel messagepublic void loadingFinished()
loadingFinished in interface IOGisComponentprotected void setComponentsVisible(boolean visible)
visible - protected void addComponentsToLayeredPane()
The bottom component in this case will be always the map viewer component.
public void setSize(int width,
int height)
setSize in class java.awt.Componentpublic void setPreferredSize(java.awt.Dimension preferredSize)
setPreferredSize in class javax.swing.JComponentpublic void registerKeyListener(java.awt.event.KeyListener listener)
IOGisComponent
registerKeyListener in interface IOGisComponentlistener - Key listener to registerpublic void unRegisterKeyListener(java.awt.event.KeyListener listener)
IOGisComponent
unRegisterKeyListener in interface IOGisComponentlistener - Key listener to deletepublic void setResourceBundle(java.util.ResourceBundle res)
setResourceBundle in interface com.ontimize.gui.i18n.InternationalizationsetResourceBundle in class com.ontimize.gui.field.AbstractFormComponentpublic java.util.ResourceBundle getResourceBundle()
getResourceBundle in interface IOGisComponentpublic int addComponentToLayeredPane(java.awt.Component comp)
IOGisComponent
addComponentToLayeredPane in interface IOGisComponentcomp - Component to add
public int addComponentToLayeredPane(java.awt.Component comp,
int index)
IOGisComponent
addComponentToLayeredPane in interface IOGisComponentcomp - Component to addindex - Component panel layer index
protected void addLog(java.lang.Object o,
int level)
public void interactionManagerModeChanged(com.ontimize.gui.InteractionManagerModeEvent ev)
interactionManagerModeChanged in interface com.ontimize.gui.InteractionManagerModeListenerpublic void deleteData()
deleteData in interface com.ontimize.gui.field.DataComponentpublic java.lang.String getLabelComponentText()
getLabelComponentText in interface com.ontimize.gui.field.DataComponentpublic int getSQLDataType()
getSQLDataType in interface com.ontimize.gui.field.DataComponentpublic java.lang.Object getValue()
getValue in interface com.ontimize.gui.field.DataComponentpublic boolean isEmpty()
isEmpty in interface com.ontimize.gui.field.DataComponentpublic boolean isHidden()
isHidden in interface com.ontimize.gui.field.DataComponentpublic boolean isModifiable()
isModifiable in interface com.ontimize.gui.field.DataComponentpublic boolean isModified()
isModified in interface com.ontimize.gui.field.DataComponentpublic boolean isRequired()
isRequired in interface com.ontimize.gui.field.DataComponentpublic void setModifiable(boolean modifiable)
setModifiable in interface com.ontimize.gui.field.DataComponentpublic void setRequired(boolean required)
setRequired in interface com.ontimize.gui.field.DataComponentpublic void setValue(java.lang.Object value)
setValue in interface com.ontimize.gui.field.DataComponentpublic java.lang.Object getFormFieldValue(java.lang.String formFieldName)
IOGisComponent
getFormFieldValue in interface IOGisComponentformFieldName - Form field name
public void removeComponentFromLayeredPane(java.awt.Component comp)
IOGisComponent
removeComponentFromLayeredPane in interface IOGisComponentcomp - Component to removepublic void setCursor(java.awt.Cursor cursor)
IOGisComponent
setCursor in interface IOGisComponentsetCursor in class java.awt.Componentcursor - Gis component cursorpublic com.ontimize.gui.Form getFormReference()
IOGisComponent
getFormReference in interface IOGisComponentpublic void setSize(java.awt.Dimension d)
setSize in class java.awt.Componentpublic java.util.List<javax.swing.JComponent> getLayerPaneComponents()
IOGisComponent
getLayerPaneComponents in interface IOGisComponentpublic void reloadComponent()
IOGisComponent
reloadComponent in interface IOGisComponentpublic int getTemplateDataType()
getTemplateDataType in interface com.ontimize.util.templates.ITemplateFieldpublic java.lang.Object getTemplateDataValue()
getTemplateDataValue in interface com.ontimize.util.templates.ITemplateFieldpublic void setParentForm(com.ontimize.gui.Form f)
setParentForm in interface com.ontimize.gui.field.AccessFormsetParentForm in class com.ontimize.gui.field.IdentifiedAbstractFormComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||