Skip navigation links
oracle.javatools.ui.breadcrumbs
Class PopupItem
java.lang.Object
oracle.javatools.ui.breadcrumbs.PopupItem
- All Implemented Interfaces:
- java.lang.Comparable<PopupItem>
- Direct Known Subclasses:
- WebAppPopupItem
-
public class PopupItem
- extends java.lang.Object
- implements java.lang.Comparable<PopupItem>
A class to represent the items appearing in the separator popup menu. By default clicking on a menu item navigates to the offset stored by PopupItem
Field Summary |
protected javax.swing.Icon |
icon
|
protected java.lang.String |
name
|
protected int |
offset
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected java.lang.String name
offset
protected int offset
icon
protected javax.swing.Icon icon
PopupItem
public PopupItem()
getName
public java.lang.String getName()
-
- Returns:
- the display name for this menu item
name
public PopupItem name(java.lang.String name)
offset
public PopupItem offset(int offset)
getOffset
public int getOffset()
-
- Returns:
- the offset to navigate the editor to when the menu item is clicked
compareTo
public int compareTo(PopupItem o)
-
- Specified by:
compareTo
in interface java.lang.Comparable<PopupItem>
icon
public PopupItem icon(javax.swing.Icon icon)
getIcon
public javax.swing.Icon getIcon()
Skip navigation links
Copyright © 1997, 2011, Oracle. All rights reserved.