Skip navigation links
oracle.ide.model
Class DiscoveredDependable.DefaultDiscoveredDependable
java.lang.Object
oracle.ide.model.DiscoveredDependable
oracle.ide.model.DiscoveredDependable.DefaultDiscoveredDependable
- All Implemented Interfaces:
- Displayable
- Enclosing class:
- DiscoveredDependable
-
public static class DiscoveredDependable.DefaultDiscoveredDependable
- extends DiscoveredDependable
Method Summary |
Dependable |
getDependable()
The Dependable object. |
Element |
getElement()
The element to which Dependable points. |
javax.swing.Icon |
getIcon()
Returns an Icon that can be shown in association with this Displayable . |
java.lang.String |
getLongLabel()
Returns a long label that can be displayed to the user. |
java.lang.String |
getShortLabel()
Returns a short label that can be displayed to the user. |
java.lang.String |
getToolTipText()
Returns the tool tip text to show when the mouse pointer pauses over a UI component that represents this Displayable . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiscoveredDependable.DefaultDiscoveredDependable
public DiscoveredDependable.DefaultDiscoveredDependable(Element element,
Dependable dependable)
DiscoveredDependable.DefaultDiscoveredDependable
public DiscoveredDependable.DefaultDiscoveredDependable(Element element,
Dependable dependable,
javax.swing.Icon icon,
java.lang.String shortLabel,
java.lang.String longLabel,
java.lang.String tooltip)
getElement
public Element getElement()
- Description copied from class:
DiscoveredDependable
- The element to which Dependable points.
-
- Specified by:
getElement
in class DiscoveredDependable
-
- Returns:
- an Element.
getDependable
public Dependable getDependable()
- Description copied from class:
DiscoveredDependable
- The Dependable object.
-
- Specified by:
getDependable
in class DiscoveredDependable
-
- Returns:
- Dependable, or null if this node does not represent a Dependable end-point.
getShortLabel
public java.lang.String getShortLabel()
- Description copied from interface:
Displayable
- Returns a short label that can be displayed to the user. Generally, the value of the returned
String
is considered translatable and should therefore be placed in an appropriate resource file. When possible, the returned label should be reasonably short enough to show in the navigator or explorer windows but long enough to clearly identify and distinguish the Displayable
.
-
- Returns:
- a short descriptive label of the
Displayable
that can be shown to the user.
getLongLabel
public java.lang.String getLongLabel()
- Description copied from interface:
Displayable
- Returns a long label that can be displayed to the user. Generally, the value of the returned
String
is considered translatable and should therefore be placed in an appropriate resource file. The long label differs from the short label essentially on length. Usually the long label will only be shown on-demand and in places where horizontal space is more available. Examples are the status bar and tooltips.
-
- Returns:
- a long descriptive label of the
Displayable
that can be shown to the user.
getIcon
public javax.swing.Icon getIcon()
- Description copied from interface:
Displayable
- Returns an
Icon
that can be shown in association with this Displayable
. Typically the icon will be used in a tree control or list control. Therefore the icon must fit naturally within the space normally given to items within those controls. Such icons are usually 16x16 in size or, if there is a one-pixel transparent padding around the edge, 18x18 in size. It is strongly recommended that icons returned by this method be either 16x16 or 18x18 in size. If null
is returned, the control may show a default icon, or it may show no icon, whichever is appropriate.
-
- Returns:
- the
Icon
to be displayed for the Displayable
.
getToolTipText
public java.lang.String getToolTipText()
- Description copied from interface:
Displayable
- Returns the tool tip text to show when the mouse pointer pauses over a UI component that represents this
Displayable
. In many cases it may be appropriate for this method to return the same value as Displayable.getLongLabel()
.
-
- Returns:
- the tooltip to show when the mouse pointer pauses over a UI component that represents this
Displayable
.
Skip navigation links
Copyright © 1997, 2012, Oracle. All rights reserved.