Class BasicBreadcrumbBarUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- org.pushingpixels.flamingo.internal.ui.bcb.BreadcrumbBarUI
-
- org.pushingpixels.flamingo.internal.ui.bcb.BasicBreadcrumbBarUI
-
public class BasicBreadcrumbBarUI extends BreadcrumbBarUI
Basic UI for breadcrumb bar (JBreadcrumbBar).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classBasicBreadcrumbBarUI.BreadcrumbBarLayoutLayout for the breadcrumb bar.
-
Field Summary
Fields Modifier and Type Field Description protected JBreadcrumbBarbreadcrumbBarThe associated breadcrumb bar.protected LinkedList<JCommandButton>buttonStackprotected ComponentListenercomponentListenerprotected JCommandButtondummyprotected JPanelmainPanelprotected LinkedListmodelStackContains the item path.protected BreadcrumbPathListenerpathListenerprotected JScrollablePanel<JPanel>scrollerPanel
-
Constructor Summary
Constructors Constructor Description BasicBreadcrumbBarUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LayoutManagercreateLayoutManager()Invoked byinstallUIto create a layout manager object to manage theJBreadcrumbBar.static ComponentUIcreateUI(JComponent c)protected voidinstallComponents(JBreadcrumbBar bar)protected voidinstallDefaults(JBreadcrumbBar bar)protected voidinstallListeners(JBreadcrumbBar bar)voidinstallUI(JComponent c)protected ObjectpushChoice(BreadcrumbItem bi, boolean toUpdateUI)Pushes an item to the top position of the stack.protected ObjectpushChoices(org.pushingpixels.flamingo.internal.ui.bcb.BreadcrumbItemChoices bic)Pushes a choice to the top position of the stack.protected ObjectpushChoices(org.pushingpixels.flamingo.internal.ui.bcb.BreadcrumbItemChoices bic, boolean toUpdateUI)Pushes a choice to the top position of the stack.protected voiduninstallComponents(JBreadcrumbBar bar)protected voiduninstallDefaults(JBreadcrumbBar bar)protected voiduninstallListeners(JBreadcrumbBar bar)voiduninstallUI(JComponent c)protected voidupdateComponents()-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
-
-
-
-
Field Detail
-
breadcrumbBar
protected JBreadcrumbBar breadcrumbBar
The associated breadcrumb bar.
-
mainPanel
protected JPanel mainPanel
-
scrollerPanel
protected JScrollablePanel<JPanel> scrollerPanel
-
componentListener
protected ComponentListener componentListener
-
dummy
protected JCommandButton dummy
-
modelStack
protected LinkedList modelStack
Contains the item path.
-
buttonStack
protected LinkedList<JCommandButton> buttonStack
-
pathListener
protected BreadcrumbPathListener pathListener
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
-
installUI
public void installUI(JComponent c)
- Overrides:
installUIin classComponentUI
-
uninstallUI
public void uninstallUI(JComponent c)
- Overrides:
uninstallUIin classComponentUI
-
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 LayoutManager createLayoutManager()
Invoked byinstallUIto create a layout manager object to manage theJBreadcrumbBar.- Returns:
- a layout manager object
- See Also:
BasicBreadcrumbBarUI.BreadcrumbBarLayout
-
updateComponents
protected void updateComponents()
-
pushChoices
protected 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 aBreadcrumbItemChoices, replace it.- Parameters:
bic- The choice item to push.- Returns:
- The item that has been pushed.
-
pushChoices
protected 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 aBreadcrumbItemChoices, 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 Object pushChoice(BreadcrumbItem bi, boolean toUpdateUI)
Pushes an item to the top position of the stack. If the current top is already aBreadcrumbItemChoices, replace it.- Parameters:
bi- The item to push.toUpdateUI- Indication whether the bar should be repainted.- Returns:
- The item that has been pushed.
-
-