com.sibvisions.rad.ui.swing.ext
Class JVxToolBarPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by com.sibvisions.rad.ui.swing.ext.JVxToolBarPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JVxToolBarPanel
extends JPanel

The JVxToolBarPanel is a special JPanel extension with a content pane and toolbar areas around it.

See Also:
Serialized Form

Nested Class Summary
static class JVxToolBarPanel.ToolBarArea
          the possible toolbar areas.
 
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
 
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 java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
JVxToolBarPanel()
          Creates a new instance of JVxToolBarPanel.
 
Method Summary
protected  void addImpl(Component pComponent, Object pConstraints, int pIndex)
          
 void addToolBar(JToolBar pToolBar)
          Adds a toolbar to this panel as last component.
 void addToolBar(JToolBar pToolBar, int pIndex)
          Adds a toolbar to this panel at a specified index.
 JVxToolBarPanel.ToolBarArea getArea()
          Gets the current area of the toolbar.
protected  JToolBar getToolBar()
          Gets the internal toolbar.
 JToolBar getToolBar(int pIndex)
          Gets the JToolBar at a specific index.
 int getToolBarCount()
          Gets the number of JToolBars in this panel.
 void remove(Component pComponent)
          
 void remove(int pIndex)
          
 void removeAll()
          
 void removeToolBar(JToolBar pToolBar)
          Removes a toolbar from this panel.
 void setArea(JVxToolBarPanel.ToolBarArea pArea)
          Sets the area in which the toolbars will be added.
 void setBackground(Color pColor)
          
 void setLayout(LayoutManager pLayout)
          
 void setOpaque(boolean pOpaque)
          
 void updateUI()
          
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI
 
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, paint, paintBorder, 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, 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
 

Constructor Detail

JVxToolBarPanel

public JVxToolBarPanel()
Creates a new instance of JVxToolBarPanel.

Method Detail

updateUI

public void updateUI()

Overrides:
updateUI in class JPanel

setBackground

public void setBackground(Color pColor)

Overrides:
setBackground in class JComponent

setLayout

public void setLayout(LayoutManager pLayout)

Overrides:
setLayout in class Container

setOpaque

public void setOpaque(boolean pOpaque)

Overrides:
setOpaque in class JComponent

addImpl

protected void addImpl(Component pComponent,
                       Object pConstraints,
                       int pIndex)

Overrides:
addImpl in class Container

remove

public void remove(Component pComponent)

Overrides:
remove in class Container

remove

public void remove(int pIndex)

Overrides:
remove in class Container

removeAll

public void removeAll()

Overrides:
removeAll in class Container

addToolBar

public void addToolBar(JToolBar pToolBar)
Adds a toolbar to this panel as last component.

Parameters:
pToolBar - the toolbar to be added

addToolBar

public void addToolBar(JToolBar pToolBar,
                       int pIndex)
Adds a toolbar to this panel at a specified index.

Parameters:
pToolBar - the toolbar to be added
pIndex - the index for the toolbar

removeToolBar

public void removeToolBar(JToolBar pToolBar)
Removes a toolbar from this panel.

Parameters:
pToolBar - the toolbar

getToolBarCount

public int getToolBarCount()
Gets the number of JToolBars in this panel.

Returns:
the number of toolbars

getToolBar

public JToolBar getToolBar(int pIndex)
Gets the JToolBar at a specific index.

Parameters:
pIndex - the index
Returns:
the toolbar at pIndex from pArea

setArea

public void setArea(JVxToolBarPanel.ToolBarArea pArea)
Sets the area in which the toolbars will be added.

Parameters:
pArea - the JVxToolBarPanel.ToolBarArea

getArea

public JVxToolBarPanel.ToolBarArea getArea()
Gets the current area of the toolbar.

Returns:
JVxToolBarPanel.ToolBarArea

getToolBar

protected JToolBar getToolBar()
Gets the internal toolbar.

Returns:
the toolbar


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.