com.ontimize.util.gis.client.gui.panels.components
Class JGisToolBar

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JToolBar
                  extended by com.ontimize.util.gis.client.gui.panels.components.JGisToolBar
All Implemented Interfaces:
com.ontimize.gui.field.DataComponent, com.ontimize.gui.field.FormComponent, com.ontimize.gui.field.IdentifiedElement, com.ontimize.gui.i18n.Internationalization, com.ontimize.gui.SecureElement, IGisToolbar, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.SwingConstants

public class JGisToolBar
extends javax.swing.JToolBar
implements IGisToolbar, com.ontimize.gui.field.FormComponent, com.ontimize.gui.field.IdentifiedElement, com.ontimize.gui.field.DataComponent

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JToolBar
javax.swing.JToolBar.AccessibleJToolBar, javax.swing.JToolBar.Separator
 
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  java.lang.Object attribute
           
 java.awt.Paint bgPaint
           
 
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.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 javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
JGisToolBar()
           
JGisToolBar(java.util.Hashtable parameters)
           
JGisToolBar(int orientation)
           
JGisToolBar(java.lang.String name)
           
 
Method Summary
 void addToolbarButton(BasicToolbarButton button)
          Add a new button to the toolbar
 void deleteData()
           
 java.lang.Object getAttribute()
           
 BasicToolbarButton getButton(java.lang.Object buttonAttr)
          Get the toolbar button reference
 java.util.List<BasicToolbarButton> getButtons()
          Get a list with the complete toolbar buttons references
 java.lang.Object getConstraints(java.awt.LayoutManager layoutManager)
           
 java.lang.String getLabelComponentText()
           
 int getSQLDataType()
           
 java.util.Vector getTextsToTranslate()
           
 java.lang.Object getValue()
           
 void init(java.util.Hashtable parameters)
           
 void initPermissions()
           
 boolean isEmpty()
           
 boolean isHidden()
           
 boolean isModifiable()
           
 boolean isModified()
           
 boolean isRequired()
           
 boolean isRestricted()
           
 void paint(java.awt.Graphics g)
           
 void setBackground(java.awt.Color bg)
           
 void setBackgroundPaint(java.awt.Paint bgPaint)
           
 void setComponentLocale(java.util.Locale locale)
           
 void setModifiable(boolean modifiable)
           
 void setOpaque(boolean isOpaque)
           
 void setRequired(boolean required)
           
 void setResourceBundle(java.util.ResourceBundle res)
           
 void setValue(java.lang.Object value)
           
 
Methods inherited from class javax.swing.JToolBar
add, addImpl, addSeparator, addSeparator, createActionChangeListener, createActionComponent, getAccessibleContext, getComponentAtIndex, getComponentIndex, getMargin, getOrientation, getUI, getUIClassID, isBorderPainted, isFloatable, isRollover, paintBorder, paramString, setBorderPainted, setFloatable, setLayout, setMargin, setOrientation, setRollover, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, 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, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintChildren, paintComponent, paintImmediately, paintImmediately, 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, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, 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, 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, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, 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.IGisToolbar
addSeparator
 
Methods inherited from interface com.ontimize.gui.field.FormComponent
isEnabled, setEnabled, setVisible
 

Field Detail

attribute

protected java.lang.Object attribute

bgPaint

public java.awt.Paint bgPaint
Constructor Detail

JGisToolBar

public JGisToolBar()

JGisToolBar

public JGisToolBar(int orientation)

JGisToolBar

public JGisToolBar(java.lang.String name)

JGisToolBar

public JGisToolBar(java.util.Hashtable parameters)
Method Detail

addToolbarButton

public void addToolbarButton(BasicToolbarButton button)
Description copied from interface: IGisToolbar
Add a new button to the toolbar

Specified by:
addToolbarButton in interface IGisToolbar
Parameters:
button - New toolbar button

deleteData

public void deleteData()
Specified by:
deleteData in interface com.ontimize.gui.field.DataComponent

getLabelComponentText

public java.lang.String getLabelComponentText()
Specified by:
getLabelComponentText in interface com.ontimize.gui.field.DataComponent

getSQLDataType

public int getSQLDataType()
Specified by:
getSQLDataType in interface com.ontimize.gui.field.DataComponent

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface com.ontimize.gui.field.DataComponent

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface com.ontimize.gui.field.DataComponent

isHidden

public boolean isHidden()
Specified by:
isHidden in interface com.ontimize.gui.field.DataComponent

isModifiable

public boolean isModifiable()
Specified by:
isModifiable in interface com.ontimize.gui.field.DataComponent

isModified

public boolean isModified()
Specified by:
isModified in interface com.ontimize.gui.field.DataComponent

isRequired

public boolean isRequired()
Specified by:
isRequired in interface com.ontimize.gui.field.DataComponent

setModifiable

public void setModifiable(boolean modifiable)
Specified by:
setModifiable in interface com.ontimize.gui.field.DataComponent

setRequired

public void setRequired(boolean required)
Specified by:
setRequired in interface com.ontimize.gui.field.DataComponent

setValue

public void setValue(java.lang.Object value)
Specified by:
setValue in interface com.ontimize.gui.field.DataComponent

getConstraints

public java.lang.Object getConstraints(java.awt.LayoutManager layoutManager)
Specified by:
getConstraints in interface com.ontimize.gui.field.FormComponent

init

public void init(java.util.Hashtable parameters)
          throws java.lang.Exception
Specified by:
init in interface com.ontimize.gui.field.FormComponent
Throws:
java.lang.Exception

getTextsToTranslate

public java.util.Vector getTextsToTranslate()
Specified by:
getTextsToTranslate in interface com.ontimize.gui.i18n.Internationalization

setComponentLocale

public void setComponentLocale(java.util.Locale locale)
Specified by:
setComponentLocale in interface com.ontimize.gui.i18n.Internationalization

setResourceBundle

public void setResourceBundle(java.util.ResourceBundle res)
Specified by:
setResourceBundle in interface com.ontimize.gui.i18n.Internationalization

getAttribute

public java.lang.Object getAttribute()
Specified by:
getAttribute in interface com.ontimize.gui.field.IdentifiedElement

initPermissions

public void initPermissions()
Specified by:
initPermissions in interface com.ontimize.gui.SecureElement

isRestricted

public boolean isRestricted()
Specified by:
isRestricted in interface com.ontimize.gui.SecureElement

getButton

public BasicToolbarButton getButton(java.lang.Object buttonAttr)
Description copied from interface: IGisToolbar
Get the toolbar button reference

Specified by:
getButton in interface IGisToolbar
Parameters:
buttonAttr - Toolbar button attribute
Returns:
Resquested toolbar button

getButtons

public java.util.List<BasicToolbarButton> getButtons()
Description copied from interface: IGisToolbar
Get a list with the complete toolbar buttons references

Specified by:
getButtons in interface IGisToolbar
Returns:
Toolbar buttons list

setBackground

public void setBackground(java.awt.Color bg)
Overrides:
setBackground in class javax.swing.JComponent

setOpaque

public void setOpaque(boolean isOpaque)
Overrides:
setOpaque in class javax.swing.JComponent

setBackgroundPaint

public void setBackgroundPaint(java.awt.Paint bgPaint)

paint

public void paint(java.awt.Graphics g)
Overrides:
paint in class javax.swing.JComponent