java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Panel
com.flexstor.common.awt.toolbar.ToolBar
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.awt.event.ActionListener, java.awt.event.ContainerListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.util.Observer, java.io.Serializable
- public class ToolBar
- extends java.awt.Panel
- implements java.util.Observer, java.awt.event.ActionListener, java.awt.event.ContainerListener
| Nested classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Fields inherited from class java.awt.Panel |
|
| Fields inherited from class java.awt.Container |
|
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusDownCycle, update, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle |
actionMulticaster
protected com.flexstor.common.awt.ActionMulticaster actionMulticaster
controller
protected com.flexstor.common.awt.ActionCheckerI controller
BUTTON_WIDTH
private static final int BUTTON_WIDTH
- See Also:
- Constant Field Values
CHOICE_WIDTH
private static final int CHOICE_WIDTH
- See Also:
- Constant Field Values
LABEL_WIDTH
private static final int LABEL_WIDTH
- See Also:
- Constant Field Values
CB_WIDTH
private static final int CB_WIDTH
- See Also:
- Constant Field Values
DEFAULT_WIDTH
private static final int DEFAULT_WIDTH
- See Also:
- Constant Field Values
SPACE_WIDTH
private static final int SPACE_WIDTH
- See Also:
- Constant Field Values
ToolBar
public ToolBar()
dispose
public void dispose()
setController
protected void setController(com.flexstor.common.awt.ActionCheckerI c)
- If enable/disable is not triggered by an observer pattern,
which sets the controller to the observable,
this method allows to set the controler explicitly.
update
public void update(java.util.Observable c,
java.lang.Object notifyCommand)
- Responds to a controller notification to update the
enabled state of each toolbar button
- Specified by:
update in interface java.util.Observer
setEnabled
public void setEnabled(boolean bEnabled)
- Enables or disables all IActionComponents on this toolbar in correspondance
to the return values of the ActionCheckerI.
setEnabled
public void setEnabled(com.flexstor.common.awt.ActionCheckerI ac,
boolean bEnabled)
- Enables or disables all IActionComponents on this toolbar in correspondance
to the return values of the ActionCheckerI.
componentAdded
public void componentAdded(java.awt.event.ContainerEvent e)
- Track component additions and add itself as a listener.
- Specified by:
componentAdded in interface java.awt.event.ContainerListener
componentRemoved
public void componentRemoved(java.awt.event.ContainerEvent e)
- Track component removals and unregister as a listener.
- Specified by:
componentRemoved in interface java.awt.event.ContainerListener
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Fire action events.
- Specified by:
actionPerformed in interface java.awt.event.ActionListener
addActionListener
public void addActionListener(java.awt.event.ActionListener l)
- Add ActionListeners.
removeActionListener
public void removeActionListener(java.awt.event.ActionListener l)
- Remove ActionListeners.
paint
public void paint(java.awt.Graphics g)
- Description copied from class:
java.awt.Container
- Paints this container. The implementation of this method in this
class forwards to any lightweight components in this container. If
this method is subclassed, this method should still be invoked as
a superclass method so that lightweight components are properly
drawn.
doLayout
public void doLayout()
- Description copied from class:
java.awt.Container
- Layout the components in this container.
getPreferredSize
public java.awt.Dimension getPreferredSize()
- Description copied from class:
java.awt.Container
- Returns the preferred size of this container.
getMinimumSize
public java.awt.Dimension getMinimumSize()
- Description copied from class:
java.awt.Container
- Returns the minimum size of this container.