public class ActiveLayersPanel extends AbstractFeaturePanel implements ActiveLayersManager
Modifier and Type | Class and Description |
---|---|
protected class |
ActiveLayersPanel.ReorderListener |
Modifier and Type | Field and Description |
---|---|
protected ActiveLayersList |
jlist |
protected javax.swing.DefaultListModel |
model |
protected static java.lang.String |
TOOL_TIP |
panel
controller, featureID
Constructor and Description |
---|
ActiveLayersPanel(Registry registry) |
Modifier and Type | Method and Description |
---|---|
protected void |
fillModel(LayerList layerList) |
void |
initialize(Controller controller) |
boolean |
isIncludeInternalLayers()
Indicates whether to show internal layers, those whose attribute-value list contains
Constants.INTERNAL_LAYER . |
boolean |
isOn() |
boolean |
isTwoState()
Indicates whether the feature can be either on or off, without any other states.
|
protected void |
refresh(java.beans.PropertyChangeEvent event) |
void |
setIncludeInternalLayers(boolean includeInternalLayers)
Specifies whether to show internal layers.
|
void |
turnOn(boolean tf) |
void |
updateLayerList(LayerList layerList)
Replace the contents of the model with the contents of a specified [@link LayerList}.
|
getDialogControls, getJPanel
actionPerformed, addToToolBar, doActionPerformed, doPropertyChange, getController, getFeatureID, getName, getStringValue, isInitialized, propertyChange, register, setMenuAccellerator
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFeatureID, getName
isInitialized
protected ActiveLayersList jlist
protected javax.swing.DefaultListModel model
protected static final java.lang.String TOOL_TIP
public ActiveLayersPanel(Registry registry)
protected void fillModel(LayerList layerList)
public void initialize(Controller controller)
initialize
in interface Initializable
initialize
in class AbstractFeaturePanel
public boolean isIncludeInternalLayers()
ActiveLayersManager
Constants.INTERNAL_LAYER
.isIncludeInternalLayers
in interface ActiveLayersManager
public boolean isOn()
isOn
in interface Feature
isOn
in class AbstractFeature
public boolean isTwoState()
Feature
isTwoState
in interface Feature
isTwoState
in class AbstractFeature
protected void refresh(java.beans.PropertyChangeEvent event)
public void setIncludeInternalLayers(boolean includeInternalLayers)
ActiveLayersManager
setIncludeInternalLayers
in interface ActiveLayersManager
includeInternalLayers
- true for internal layers to be shown, otherwise false.public void turnOn(boolean tf)
turnOn
in interface Feature
turnOn
in class AbstractFeature
public void updateLayerList(LayerList layerList)
ActiveLayersManager
updateLayerList
in interface ActiveLayersManager
layerList
- the layer list to display.