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
changeSupport
Fields inherited from interface com.luciad.gui.ILcdAction
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE
-
Constructor Summary
ConstructorDescriptionDefault constructor: anILcdLayered
, and anILcdLayer
still must be set.TLcdRemoveLayerAction
(ILcdLayered aLayered, ILcdLayer aLayer) Constructor with anILcdLayered
, and anILcdLayer
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Performs thisILcdAction
.getLayer()
Gets theILcdLayer
associated to thisILcdAction
.Returns the layered from which the layer will be removed when the action is performed.boolean
Deprecated.This method has been deprecated.void
Sets theILcdLayer aLayer
to thisILcdAction
.void
setLayered
(ILcdLayered aLayered) Sets theILcdLayered aLayered
to thisILcdAction
.void
setTraceOn
(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, setShortDescription
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.gui.ILcdAction
getValue, isEnabled, putValue, setEnabled
Methods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
TLcdRemoveLayerAction
public TLcdRemoveLayerAction()Default constructor: anILcdLayered
, and anILcdLayer
still 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 eithertrue
orfalse
as argument automatically turns off tracing for all other class instances for whichsetTraceOn
has not been called. If the argument isfalse
then only the informative, warning and error log messages are recorded.- Overrides:
setTraceOn
in 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.Returnstrue
if tracing is enabled for this class.- Overrides:
isTraceOn
in classALcdAction
- Returns:
- true if tracing is enabled for this class, false otherwise.
-
setLayer
Sets theILcdLayer aLayer
to thisILcdAction
.- Parameters:
aLayer
- the layer that will be removed from the layered when the action is performed.- See Also:
-
getLayer
Gets theILcdLayer
associated to thisILcdAction
.- Returns:
- the layer that will be removed from the layered when the action is performed.
- See Also:
-
setLayered
Sets theILcdLayered aLayered
to 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
. ANullPointerException
will be thrown if one of the properties isnull
.- Specified by:
actionPerformed
in interfaceActionListener
- See Also:
-