org.pushingpixels.flamingo.internal.ui.bcb
Class BasicBreadcrumbBarUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by org.pushingpixels.flamingo.internal.ui.bcb.BreadcrumbBarUI
          extended by org.pushingpixels.flamingo.internal.ui.bcb.BasicBreadcrumbBarUI

public class BasicBreadcrumbBarUI
extends BreadcrumbBarUI

Basic UI for breadcrumb bar (JBreadcrumbBar).


Nested Class Summary
protected  class BasicBreadcrumbBarUI.BreadcrumbBarLayout
          Layout for the breadcrumb bar.
 
Field Summary
protected  JBreadcrumbBar breadcrumbBar
          The associated breadcrumb bar.
protected  java.util.LinkedList<JCommandButton> buttonStack
           
protected  java.awt.event.ComponentListener componentListener
           
protected  JCommandButton dummy
           
protected  javax.swing.JPanel mainPanel
           
protected  java.util.LinkedList modelStack
          Contains the item path.
protected  BreadcrumbPathListener pathListener
           
protected  JScrollablePanel<javax.swing.JPanel> scrollerPanel
           
 
Constructor Summary
BasicBreadcrumbBarUI()
           
 
Method Summary
protected  java.awt.LayoutManager createLayoutManager()
          Invoked by installUI to create a layout manager object to manage the JBreadcrumbBar.
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
protected  void installComponents(JBreadcrumbBar bar)
           
protected  void installDefaults(JBreadcrumbBar bar)
           
protected  void installListeners(JBreadcrumbBar bar)
           
 void installUI(javax.swing.JComponent c)
           
protected  java.lang.Object pushChoice(BreadcrumbItem bi, boolean toUpdateUI)
          Pushes an item to the top position of the stack.
protected  java.lang.Object pushChoices(org.pushingpixels.flamingo.internal.ui.bcb.BreadcrumbItemChoices bic)
          Pushes a choice to the top position of the stack.
protected  java.lang.Object pushChoices(org.pushingpixels.flamingo.internal.ui.bcb.BreadcrumbItemChoices bic, boolean toUpdateUI)
          Pushes a choice to the top position of the stack.
protected  void uninstallComponents(JBreadcrumbBar bar)
           
protected  void uninstallDefaults(JBreadcrumbBar bar)
           
protected  void uninstallListeners(JBreadcrumbBar bar)
           
 void uninstallUI(javax.swing.JComponent c)
           
protected  void updateComponents()
           
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

breadcrumbBar

protected JBreadcrumbBar breadcrumbBar
The associated breadcrumb bar.


mainPanel

protected javax.swing.JPanel mainPanel

scrollerPanel

protected JScrollablePanel<javax.swing.JPanel> scrollerPanel

componentListener

protected java.awt.event.ComponentListener componentListener

dummy

protected JCommandButton dummy

modelStack

protected java.util.LinkedList modelStack
Contains the item path.


buttonStack

protected java.util.LinkedList<JCommandButton> buttonStack

pathListener

protected BreadcrumbPathListener pathListener
Constructor Detail

BasicBreadcrumbBarUI

public BasicBreadcrumbBarUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

installUI

public void installUI(javax.swing.JComponent c)
Overrides:
installUI in class javax.swing.plaf.ComponentUI

uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Overrides:
uninstallUI in class javax.swing.plaf.ComponentUI

installDefaults

protected void installDefaults(JBreadcrumbBar bar)

installComponents

protected void installComponents(JBreadcrumbBar bar)

installListeners

protected void installListeners(JBreadcrumbBar bar)

uninstallDefaults

protected void uninstallDefaults(JBreadcrumbBar bar)

uninstallComponents

protected void uninstallComponents(JBreadcrumbBar bar)

uninstallListeners

protected void uninstallListeners(JBreadcrumbBar bar)

createLayoutManager

protected java.awt.LayoutManager createLayoutManager()
Invoked by installUI to create a layout manager object to manage the JBreadcrumbBar.

Returns:
a layout manager object
See Also:
BasicBreadcrumbBarUI.BreadcrumbBarLayout

updateComponents

protected void updateComponents()

pushChoices

protected java.lang.Object pushChoices(org.pushingpixels.flamingo.internal.ui.bcb.BreadcrumbItemChoices bic)
Pushes a choice to the top position of the stack. If the current top is already a BreadcrumbItemChoices, replace it.

Parameters:
bic - The choice item to push.
Returns:
The item that has been pushed.

pushChoices

protected java.lang.Object pushChoices(org.pushingpixels.flamingo.internal.ui.bcb.BreadcrumbItemChoices bic,
                                       boolean toUpdateUI)
Pushes a choice to the top position of the stack. If the current top is already a BreadcrumbItemChoices, replace it.

Parameters:
bic - The choice item to push.
toUpdateUI - Indication whether the bar should be repainted.
Returns:
The item that has been pushed.

pushChoice

protected java.lang.Object pushChoice(BreadcrumbItem bi,
                                      boolean toUpdateUI)
Pushes an item to the top position of the stack. If the current top is already a BreadcrumbItemChoices, replace it.

Parameters:
bi - The item to push.
toUpdateUI - Indication whether the bar should be repainted.
Returns:
The item that has been pushed.