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 class
ImportedDataDialog.ImportableDataFilter
-
Field Summary
Fields Modifier and Type Field Description protected ImportedDataPanel
dataConfigPanel
protected FileStore
fileStore
protected java.lang.Thread
importThread
-
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 void
addImportedData(org.w3c.dom.Document dataConfig, AVList params, ImportedDataPanel panel)
protected static org.w3c.dom.Document
createDataStoreFromFile(java.io.File file, FileStore fileStore, DataStoreProducer producer)
protected static DataStoreProducer
createDataStoreProducerFromFile(java.io.File file)
boolean
hasNetworkActivity()
protected static org.w3c.dom.Document
importDataFromFile(java.awt.Component parentComponent, java.io.File file, FileStore fileStore)
protected void
importFromFile()
void
initialize(Controller controller)
boolean
isOn()
boolean
isTwoState()
Indicates whether the feature can be either on or off, without any other states.protected void
layoutComponents()
protected static void
loadImportedDataFromDirectory(java.io.File dir, ImportedDataPanel panel)
protected static void
loadImportedDataFromFileStore(FileStore fileStore, ImportedDataPanel panel)
protected void
loadPreviouslyImportedData()
protected static void
setFallbackParams(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:
initialize
in interfaceInitializable
- Overrides:
initialize
in classAbstractFeatureDialog
-
hasNetworkActivity
public boolean hasNetworkActivity()
- Specified by:
hasNetworkActivity
in interfaceNetworkActivitySignal.NetworkUser
-
isTwoState
public boolean isTwoState()
Description copied from interface:Feature
Indicates 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:
isTwoState
in interfaceFeature
- Overrides:
isTwoState
in classAbstractFeature
- Returns:
- true if the feature has only two states, otherwise off.
-
isOn
public boolean isOn()
- Specified by:
isOn
in interfaceFeature
- Overrides:
isOn
in 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)
-
-