fdda.dialog.swing
Class ButtonBar

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JToolBar
                          |
                          +--fdda.dialog.swing.ButtonBar
All Implemented Interfaces:
Accessible, EventListener, ImageObserver, MenuContainer, ProjectListener, SelectionListener, Serializable, SwingConstants

public class ButtonBar
extends JToolBar
implements SelectionListener, ProjectListener

The button bar shown for quick access to functions that are used often.

Author:
Jörg Rüdenauer
See Also:
Serialized Form

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.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
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
ButtonBar(MainFrame frame)
          Constructor.
 
Method Summary
 void activeProjectChanged(ProjectEvent e)
          Informs the listener that another project has been activated
 void demoPaused(boolean pause)
          Informs the button bar that the demo was paused or continued
 ToggleButtonGroup getToolsButtonGroup()
          Returns the button group for the tools buttons
 void projectClosed(ProjectEvent e)
          Informs the listener that a project has been closed
 void projectNameChanged(ProjectEvent e)
          Informs the listener that the name of a project has been changed
 void projectOpened(ProjectEvent e)
          Informs the listener that a project has been opened
 void projectStateChanged(ProjectEvent e)
          Informs the listener that a project has changed its state
 void selectionChanged(SelectionEvent e)
          Informs the listener that the selection has changed.
 void setOInspectorButton(boolean status)
          Sets the status of the properties button
 void setSystemFrameButtons(int code)
          Informs the button bar about the type of a system frame
 void toolSelected(int tool, boolean sticky)
          Informs the button bar that another tool was selected
 
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, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, 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

ButtonBar

public ButtonBar(MainFrame frame)
Constructor. Builds the bar.

Parameters:
frame - the main frame
Method Detail

getToolsButtonGroup

public ToggleButtonGroup getToolsButtonGroup()
Returns the button group for the tools buttons

Returns:
the tools buttons group

setSystemFrameButtons

public void setSystemFrameButtons(int code)
Informs the button bar about the type of a system frame

Parameters:
code - the type

setOInspectorButton

public void setOInspectorButton(boolean status)
Sets the status of the properties button


toolSelected

public void toolSelected(int tool,
                         boolean sticky)
Informs the button bar that another tool was selected

Parameters:
tool - the new tool
sticky - whether the selection is sticky

demoPaused

public void demoPaused(boolean pause)
Informs the button bar that the demo was paused or continued

Parameters:
pause - true, iff it was paused

selectionChanged

public void selectionChanged(SelectionEvent e)
Description copied from interface: SelectionListener
Informs the listener that the selection has changed.

Specified by:
selectionChanged in interface SelectionListener
Parameters:
e - the event

projectOpened

public void projectOpened(ProjectEvent e)
Description copied from interface: ProjectListener
Informs the listener that a project has been opened

Specified by:
projectOpened in interface ProjectListener
Parameters:
e - the event

projectClosed

public void projectClosed(ProjectEvent e)
Description copied from interface: ProjectListener
Informs the listener that a project has been closed

Specified by:
projectClosed in interface ProjectListener
Parameters:
e - the event

activeProjectChanged

public void activeProjectChanged(ProjectEvent e)
Description copied from interface: ProjectListener
Informs the listener that another project has been activated

Specified by:
activeProjectChanged in interface ProjectListener
Parameters:
e - the event

projectStateChanged

public void projectStateChanged(ProjectEvent e)
Description copied from interface: ProjectListener
Informs the listener that a project has changed its state

Specified by:
projectStateChanged in interface ProjectListener
Parameters:
e - the event

projectNameChanged

public void projectNameChanged(ProjectEvent e)
Description copied from interface: ProjectListener
Informs the listener that the name of a project has been changed

Specified by:
projectNameChanged in interface ProjectListener
Parameters:
e - the event


API documentation for FDDA version 0.9. Generated on 17/02/2004 14:12.