org.esa.beam.framework.ui.layer
Class AbstractLayerConfigurationEditor

java.lang.Object
  extended by org.esa.beam.framework.ui.layer.AbstractLayerEditor
      extended by org.esa.beam.framework.ui.layer.AbstractLayerConfigurationEditor
All Implemented Interfaces:
LayerEditor
Direct Known Subclasses:
GraticuleLayerEditor, ImageLayerEditor, NoDataLayerEditor, VectorDataLayerEditor

public abstract class AbstractLayerConfigurationEditor
extends AbstractLayerEditor

Base class for editors allowing to modify a layer's configuration.

Since:
BEAM 4.6
Version:
$Revision$ $Date$
Author:
Marco Zühlke

Field Summary
 
Fields inherited from interface org.esa.beam.framework.ui.layer.LayerEditor
EMPTY
 
Constructor Summary
AbstractLayerConfigurationEditor()
           
 
Method Summary
protected abstract  void addEditablePropertyDescriptors()
          Clients override in order to subsequently call addPropertyDescriptor(com.bc.ceres.binding.PropertyDescriptor) for each property that shall be editable by this editor.
protected  void addPropertyDescriptor(com.bc.ceres.binding.PropertyDescriptor propertyDescriptor)
          Defines an editable property.
 JComponent createControl()
          Creates the editor control for this editor.
protected  com.bc.ceres.swing.binding.BindingContext getBindingContext()
           
 void handleEditorAttached()
          Does nothing.
 void handleEditorDetached()
          Does nothing.
 void handleLayerContentChanged()
          Called y the framework in order to inform this editor that the current layer has changed.
 
Methods inherited from class org.esa.beam.framework.ui.layer.AbstractLayerEditor
createControl, getAppContext, getCurrentLayer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLayerConfigurationEditor

public AbstractLayerConfigurationEditor()
Method Detail

getBindingContext

protected final com.bc.ceres.swing.binding.BindingContext getBindingContext()
Returns:
The binding context.

createControl

public JComponent createControl()
Description copied from class: AbstractLayerEditor
Creates the editor control for this editor.

Specified by:
createControl in class AbstractLayerEditor
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 interface LayerEditor
Overrides:
handleLayerContentChanged in class AbstractLayerEditor

handleEditorAttached

public void handleEditorAttached()
Does nothing.

Specified by:
handleEditorAttached in interface LayerEditor
Overrides:
handleEditorAttached in class AbstractLayerEditor

handleEditorDetached

public void handleEditorDetached()
Does nothing.

Specified by:
handleEditorDetached in interface LayerEditor
Overrides:
handleEditorDetached in class AbstractLayerEditor

addEditablePropertyDescriptors

protected abstract void addEditablePropertyDescriptors()
Clients override in order to subsequently call addPropertyDescriptor(com.bc.ceres.binding.PropertyDescriptor) for each property that shall be editable by this editor.


addPropertyDescriptor

protected final void addPropertyDescriptor(com.bc.ceres.binding.PropertyDescriptor propertyDescriptor)
Defines an editable property.

Parameters:
propertyDescriptor - The property's descriptor.


Copyright © 2002-2013 Brockmann Consult GmbH. All Rights Reserved.