Class ImportedDataDialog
- java.lang.Object
-
- javax.swing.AbstractAction
-
- gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
-
- gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeatureDialog
-
- gov.nasa.worldwindx.applications.worldwindow.features.ImportedDataDialog
-
- All Implemented Interfaces:
Initializable,WWODialog,Feature,NetworkActivitySignal.NetworkUser,java.awt.event.ActionListener,java.beans.PropertyChangeListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public class ImportedDataDialog extends AbstractFeatureDialog implements NetworkActivitySignal.NetworkUser
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classImportedDataDialog.ImportableDataFilter
-
Field Summary
Fields Modifier and Type Field Description protected ImportedDataPaneldataConfigPanelprotected FileStorefileStoreprotected java.lang.ThreadimportThread-
Fields inherited from class gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeatureDialog
centerButtonPanel, closeButton, dialog, dialogPanel, leftButtonPanel, positionInitialized, rightButtonPanel
-
Fields inherited from class gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
controller, featureID
-
-
Constructor Summary
Constructors Constructor Description ImportedDataDialog(Registry registry)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static voidaddImportedData(org.w3c.dom.Document dataConfig, AVList params, ImportedDataPanel panel)protected static org.w3c.dom.DocumentcreateDataStoreFromFile(java.io.File file, FileStore fileStore, DataStoreProducer producer)protected static DataStoreProducercreateDataStoreProducerFromFile(java.io.File file)booleanhasNetworkActivity()protected static org.w3c.dom.DocumentimportDataFromFile(java.awt.Component parentComponent, java.io.File file, FileStore fileStore)protected voidimportFromFile()voidinitialize(Controller controller)booleanisOn()booleanisTwoState()Indicates whether the feature can be either on or off, without any other states.protected voidlayoutComponents()protected static voidloadImportedDataFromDirectory(java.io.File dir, ImportedDataPanel panel)protected static voidloadImportedDataFromFileStore(FileStore fileStore, ImportedDataPanel panel)protected voidloadPreviouslyImportedData()protected static voidsetFallbackParams(org.w3c.dom.Document dataConfig, java.lang.String filename, AVList params)-
Methods inherited from class gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeatureDialog
getJDialog, insertCenterDialogComponent, insertDialogComponent, insertLeftDialogComponent, insertRightDialogComponent, setLocation, setTaskComponent, setTaskPanel, setTaskPanel, setTitle, setVisible, turnOn
-
Methods inherited from class gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
actionPerformed, addToToolBar, doActionPerformed, doPropertyChange, getController, getFeatureID, getName, getStringValue, isInitialized, 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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Methods inherited from interface gov.nasa.worldwindx.applications.worldwindow.features.Feature
getFeatureID, getName
-
Methods inherited from interface gov.nasa.worldwindx.applications.worldwindow.core.Initializable
isInitialized
-
-
-
-
Field Detail
-
fileStore
protected FileStore fileStore
-
dataConfigPanel
protected ImportedDataPanel dataConfigPanel
-
importThread
protected java.lang.Thread importThread
-
-
Constructor Detail
-
ImportedDataDialog
public ImportedDataDialog(Registry registry)
-
-
Method Detail
-
initialize
public void initialize(Controller controller)
- Specified by:
initializein interfaceInitializable- Overrides:
initializein classAbstractFeatureDialog
-
hasNetworkActivity
public boolean hasNetworkActivity()
- Specified by:
hasNetworkActivityin interfaceNetworkActivitySignal.NetworkUser
-
isTwoState
public boolean isTwoState()
Description copied from interface:FeatureIndicates whether the feature can be either on or off, without any other states. This is used by the tool bar and menu-bar menus to determine whether the feature's enable/disable button or menu item should be displayed with an indicator that it's either on or off. In the case of a menu the indicator is a check box. In the case of a tool bar button the indicator is a dot above the button.- Specified by:
isTwoStatein interfaceFeature- Overrides:
isTwoStatein classAbstractFeature- Returns:
- true if the feature has only two states, otherwise off.
-
isOn
public boolean isOn()
- Specified by:
isOnin interfaceFeature- Overrides:
isOnin classAbstractFeature
-
loadPreviouslyImportedData
protected void loadPreviouslyImportedData()
-
importFromFile
protected void importFromFile()
-
layoutComponents
protected void layoutComponents()
-
addImportedData
protected static void addImportedData(org.w3c.dom.Document dataConfig, AVList params, ImportedDataPanel panel)
-
loadImportedDataFromDirectory
protected static void loadImportedDataFromDirectory(java.io.File dir, ImportedDataPanel panel)
-
loadImportedDataFromFileStore
protected static void loadImportedDataFromFileStore(FileStore fileStore, ImportedDataPanel panel)
-
setFallbackParams
protected static void setFallbackParams(org.w3c.dom.Document dataConfig, java.lang.String filename, AVList params)
-
importDataFromFile
protected static org.w3c.dom.Document importDataFromFile(java.awt.Component parentComponent, java.io.File file, FileStore fileStore) throws java.lang.Exception- Throws:
java.lang.Exception
-
createDataStoreFromFile
protected static org.w3c.dom.Document createDataStoreFromFile(java.io.File file, FileStore fileStore, DataStoreProducer producer) throws java.lang.Exception- Throws:
java.lang.Exception
-
createDataStoreProducerFromFile
protected static DataStoreProducer createDataStoreProducerFromFile(java.io.File file)
-
-