Extension SDK 10.1.2

oracle.ide.model
Class DefaultDisplayable

java.lang.Object
  extended byoracle.ide.model.DefaultDisplayable
All Implemented Interfaces:
Displayable
Direct Known Subclasses:
DefaultElement

public class DefaultDisplayable
extends java.lang.Object
implements Displayable

Default implementation of the Displayable interface.


Constructor Summary
DefaultDisplayable()
           
 
Method Summary
 javax.swing.Icon getIcon()
          This implementation returns a plain document icon.
 java.lang.String getLongLabel()
          This implementation delegates to getShortLabel().
 java.lang.String getShortLabel()
          This implementation returns a place-holder String.
 java.lang.String getToolTipText()
          This implementation delegates to getLongLabel().
 java.lang.String toString()
          This implementation delegates to getShortLabel().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultDisplayable

public DefaultDisplayable()
Method Detail

getShortLabel

public java.lang.String getShortLabel()
This implementation returns a place-holder String.

Specified by:
getShortLabel in interface Displayable
Returns:
a short descriptive label of the Displayable that can be shown to the user.
See Also:
Displayable.getShortLabel()

getLongLabel

public java.lang.String getLongLabel()
This implementation delegates to getShortLabel().

Specified by:
getLongLabel in interface Displayable
Returns:
a long descriptive label of the Displayable that can be shown to the user.
See Also:
Displayable.getLongLabel()

getIcon

public javax.swing.Icon getIcon()
This implementation returns a plain document icon.

Specified by:
getIcon in interface Displayable
Returns:
the Icon to be displayed for the Displayable.
See Also:
Displayable.getIcon()

getToolTipText

public java.lang.String getToolTipText()
This implementation delegates to getLongLabel().

Specified by:
getToolTipText in interface Displayable
Returns:
the tooltip to show when the mouse pointer pauses over a UI component that represents this Displayable.
See Also:
Displayable.getToolTipText()

toString

public java.lang.String toString()
This implementation delegates to getShortLabel().

Specified by:
toString in interface Displayable
See Also:
Displayable.toString()

Extension SDK

 

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