public class PopupHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
KEY_POPUP_ITEM |
Constructor and Description |
---|
PopupHandler() |
Modifier and Type | Method and Description |
---|---|
void |
attach(JBreadcrumbs breadcrumbs, PopupProvider provider)
Attach the provider to the JBreadcrumbs and enable popups on aeprsators whose Breadcrumb.hasChildren() returns true
|
void |
detatch()
Remove this handler from the JBreadcrumbs to which it was previously attached and perform any other additional cleanup
|
protected java.util.List<PopupItem> |
getPopupItems(Breadcrumb breadcrumb) |
protected void |
separatorClicked(Breadcrumb crumb, java.awt.Rectangle separatorBounds) |
protected static final java.lang.String KEY_POPUP_ITEM
public void attach(JBreadcrumbs breadcrumbs, PopupProvider provider)
breadcrumbs
- the breadcrumbs to attach toprovider
- the separator popup menu providerpublic void detatch()
protected void separatorClicked(Breadcrumb crumb, java.awt.Rectangle separatorBounds)
protected java.util.List<PopupItem> getPopupItems(Breadcrumb breadcrumb)