Class OpenFileWizard
- java.lang.Object
-
- org.openjump.core.ui.swing.wizard.AbstractWizardGroup
-
- org.openjump.core.ui.plugin.file.open.OpenFileWizard
-
- All Implemented Interfaces:
WizardGroup
public class OpenFileWizard extends AbstractWizardGroup
-
-
Constructor Summary
Constructors Constructor Description OpenFileWizard(WorkbenchContext workbenchContext)
Construct a new OpenFileWizard.OpenFileWizard(WorkbenchContext workbenchContext, File[] files)
OpenFileWizard(WorkbenchContext workbenchContext, Class loaderFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFirstId()
Layerable
getLayer()
void
initialize(WorkbenchContext workbenchContext, WizardDialog dialog)
protected void
initPanels(WorkbenchContext workbenchContext)
void
run(WizardDialog dialog, TaskMonitor monitor)
Load the files selected in the wizard.void
setLayer(Layerable layer)
-
Methods inherited from class org.openjump.core.ui.swing.wizard.AbstractWizardGroup
addPanel, addPanel, getIcon, getName, getPanels, removeAllPanels, removePanel
-
-
-
-
Field Detail
-
KEY
public static final String KEY
The key for the wizard.
-
-
Constructor Detail
-
OpenFileWizard
public OpenFileWizard(WorkbenchContext workbenchContext)
Construct a new OpenFileWizard.- Parameters:
workbenchContext
- The workbench context.
-
OpenFileWizard
public OpenFileWizard(WorkbenchContext workbenchContext, File[] files)
-
OpenFileWizard
public OpenFileWizard(WorkbenchContext workbenchContext, Class loaderFilter)
-
-
Method Detail
-
getLayer
public Layerable getLayer()
-
setLayer
public void setLayer(Layerable layer)
-
initialize
public void initialize(WorkbenchContext workbenchContext, WizardDialog dialog)
- Specified by:
initialize
in interfaceWizardGroup
- Overrides:
initialize
in classAbstractWizardGroup
-
initPanels
protected void initPanels(WorkbenchContext workbenchContext)
-
getFirstId
public String getFirstId()
- Specified by:
getFirstId
in interfaceWizardGroup
- Overrides:
getFirstId
in classAbstractWizardGroup
-
run
public void run(WizardDialog dialog, TaskMonitor monitor) throws Exception
Load the files selected in the wizard.- Parameters:
monitor
- The task monitor.- Throws:
Exception
-
-