Skip navigation links
oracle.javatools.ui.breadcrumbs
Class PopupHandler
java.lang.Object
oracle.javatools.ui.breadcrumbs.PopupHandler
-
public class PopupHandler
- extends java.lang.Object
Enables the breadcrumb separators in a JBreadcrumbs component to optionally popup a menu of items when clicked. A menu item can be clicked and an action performed. The items in the menu are of type PopupHandler.PopupItem The menu items and their actions are determined by a passed in PopupProvider
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY_POPUP_ITEM
protected static final java.lang.String KEY_POPUP_ITEM
-
- See Also:
- Constant Field Values
PopupHandler
public PopupHandler()
attach
public void attach(JBreadcrumbs breadcrumbs,
PopupProvider provider)
- Attach the provider to the JBreadcrumbs and enable popups on aeprsators whose Breadcrumb.hasChildren() returns true
-
- Parameters:
breadcrumbs
- the breadcrumbs to attach to
provider
- the separator popup menu provider
detatch
public void detatch()
- Remove this handler from the JBreadcrumbs to which it was previously attached and perform any other additional cleanup
separatorClicked
protected void separatorClicked(Breadcrumb crumb,
java.awt.Rectangle separatorBounds)
getPopupItems
protected java.util.List<PopupItem> getPopupItems(Breadcrumb breadcrumb)
Skip navigation links
Copyright © 1997, 2012, Oracle. All rights reserved.