PROP_ICON_PATH, PROP_LABEL, PROP_VISIBLE| Constructor and Description |
|---|
DefaultViewable() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public java.lang.String getLabel()
public java.lang.String getToolTip()
ViewableViewable.getToolTip in interface ViewableViewable.public IconDescription getIcon()
Viewablepublic boolean isVisible()
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.