|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
org.pushingpixels.flamingo.api.bcb.JBreadcrumbBar<T>
T
- Type of data associated with each breadcrumb bar item.public class JBreadcrumbBar<T>
Breadcrumb bar. It is basically a way of lazily navigating around a tree, but just by manipulating the sections of a path.
Nested Class Summary | |
---|---|
static interface |
JBreadcrumbBar.BreadcrumbBarElement
Base interface for elements in breadcrumb bar. |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected BreadcrumbBarCallBack<T> |
callback
Application callback. |
protected List<BreadcrumbBarExceptionHandler> |
exceptionHandlers
List of registered exception handlers. |
protected BreadcrumbBarModel<T> |
model
The breadcrumb bar model. |
static String |
uiClassID
The UI class ID string. |
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 java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JBreadcrumbBar(BreadcrumbBarCallBack<T> callback)
Creates a new breadcrumb bar. |
Method Summary | |
---|---|
void |
addExceptionHandler(BreadcrumbBarExceptionHandler handler)
Registers the specified exception handler. |
BreadcrumbBarCallBack<T> |
getCallback()
Returns the application callback. |
List<BreadcrumbBarExceptionHandler> |
getExceptionHandlers()
Returns the list of currently registered exception handlers. |
BreadcrumbBarModel<T> |
getModel()
Returns the model of this breadcrumb bar. |
BreadcrumbBarUI |
getUI()
Returns the UI object which implements the L&F for this component. |
String |
getUIClassID()
Returns the name of the UI class that implements the L&F for this component. |
void |
removeExceptionHandler(BreadcrumbBarExceptionHandler handler)
Unregisters the specified exception handler. |
void |
setPath(List<BreadcrumbItem<T>> newPath)
Sets new path as the current path in this breadcrumb bar. |
void |
setThrowsExceptions(boolean throwsExceptions)
Sets the indication whether the operations of this breadcrumb bar will throw BreadcrumbBarException . |
void |
setUI(BreadcrumbBarUI ui)
Sets the new UI delegate. |
void |
updateUI()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected BreadcrumbBarModel<T> model
protected BreadcrumbBarCallBack<T> callback
protected List<BreadcrumbBarExceptionHandler> exceptionHandlers
public static final String uiClassID
Constructor Detail |
---|
public JBreadcrumbBar(BreadcrumbBarCallBack<T> callback)
callback
- The application callback.Method Detail |
---|
public void setPath(List<BreadcrumbItem<T>> newPath)
this
breadcrumb bar.
newPath
- New path for this
breadcrumb bar.public BreadcrumbBarCallBack<T> getCallback()
public void setUI(BreadcrumbBarUI ui)
ui
- New UI delegate.public void updateUI()
updateUI
in class JComponent
public BreadcrumbBarUI getUI()
BreadcrumbBarUI
objectsetUI(org.pushingpixels.flamingo.internal.ui.bcb.BreadcrumbBarUI)
public String getUIClassID()
getUIClassID
in class JComponent
JComponent.getUIClassID()
,
UIDefaults.getUI(javax.swing.JComponent)
public void addExceptionHandler(BreadcrumbBarExceptionHandler handler)
handler
- Exception handler.public void removeExceptionHandler(BreadcrumbBarExceptionHandler handler)
handler
- Exception handler.public List<BreadcrumbBarExceptionHandler> getExceptionHandlers()
public void setThrowsExceptions(boolean throwsExceptions)
BreadcrumbBarException
.
throwsExceptions
- If true
, the operations of this breadcrumb bar
will throw BreadcrumbBarException
.public BreadcrumbBarModel<T> getModel()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |