Package com.luciad.view
Class TLcdRemoveLayerAction
java.lang.Object
com.luciad.gui.ALcdAction
com.luciad.view.TLcdRemoveLayerAction
- All Implemented Interfaces:
ILcdAction,ILcdPropertyChangeSource,ActionListener,Serializable,EventListener
This is an
ILcdAction that removes a given
ILcdLayer from an ILcdLayered..- See Also:
-
Field Summary
Fields inherited from class com.luciad.gui.ALcdAction
changeSupportFields inherited from interface com.luciad.gui.ILcdAction
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor: anILcdLayered, and anILcdLayerstill must be set.TLcdRemoveLayerAction(ILcdLayered aLayered, ILcdLayer aLayer) Constructor with anILcdLayered, and anILcdLayer. -
Method Summary
Modifier and TypeMethodDescriptionvoidPerforms thisILcdAction.getLayer()Gets theILcdLayerassociated to thisILcdAction.Returns the layered from which the layer will be removed when the action is performed.booleanDeprecated.This method has been deprecated.voidSets theILcdLayer aLayerto thisILcdAction.voidsetLayered(ILcdLayered aLayered) Sets theILcdLayered aLayeredto thisILcdAction.voidsetTraceOn(boolean aTraceOn) Deprecated.This method has been deprecated.Methods inherited from class com.luciad.gui.ALcdAction
addPropertyChangeListener, firePropertyChange, getDisplayName, getIcon, getLongDescription, getName, getShortDescription, getValue, isEnabled, putValue, registerInstance, removePropertyChangeListener, setClassTraceOn, setDisplayName, setEnabled, setIcon, setLongDescription, setName, setShortDescriptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.gui.ILcdAction
getValue, isEnabled, putValue, setEnabledMethods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
TLcdRemoveLayerAction
public TLcdRemoveLayerAction()Default constructor: anILcdLayered, and anILcdLayerstill must be set. -
TLcdRemoveLayerAction
Constructor with anILcdLayered, and anILcdLayer.- Parameters:
aLayered- the layered from which the layer will be removed.aLayer- the layer to remove from the layered.
-
-
Method Details
-
setTraceOn
public void setTraceOn(boolean aTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for this class instance. Calling this method with eithertrueorfalseas argument automatically turns off tracing for all other class instances for whichsetTraceOnhas not been called. If the argument isfalsethen only the informative, warning and error log messages are recorded.- Overrides:
setTraceOnin classALcdAction- Parameters:
aTraceOn- if true then all log messages are recorded for this instance. If false, then only the informative, warning and error log messages are recorded.
-
isTraceOn
public boolean isTraceOn()Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Returnstrueif tracing is enabled for this class.- Overrides:
isTraceOnin classALcdAction- Returns:
- true if tracing is enabled for this class, false otherwise.
-
setLayer
Sets theILcdLayer aLayerto thisILcdAction.- Parameters:
aLayer- the layer that will be removed from the layered when the action is performed.- See Also:
-
getLayer
Gets theILcdLayerassociated to thisILcdAction.- Returns:
- the layer that will be removed from the layered when the action is performed.
- See Also:
-
setLayered
Sets theILcdLayered aLayeredto thisILcdAction.- Parameters:
aLayered- the layered from which the layer will be removed when the action is performed.- See Also:
-
getLayered
Returns the layered from which the layer will be removed when the action is performed.- Returns:
- the layered from which the layer will be removed when the action is performed.
- See Also:
-
actionPerformed
Performs thisILcdAction. ANullPointerExceptionwill be thrown if one of the properties isnull.- Specified by:
actionPerformedin interfaceActionListener- See Also:
-