com.imagero.gui.flowin
Class ButtonPanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended bycom.imagero.gui.flowin.TabContainer
                  extended bycom.imagero.gui.flowin.ButtonPanel
All Implemented Interfaces:
ContentPane, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, SortableContainer
Direct Known Subclasses:
FoldableButtonPanel, IconifyBar, TaskBar

public class ButtonPanel
extends TabContainer

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.imagero.gui.flowin.TabContainer
TabContainer.Tab
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
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
 
Field Summary
 
Fields inherited from class com.imagero.gui.flowin.TabContainer
ADDED_TAB_PROPERTY, comparator, COMPARATOR_PROPERTY, DEFAULT_MOUSE_HANDLER, DEFAULT_TEXT_COMPARATOR, ENUM_COMPARATOR, FANCY_MOUSE_HANDLER, HOVER_MOUSE_HANDLER, INVERTED_TEXT_COMPARATOR, layout, MOUSE_HANDLER_TYPE_PROPERTY, NULL_COMPARATOR, REMOVE_COMMAND, REMOVED_TAB_PROPERTY, rollover, ROLLOVER_PROPERTY, SELECTED_TAB_PROPERTY, SHOW_COMMAND, SORT_STRING_PROPERTY, STRING_COMPARATOR, USER_COMPARATOR
 
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.imagero.gui.flowin.ContentPane
GOT_FOCUS
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ButtonPanel()
          create new horizontal ButtonPanel
ButtonPanel(boolean horizontal)
          create new ButtonPanel
 
Method Summary
 javax.swing.AbstractButton add(javax.swing.Action a)
          add Action (JButton or SToggleButton created)
 javax.swing.AbstractButton add(javax.swing.Action action, java.lang.Object constraints)
          add Action (JButton or SToggleButton created)
protected  RainLayout createLayout(boolean horizontal)
          create LayoutManager
 java.lang.String getUIClassID()
          Returns the UIDefaults key used to look up the name of the swing.plaf.ComponentUI class that defines the look and feel for this component.
 boolean installTabBorder()
           
 boolean isHorizontal()
           
protected  boolean rotateBorders()
           
 void setHorizontal(boolean horizontal)
           
 void setLayout(java.awt.LayoutManager mgr)
          Sets the layout manager for this container.
 void setUI(ButtonPanelUI ui)
           
 void updateUI()
          Resets the UI property to a value from the current look and feel.
 
Methods inherited from class com.imagero.gui.flowin.TabContainer
addImpl, addTab, addTab, back, createTab, doLayout, enumerateTabs, forward, getAlpha, getAxis, getComparator, getComparatorType, getComponentsOrdered, getContainer, getLastFocusOwner, getMouseHandler, getMouseHandlerType, getPopupMenu, getRowCount, getSelectedMouseHandler, getSelectedTab, getSortString, getTabFor, getTabs, getToolTipType, getUI, isClockwise, isReversedComponentOrder, isReversedRowOrder, isRollover, isShowToolTips, isUseAlpha, main, moveTab, removeTab, removeTab, selectNextTab, selectPreviousTab, setAlpha, setAxis, setClockwise, setComparator, setComparator, setLastFocusOwner, setMouseHandlerType, setPopupMenu, setReversedComponentOrder, setReversedRowOrder, setRollover, setSelectedMouseHandler, setSelectedTab, setShowToolTips, setSortString, setToolTipType, setUI, setUseAlpha
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, 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, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, list, list, paintComponents, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, 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, getSize, getToolkit, getTreeLock, hasFocus, imageUpdate, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, list, list, list, paintAll, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ButtonPanel

public ButtonPanel()
create new horizontal ButtonPanel


ButtonPanel

public ButtonPanel(boolean horizontal)
create new ButtonPanel

Parameters:
horizontal - orientation
Method Detail

add

public javax.swing.AbstractButton add(javax.swing.Action a)
add Action (JButton or SToggleButton created)

Specified by:
add in interface ContentPane
Overrides:
add in class TabContainer
Parameters:
a - Action
See Also:
SToggleButton

add

public javax.swing.AbstractButton add(javax.swing.Action action,
                                      java.lang.Object constraints)
add Action (JButton or SToggleButton created)

Parameters:
action - if action is instance of SelectableAction then SToggleButton is created, otherwise JButton is created;
constraints - Object which will be used as constraints for adding button to ButtonPanel

createLayout

protected RainLayout createLayout(boolean horizontal)
create LayoutManager

Parameters:
horizontal -
Returns:
RainLayout

getUIClassID

public java.lang.String getUIClassID()
Description copied from class: javax.swing.JComponent
Returns the UIDefaults key used to look up the name of the swing.plaf.ComponentUI class that defines the look and feel for this component. Most applications will never need to call this method. Subclasses of JComponent that support pluggable look and feel should override this method to return a UIDefaults key that maps to the ComponentUI subclass that defines their look and feel.

Overrides:
getUIClassID in class TabContainer

installTabBorder

public boolean installTabBorder()
Overrides:
installTabBorder in class TabContainer

isHorizontal

public boolean isHorizontal()
Returns:
true if ButtonPanel has horizontal orientation

rotateBorders

protected boolean rotateBorders()
Overrides:
rotateBorders in class TabContainer

setHorizontal

public void setHorizontal(boolean horizontal)
Specified by:
setHorizontal in interface ContentPane
Overrides:
setHorizontal in class TabContainer

setLayout

public void setLayout(java.awt.LayoutManager mgr)
Description copied from class: java.awt.Container
Sets the layout manager for this container.

Overrides:
setLayout in class TabContainer

setUI

public void setUI(ButtonPanelUI ui)

updateUI

public void updateUI()
Description copied from class: javax.swing.JComponent
Resets the UI property to a value from the current look and feel. JComponent subclasses must override this method like this:
   public void updateUI() {
      setUI((SliderUI)UIManager.getUI(this);
   }
  

Overrides:
updateUI in class TabContainer