|
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
DefaultViewable
s 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 Viewable
public java.lang.String getToolTip()
Viewable
Viewable
.getToolTip
in interface Viewable
Viewable
.public IconDescription getIcon()
Viewable
getIcon
in interface Viewable
public boolean isVisible()
Viewable
isVisible
in interface Viewable
public void setVisible(boolean visible)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Viewable
PropertyChangeListener
to the listener list. A PropertyChangeEvent
will be fired in response to setting a bound property.addPropertyChangeListener
in interface Viewable
listener
- A PropertyChangeListener
.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Viewable
PropertyChangeListener
from the listener list.removePropertyChangeListener
in interface Viewable
listener
- A PropertyChangeListener
.public java.lang.String toString()
Viewable
toString
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 Viewable
toString
in class java.lang.Object
Viewable
.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 |