NASA World Wind

gov.nasa.worldwindx.applications.worldwindow.features
Class AbstractFeatureDialog

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
          extended by gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeatureDialog
All Implemented Interfaces:
Initializable, WWODialog, Feature, ActionListener, PropertyChangeListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
ImportedDataDialog, MeasurementDialog, WMSDialog

public class AbstractFeatureDialog
extends AbstractFeature
implements WWODialog

See Also:
Serialized Form

Field Summary
protected  JPanel centerButtonPanel
           
protected  JButton closeButton
           
protected  JDialog dialog
           
protected  JPanel dialogPanel
           
protected  JPanel leftButtonPanel
           
protected  boolean positionInitialized
           
protected  JPanel rightButtonPanel
           
 
Fields inherited from class gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
controller, featureID
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
protected AbstractFeatureDialog(String name, String featureID, Registry registry)
           
protected AbstractFeatureDialog(String name, String featureID, String largeIconPath, Registry registry)
           
 
Method Summary
 JDialog getJDialog()
           
 void initialize(Controller controller)
           
protected  void insertCenterDialogComponent(JComponent component)
           
protected  void insertDialogComponent(JComponent component)
           
protected  void insertLeftDialogComponent(JComponent component)
           
protected  void insertRightDialogComponent(JComponent component)
           
protected  void setLocation(int horizontal, int vertical)
           
protected  void setTaskComponent(JComponent component)
           
protected  void setTaskPanel(FeaturePanel panel)
           
protected  void setTaskPanel(String featureID)
           
 void setTitle(String title)
           
 void setVisible(boolean tf)
           
 void turnOn(boolean tf)
           
 
Methods inherited from class gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
actionPerformed, addToToolBar, doActionPerformed, doPropertyChange, getController, getFeatureID, getName, getStringValue, isInitialized, isOn, isTwoState, propertyChange, register, setMenuAccellerator
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwindx.applications.worldwindow.features.Feature
getFeatureID, getName, isOn, isTwoState
 
Methods inherited from interface gov.nasa.worldwindx.applications.worldwindow.core.Initializable
isInitialized
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Field Detail

centerButtonPanel

protected JPanel centerButtonPanel

closeButton

protected JButton closeButton

dialog

protected JDialog dialog

dialogPanel

protected JPanel dialogPanel

leftButtonPanel

protected JPanel leftButtonPanel

positionInitialized

protected boolean positionInitialized

rightButtonPanel

protected JPanel rightButtonPanel
Constructor Detail

AbstractFeatureDialog

protected AbstractFeatureDialog(String name,
                                String featureID,
                                Registry registry)

AbstractFeatureDialog

protected AbstractFeatureDialog(String name,
                                String featureID,
                                String largeIconPath,
                                Registry registry)
Method Detail

getJDialog

public JDialog getJDialog()
Specified by:
getJDialog in interface WWODialog

initialize

public void initialize(Controller controller)
Specified by:
initialize in interface Initializable
Overrides:
initialize in class AbstractFeature

insertCenterDialogComponent

protected void insertCenterDialogComponent(JComponent component)

insertDialogComponent

protected void insertDialogComponent(JComponent component)

insertLeftDialogComponent

protected void insertLeftDialogComponent(JComponent component)

insertRightDialogComponent

protected void insertRightDialogComponent(JComponent component)

setLocation

protected void setLocation(int horizontal,
                           int vertical)

setTaskComponent

protected void setTaskComponent(JComponent component)

setTaskPanel

protected void setTaskPanel(FeaturePanel panel)

setTaskPanel

protected void setTaskPanel(String featureID)

setTitle

public void setTitle(String title)

setVisible

public void setVisible(boolean tf)
Specified by:
setVisible in interface WWODialog

turnOn

public void turnOn(boolean tf)
Specified by:
turnOn in interface Feature
Overrides:
turnOn in class AbstractFeature

NASA World Wind