Package org.esa.snap.ui.layer
Class AbstractLayerConfigurationEditor
java.lang.Object
org.esa.snap.ui.layer.AbstractLayerEditor
org.esa.snap.ui.layer.AbstractLayerConfigurationEditor
- All Implemented Interfaces:
LayerEditor
- Direct Known Subclasses:
GraticuleLayerEditor
,ImageLayerEditor
,NoDataLayerEditor
,VectorDataLayerEditor
Base class for editors allowing to modify a layer's configuration.
- Since:
- BEAM 4.6
-
Field Summary
Fields inherited from interface org.esa.snap.ui.layer.LayerEditor
EMPTY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
Clients override in order to subsequently calladdPropertyDescriptor(com.bc.ceres.binding.PropertyDescriptor)
for each property that shall be editable by this editor.protected final void
addPropertyDescriptor
(PropertyDescriptor propertyDescriptor) Defines an editable property.Creates the editor control for this editor.protected final com.bc.ceres.swing.binding.BindingContext
void
Does nothing.void
Does nothing.void
Called y the framework in order to inform this editor that the current layer has changed.Methods inherited from class org.esa.snap.ui.layer.AbstractLayerEditor
createControl, getCurrentLayer
-
Constructor Details
-
AbstractLayerConfigurationEditor
public AbstractLayerConfigurationEditor()
-
-
Method Details
-
getBindingContext
protected final com.bc.ceres.swing.binding.BindingContext getBindingContext()- Returns:
- The binding context.
-
createControl
Description copied from class:AbstractLayerEditor
Creates the editor control for this editor.- Specified by:
createControl
in classAbstractLayerEditor
- Returns:
- The editor control.
-
handleLayerContentChanged
public void handleLayerContentChanged()Description copied from interface:LayerEditor
Called y the framework in order to inform this editor that the current layer has changed. Usually the the editor control must be updated in this case.- Specified by:
handleLayerContentChanged
in interfaceLayerEditor
- Overrides:
handleLayerContentChanged
in classAbstractLayerEditor
-
handleEditorAttached
public void handleEditorAttached()Does nothing.- Specified by:
handleEditorAttached
in interfaceLayerEditor
- Overrides:
handleEditorAttached
in classAbstractLayerEditor
-
handleEditorDetached
public void handleEditorDetached()Does nothing.- Specified by:
handleEditorDetached
in interfaceLayerEditor
- Overrides:
handleEditorDetached
in classAbstractLayerEditor
-
addEditablePropertyDescriptors
protected abstract void addEditablePropertyDescriptors()Clients override in order to subsequently calladdPropertyDescriptor(com.bc.ceres.binding.PropertyDescriptor)
for each property that shall be editable by this editor. -
addPropertyDescriptor
Defines an editable property.- Parameters:
propertyDescriptor
- The property's descriptor.
-