public abstract class ALcyActiveSettable extends Object implements ILcyActiveSettable
ILcyActiveSettable
for convenience.DEFAULT, LONG_DESCRIPTION, NAME, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, SMALL_SELECTED_ICON, VISIBLE
Constructor and Description |
---|
ALcyActiveSettable()
Creates a new
ALcyActiveSettable . |
ALcyActiveSettable(String aName)
Creates a new
ALcyActiveSettable with the given name. |
ALcyActiveSettable(String aName,
ILcdIcon aIcon)
Creates a new
ALcyActiveSettable with the given name and the given icon. |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener aPropertyChangeListener)
Registers the given
PropertyChangeListener to be notified when this object's
properties change. |
void |
firePropertyChange(String aPropertyName,
Object aOldValue,
Object aNewValue) |
String |
getDisplayName()
Deprecated.
use
getName() instead, which is already a display name. |
ILcdIcon |
getIcon()
Returns the icon of this active settable.
|
String |
getLongDescription()
Returns the long description of this active settable.
|
String |
getName()
Returns the name of this active settable.
|
String |
getShortDescription()
Returns the short description of this active settable.
|
Object |
getValue(String aKey)
Gets a value given its key.
|
boolean |
isEnabled()
Returns true if this object is enabled, false otherwise.
|
void |
putValue(String aKey,
Object aValue)
Associates a given value with a given key.
|
void |
removePropertyChangeListener(PropertyChangeListener aPropertyChangeListener)
De-registers the given
PropertyChangeListener from receiving property change events
for this object. |
void |
setDisplayName(String aDisplayName)
Deprecated.
use
setName(java.lang.String) instead, which is already a display name. |
void |
setEnabled(boolean aEnabled)
Sets the enabled state of this active settable.
|
void |
setIcon(ILcdIcon aIcon)
Sets the icon of this active settable.
|
void |
setLongDescription(String aLongDescription)
Sets the long description of this active settable.
|
void |
setName(String aName)
Sets the name of this active settable.
|
void |
setShortDescription(String aShortDescription)
Sets the short description of this active settable.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isActive, setActive
public ALcyActiveSettable()
ALcyActiveSettable
.public ALcyActiveSettable(String aName)
ALcyActiveSettable
with the given name.aName
- The name of this active settable.@Deprecated public String getDisplayName()
getName()
instead, which is already a display name.setDisplayName(java.lang.String)
@Deprecated public void setDisplayName(String aDisplayName)
setName(java.lang.String)
instead, which is already a display name.aDisplayName
- The display name.getDisplayName()
public String getName()
setName(java.lang.String)
public void setName(String aName)
aName
- The name.getName()
public ILcdIcon getIcon()
setIcon(com.luciad.gui.ILcdIcon)
public void setIcon(ILcdIcon aIcon)
aIcon
- The icon.getIcon()
public String getShortDescription()
setShortDescription(java.lang.String)
public void setShortDescription(String aShortDescription)
aShortDescription
- The short description.getShortDescription()
public String getLongDescription()
setLongDescription(java.lang.String)
public void setLongDescription(String aLongDescription)
aLongDescription
- The long description.getLongDescription()
public Object getValue(String aKey)
ILcyActiveSettable
getValue
in interface ILcyActiveSettable
aKey
- The key to retrieve the value for.ILcyActiveSettable.putValue(java.lang.String, java.lang.Object)
public void putValue(String aKey, Object aValue)
ILcyActiveSettable
putValue
in interface ILcyActiveSettable
aKey
- The key.aValue
- The value to associate to the key.ILcyActiveSettable.getValue(java.lang.String)
public void setEnabled(boolean aEnabled)
ILcyActiveSettable
setEnabled
in interface ILcyActiveSettable
aEnabled
- True if the new state of this object is enabled, false otherwise.ILcyActiveSettable.isEnabled()
public boolean isEnabled()
ILcyActiveSettable
isEnabled
in interface ILcyActiveSettable
ILcyActiveSettable.setEnabled(boolean)
public void addPropertyChangeListener(PropertyChangeListener aPropertyChangeListener)
ILcdPropertyChangeSource
Registers the given PropertyChangeListener
to be notified when this object's
properties change.
In case you need to register a listener which keeps a reference to an object with a shorter life-time than this change source,
you can use a ALcdWeakPropertyChangeListener
instance as property change listener.
addPropertyChangeListener
in interface ILcdPropertyChangeSource
aPropertyChangeListener
- The listener to be notifiedALcdWeakPropertyChangeListener
,
ILcdPropertyChangeSource.removePropertyChangeListener(java.beans.PropertyChangeListener)
public void removePropertyChangeListener(PropertyChangeListener aPropertyChangeListener)
ILcdPropertyChangeSource
De-registers the given PropertyChangeListener
from receiving property change events
for this object.
If the listener was added more than once, it will be notified one less time after being
removed.
If the listener is null
, or was never added, no exception is thrown and no action is taken.
removePropertyChangeListener
in interface ILcdPropertyChangeSource
aPropertyChangeListener
- the listener that should no longer be notified of changes of
this object's propertiesILcdPropertyChangeSource.addPropertyChangeListener(java.beans.PropertyChangeListener)