|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
javax.ide.view.DefaultViewable
public class DefaultViewable
DefaultViewables are objects that map directly to visible GUI elements that users can select such as a menu items, nodes in the project explorer, etc..
| Field Summary |
|---|
| Fields inherited from interface javax.ide.view.Viewable |
|---|
PROP_ICON_PATH, PROP_LABEL, PROP_VISIBLE |
| Constructor Summary | |
|---|---|
DefaultViewable() |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)Add a PropertyChangeListener to the listener list. |
protected void |
firePropertyChange(java.lang.String name, java.lang.Object oldVal, java.lang.Object newVal)Fire the property change event. |
IconDescription |
getIcon()Gets a relative path to the icon. |
java.lang.String |
getLabel()Get a short descriptive label that can be shown to the user. |
java.lang.String |
getToolTip()Returns the tool tip text to show when the mouse pointer pauses over a UI component that represents this Viewable. |
boolean |
isVisible()Get the object visible state. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)Removes a PropertyChangeListener from the listener list. |
void |
setVisible(boolean visible) |
java.lang.String |
toString()Returns the label. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultViewable()
| Method Detail |
|---|
public java.lang.String getLabel()
getLabel in interface Viewablepublic java.lang.String getToolTip()
ViewableViewable.getToolTip in interface ViewableViewable.public IconDescription getIcon()
ViewablegetIcon in interface Viewablepublic boolean isVisible()
ViewableisVisible in interface Viewablepublic void setVisible(boolean visible)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
ViewablePropertyChangeListener to the listener list. A PropertyChangeEvent will be fired in response to setting a bound property.addPropertyChangeListener in interface Viewablelistener - A PropertyChangeListener.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
ViewablePropertyChangeListener from the listener list.removePropertyChangeListener in interface Viewablelistener - A PropertyChangeListener.public java.lang.String toString()
ViewabletoString method in java.lang.Object.
Implementors of the Viewable interface should override this as appropriate. The default implementation is the same as getLabel()
toString in interface ViewabletoString in class java.lang.ObjectViewable.Object.toString(), Viewable.getLabel()
protected void firePropertyChange(java.lang.String name,
java.lang.Object oldVal,
java.lang.Object newVal)
name only if the oldVal is different from the newVal.name - The property name.oldVal - The current value of the specified property.newVal - The new value of the specified property.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||