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 DefaultListModel |
model |
protected static String |
TOOL_TIP |
panelcontroller, featureIDchangeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| 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(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, getJPanelactionPerformed, addToToolBar, doActionPerformed, doPropertyChange, getController, getFeatureID, getName, getStringValue, isInitialized, propertyChange, register, setMenuAccelleratoraddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFeatureID, getNameisInitializedaddPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledactionPerformedpropertyChangeprotected ActiveLayersList jlist
protected DefaultListModel model
protected static final String TOOL_TIP
public ActiveLayersPanel(Registry registry)
protected void fillModel(LayerList layerList)
public void initialize(Controller controller)
initialize in interface Initializableinitialize in class AbstractFeaturePanelpublic boolean isIncludeInternalLayers()
ActiveLayersManagerConstants.INTERNAL_LAYER.isIncludeInternalLayers in interface ActiveLayersManagerpublic boolean isOn()
isOn in interface FeatureisOn in class AbstractFeaturepublic boolean isTwoState()
FeatureisTwoState in interface FeatureisTwoState in class AbstractFeatureprotected void refresh(PropertyChangeEvent event)
public void setIncludeInternalLayers(boolean includeInternalLayers)
ActiveLayersManagersetIncludeInternalLayers in interface ActiveLayersManagerincludeInternalLayers - true for internal layers to be shown, otherwise false.public void turnOn(boolean tf)
turnOn in interface FeatureturnOn in class AbstractFeaturepublic void updateLayerList(LayerList layerList)
ActiveLayersManagerupdateLayerList in interface ActiveLayersManagerlayerList - the layer list to display.