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
ConstructorsConstructorDescriptionCreates a newALcyActiveSettable.ALcyActiveSettable(String aName) Creates a newALcyActiveSettablewith the given name.ALcyActiveSettable(String aName, ILcdIcon aIcon) Creates a newALcyActiveSettablewith the given name and the given icon. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPropertyChangeListener(PropertyChangeListener aPropertyChangeListener) Registers the givenPropertyChangeListenerto be notified when this object's properties change.voidfirePropertyChange(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.booleanReturns true if this object is enabled, false otherwise.voidAssociates a given value with a given key.voidremovePropertyChangeListener(PropertyChangeListener aPropertyChangeListener) De-registers the givenPropertyChangeListenerfrom receiving property change events for this object.voidsetDisplayName(String aDisplayName) Deprecated.usesetName(java.lang.String)instead, which is already a display name.voidsetEnabled(boolean aEnabled) Sets the enabled state of this active settable.voidSets the icon of this active settable.voidsetLongDescription(String aLongDescription) Sets the long description of this active settable.voidSets the name of this active settable.voidsetShortDescription(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, waitMethods inherited from interface com.luciad.lucy.gui.ILcyActiveSettable
isActive, setActive
-
Constructor Details
-
ALcyActiveSettable
public ALcyActiveSettable()Creates a newALcyActiveSettable. -
ALcyActiveSettable
Creates a newALcyActiveSettablewith the given name.- Parameters:
aName- The name of this active settable.
-
ALcyActiveSettable
Creates a newALcyActiveSettablewith 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:ILcyActiveSettableGets a value given its key.- Specified by:
getValuein 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:ILcyActiveSettableAssociates a given value with a given key.- Specified by:
putValuein 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:ILcyActiveSettableSets the enabled state of this active settable.- Specified by:
setEnabledin 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:ILcyActiveSettableReturns true if this object is enabled, false otherwise.- Specified by:
isEnabledin interfaceILcyActiveSettable- Returns:
- true if this object is enabled, false otherwise.
- See Also:
-
addPropertyChangeListener
Description copied from interface:ILcdPropertyChangeSourceRegisters the given
PropertyChangeListenerto 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
ALcdWeakPropertyChangeListenerinstance as property change listener.- Specified by:
addPropertyChangeListenerin interfaceILcdPropertyChangeSource- Parameters:
aPropertyChangeListener- The listener to be notified- See Also:
-
removePropertyChangeListener
Description copied from interface:ILcdPropertyChangeSourceDe-registers the given
PropertyChangeListenerfrom 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:
removePropertyChangeListenerin 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.