Package com.luciad.lucy.gui
Class ALcyActiveSettable
java.lang.Object
com.luciad.lucy.gui.ALcyActiveSettable
- All Implemented Interfaces:
ILcyActiveSettable
,ILcdPropertyChangeSource
,Serializable
- Direct Known Subclasses:
TLcyFullScreenActiveSettable
,TLcyGXYSetControllerActiveSettable
,TLcyLspProjectionActiveSettable
,TLcyLspSetControllerActiveSettable
,TLcyMain
Default implementation of
ILcyActiveSettable
for convenience.- See Also:
-
Field Summary
Fields inherited from interface com.luciad.lucy.gui.ILcyActiveSettable
DEFAULT, LONG_DESCRIPTION, NAME, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, SMALL_SELECTED_ICON, VISIBLE
-
Constructor Summary
ConstructorDescriptionCreates a newALcyActiveSettable
.ALcyActiveSettable
(String aName) Creates a newALcyActiveSettable
with the given name.ALcyActiveSettable
(String aName, ILcdIcon aIcon) Creates a newALcyActiveSettable
with the given name and the given icon. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPropertyChangeListener
(PropertyChangeListener aPropertyChangeListener) Registers the givenPropertyChangeListener
to be notified when this object's properties change.void
firePropertyChange
(String aPropertyName, Object aOldValue, Object aNewValue) Deprecated.getIcon()
Returns the icon of this active settable.Returns the long description of this active settable.getName()
Returns the name of this active settable.Returns the short description of this active settable.Gets a value given its key.boolean
Returns true if this object is enabled, false otherwise.void
Associates a given value with a given key.void
removePropertyChangeListener
(PropertyChangeListener aPropertyChangeListener) De-registers the givenPropertyChangeListener
from receiving property change events for this object.void
setDisplayName
(String aDisplayName) Deprecated.usesetName(java.lang.String)
instead, which is already a display name.void
setEnabled
(boolean aEnabled) Sets the enabled state of this active settable.void
Sets the icon of this active settable.void
setLongDescription
(String aLongDescription) Sets the long description of this active settable.void
Sets the name of this active settable.void
setShortDescription
(String aShortDescription) Sets the short description of this active settable.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.lucy.gui.ILcyActiveSettable
isActive, setActive
-
Constructor Details
-
ALcyActiveSettable
public ALcyActiveSettable()Creates a newALcyActiveSettable
. -
ALcyActiveSettable
Creates a newALcyActiveSettable
with the given name.- Parameters:
aName
- The name of this active settable.
-
ALcyActiveSettable
Creates a newALcyActiveSettable
with the given name and the given icon.- Parameters:
aName
- The name of this active settable.aIcon
- The icon of this active settable.
-
-
Method Details
-
getDisplayName
Deprecated.usegetName()
instead, which is already a display name.Returns the display name of this active settable.- Returns:
- the display name of this active settable.
- See Also:
-
setDisplayName
Deprecated.usesetName(java.lang.String)
instead, which is already a display name.Sets the display name of this active settable.- Parameters:
aDisplayName
- The display name.- See Also:
-
getName
Returns the name of this active settable.- Returns:
- the name of this active settable.
- See Also:
-
setName
Sets the name of this active settable.- Parameters:
aName
- The name.- See Also:
-
getIcon
Returns the icon of this active settable.- Returns:
- the icon of this active settable.
- See Also:
-
setIcon
Sets the icon of this active settable.- Parameters:
aIcon
- The icon.- See Also:
-
getShortDescription
Returns the short description of this active settable.- Returns:
- the short description of this active settable.
- See Also:
-
setShortDescription
Sets the short description of this active settable.- Parameters:
aShortDescription
- The short description.- See Also:
-
getLongDescription
Returns the long description of this active settable.- Returns:
- the long description of this active settable.
- See Also:
-
setLongDescription
Sets the long description of this active settable.- Parameters:
aLongDescription
- The long description.- See Also:
-
getValue
Description copied from interface:ILcyActiveSettable
Gets a value given its key.- Specified by:
getValue
in interfaceILcyActiveSettable
- Parameters:
aKey
- The key to retrieve the value for.- Returns:
- The value associated with the given key, or null if they key is unknown.
- See Also:
-
putValue
Description copied from interface:ILcyActiveSettable
Associates a given value with a given key.- Specified by:
putValue
in interfaceILcyActiveSettable
- Parameters:
aKey
- The key.aValue
- The value to associate to the key.- See Also:
-
setEnabled
public void setEnabled(boolean aEnabled) Description copied from interface:ILcyActiveSettable
Sets the enabled state of this active settable.- Specified by:
setEnabled
in interfaceILcyActiveSettable
- Parameters:
aEnabled
- True if the new state of this object is enabled, false otherwise.- See Also:
-
isEnabled
public boolean isEnabled()Description copied from interface:ILcyActiveSettable
Returns true if this object is enabled, false otherwise.- Specified by:
isEnabled
in interfaceILcyActiveSettable
- Returns:
- true if this object is enabled, false otherwise.
- See Also:
-
addPropertyChangeListener
Description copied from interface: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.- Specified by:
addPropertyChangeListener
in interfaceILcdPropertyChangeSource
- Parameters:
aPropertyChangeListener
- The listener to be notified- See Also:
-
removePropertyChangeListener
Description copied from interface: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.- Specified by:
removePropertyChangeListener
in interfaceILcdPropertyChangeSource
- Parameters:
aPropertyChangeListener
- the listener that should no longer be notified of changes of this object's properties- See Also:
-
firePropertyChange
-
getName()
instead, which is already a display name.