Class BasicBreadcrumbBarUI
java.lang.Object
javax.swing.plaf.ComponentUI
org.pushingpixels.radiance.component.internal.ui.bcb.BreadcrumbBarUI
org.pushingpixels.radiance.component.internal.ui.bcb.BasicBreadcrumbBarUI
- Direct Known Subclasses:
RadianceBreadcrumbBarUI
Basic UI for breadcrumb bar (
JBreadcrumbBar
).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
Layout for the breadcrumb bar. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AtomicInteger
private JBreadcrumbBar
<Object> The associated breadcrumb bar.private LinkedList
<JCommandButton> private JIndeterminateCircularProgress
private LinkedList
<Command> private ComponentListener
private boolean
private Timer
private JPanel
private LinkedList
<Object> Contains the item path.private SwingWorker
<Void, Object> private BreadcrumbPathListener
<Object> private int
private JScrollablePanel
<JPanel> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
configureMainAction
(Command command, BreadcrumbItem<Object> bi) private void
configurePopupAction
(Command command, BreadcrumbItemChoices<Object> bic) private void
configurePopupRollover
(JCommandButton button) protected LayoutManager
Invoked byinstallUI
to create a layout manager object to manage theJBreadcrumbBar
.private void
initAndRunPathChangeWorker
(int indexOfFirstChange) protected void
installComponents
(JBreadcrumbBar<?> bar) protected void
installDefaults
(JBreadcrumbBar<?> bar) protected void
installListeners
(JBreadcrumbBar<?> bar) void
protected Object
Pushes an item to the top position of the stack.protected Object
Pushes a choice to the top position of the stack.protected Object
pushChoices
(BreadcrumbItemChoices<Object> bic, boolean toUpdateUI) Pushes a choice to the top position of the stack.private void
private void
protected void
uninstallComponents
(JBreadcrumbBar<?> bar) protected void
uninstallDefaults
(JBreadcrumbBar<?> bar) protected void
uninstallListeners
(JBreadcrumbBar<?> bar) void
protected void
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
-
Field Details
-
breadcrumbBar
The associated breadcrumb bar. -
circularProgress
-
mainPanel
-
scrollerPanel
-
componentListener
-
modelStack
Contains the item path. -
buttonStack
-
commandStack
-
pathListener
-
atomicCounter
-
loadingTimer
-
isShowingProgress
private boolean isShowingProgress -
pathChangeWorker
-
preferredHeight
private int preferredHeight
-
-
Constructor Details
-
BasicBreadcrumbBarUI
public BasicBreadcrumbBarUI()
-
-
Method Details
-
installUI
- Overrides:
installUI
in classComponentUI
-
uninstallUI
- Overrides:
uninstallUI
in classComponentUI
-
installDefaults
-
installComponents
-
installListeners
-
initAndRunPathChangeWorker
private void initAndRunPathChangeWorker(int indexOfFirstChange) -
uninstallDefaults
-
uninstallComponents
-
uninstallListeners
-
startLoadingTimer
private void startLoadingTimer() -
stopLoadingTimer
private void stopLoadingTimer() -
createLayoutManager
Invoked byinstallUI
to create a layout manager object to manage theJBreadcrumbBar
.- Returns:
- a layout manager object
- See Also:
-
updateComponents
protected void updateComponents() -
configureMainAction
-
configurePopupAction
-
configurePopupRollover
-
configureBreadcrumbButton
-
pushChoices
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
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
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.- Returns:
- The item that has been pushed.
-