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 classLayout for the breadcrumb bar. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AtomicIntegerprivate JBreadcrumbBar<Object> The associated breadcrumb bar.private LinkedList<JCommandButton> private JIndeterminateCircularProgressprivate LinkedList<Command> private ComponentListenerprivate booleanprivate Timerprivate JPanelprivate LinkedList<Object> Contains the item path.private SwingWorker<Void, Object> private BreadcrumbPathListener<Object> private intprivate JScrollablePanel<JPanel> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidconfigureMainAction(Command command, BreadcrumbItem<Object> bi) private voidconfigurePopupAction(Command command, BreadcrumbItemChoices<Object> bic) private voidconfigurePopupRollover(JCommandButton button) protected LayoutManagerInvoked byinstallUIto create a layout manager object to manage theJBreadcrumbBar.private voidinitAndRunPathChangeWorker(int indexOfFirstChange) protected voidinstallComponents(JBreadcrumbBar<?> bar) protected voidinstallDefaults(JBreadcrumbBar<?> bar) protected voidinstallListeners(JBreadcrumbBar<?> bar) voidprotected ObjectPushes an item to the top position of the stack.private ObjectPushes a choice to the top position of the stack.private ObjectpushChoices(BreadcrumbItemChoices<Object> bic, boolean toUpdateUI) Pushes a choice to the top position of the stack.private voidprivate voidprotected voiduninstallComponents(JBreadcrumbBar<?> bar) protected voiduninstallDefaults(JBreadcrumbBar<?> bar) protected voiduninstallListeners(JBreadcrumbBar<?> bar) voidprotected voidMethods inherited from class 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:
installUIin classComponentUI
-
uninstallUI
- Overrides:
uninstallUIin classComponentUI
-
installDefaults
-
installComponents
-
installListeners
-
initAndRunPathChangeWorker
private void initAndRunPathChangeWorker(int indexOfFirstChange) -
uninstallDefaults
-
uninstallComponents
-
uninstallListeners
-
startLoadingTimer
private void startLoadingTimer() -
stopLoadingTimer
private void stopLoadingTimer() -
createLayoutManager
Invoked byinstallUIto 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.
-