net.simplace.ui.formengine.geotools.FWAbstractMapChooserFormComponent

Version: 1.0

This class provides net.simplace.ui.formengine.FWAbstractFormComponentform component to successively select "something" from a map by several single selection actions

See also: AbstractMapChooserPanel




public abstract class FWAbstractMapChooserFormComponent extends
net.simplace.ui.formengine.FWAbstractFormComponent implements
de.schmitzm.swing.CaptionsChangeable {
// Public Constructors
public FWAbstractMapChooserFormComponent(String aFormID, String aFieldID,
boolean aShowLabel, int aDetachable, Element aFormElement, FWObservable
aObservable);

// Constants
protected static final String LOCALE_PREFIX;
public static final String CLEAR_BUTTON;
public static final String UNDO_BUTTON;
public static final String REDO_BUTTON;
// Protected Instance Variables
protected AbstractMapChooserPanel iMapChooserPanel;
protected JPanel iButtonPanel;
protected JButton iClearButton;
protected JButton iUndoButton;
protected JButton iRedoButton;
protected int iMinSelectionCount;
protected int iMaxSelectionCount;
protected boolean iReturnSingleValue;

// Public Instance Methods
public void setValue(Object aValue); // Defines
net.simplace.ui.formengine.FWAbstractFormComponent


Does nothing.
public void processFormFiller(); // Defines
net.simplace.ui.formengine.FWAbstractFormComponent


Fills the form component by a FormFiller.
public void resetCaptions(Map captions); // From
de.schmitzm.swing.CaptionsChangeable


Reset the captions of the control buttons respectively to net.simplace.util.service.LocaleProvider. The map is NOT used!
public Object getValue(); // Defines
net.simplace.ui.formengine.FWAbstractFormComponent


Returns a list of the selected objects.
returns {@code null} if no selection is made or the selection does not conform to {@link #iMinSelectionCount} and {@link #iMaxSelectionCount}.
public void exportData(); // Defines
net.simplace.ui.formengine.FWAbstractFormComponent


Opens an file chooser dialog for each displayed layer (beginning with the top layer) to export the feature collection or raster to file.

// Protected Instance Methods
protected abstract AbstractMapChooserPanel createMapChooserPanel(Element
aFormElement, FWObservable aObservable);

Creates an instance of net.simplace.ui.formengine.geotools.AbstractMapChooserPanel.
returns an instance of {@link AbstractMapChooserPanel}.
protected void initGUI();

Initializes the GUI elements.
protected void resetButtonActivation();

Resets the button activation respectively a selection is made or not.
protected Rectangle getValueCell(int aType);
// Defines net.simplace.ui.formengine.FWAbstractFormComponent




}



Hierarchy: java.lang.Object - java.awt.Component (java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable) - java.awt.Container - javax.swing.JComponent (java.io.Serializable, javax.swing.TransferHandler.HasGetTransferHandler) - javax.swing.JPanel (javax.accessibility.Accessible) - net.simplace.ui.formengine.FWAbstractFormComponent (net.simplace.util.FWObserver) - FWAbstractMapChooserFormComponent (de.schmitzm.swing.CaptionsChangeable)



Extended by: FWMapAreaChooserFormComponent, FWMapObjectChooserFormComponent, FWMapPointsChooserFormComponent