Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.javatools.ui.breadcrumbs
Class PopupHandler

java.lang.Object
  extended by 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


Field Summary
protected static java.lang.String KEY_POPUP_ITEM
           

 

Constructor Summary
PopupHandler()
           

 

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

 

Field Detail

KEY_POPUP_ITEM

protected static final java.lang.String KEY_POPUP_ITEM
See Also:
Constant Field Values

Constructor Detail

PopupHandler

public PopupHandler()

Method Detail

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

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


Copyright © 1997, 2012, Oracle. All rights reserved.