public interface ImporterWizardUI
Declared in the system as services (i.e. singleton), the role of UI classes is to provide user interface to configure importers and remember last used settings if needed. This service is designed to provide the different panels part of an import wizard.
To be recognized by the system, implementations must just add the following annotation:
@ServiceProvider(service=ImporterWizardUI.class)
WizardImporter
Modifier and Type | Method and Description |
---|---|
String |
getCategory()
There are two levels for wizard UIs, the category and then the display
name.
|
String |
getDescription()
Returns the description for this importer
|
String |
getDisplayName()
Returns the importer display name
|
org.openide.WizardDescriptor.Panel[] |
getPanels()
Returns wizard panels.
|
boolean |
isUIForImporter(Importer importer)
Returns
true if this UI belongs to the given importer. |
void |
setup(org.openide.WizardDescriptor.Panel panel)
Configure
panel with previously remembered settings. |
void |
unsetup(WizardImporter importer,
org.openide.WizardDescriptor.Panel panel)
Notify UI the settings panel has been closed and that new values can be
written.
|
String getDisplayName()
String getCategory()
String getDescription()
org.openide.WizardDescriptor.Panel[] getPanels()
void setup(org.openide.WizardDescriptor.Panel panel)
panel
with previously remembered settings. This
method is called after getPanels()
to push settings.panel
- the panel that settings are to be setvoid unsetup(WizardImporter importer, org.openide.WizardDescriptor.Panel panel)
panel
and written
importer
.importer
- the importer that settings are to be writtenpanel
- the panel that settings are readboolean isUIForImporter(Importer importer)
true
if this UI belongs to the given importer.importer
- the importer that has to be testedtrue
if the UI is matching with
importer
, false
otherwise.Copyright © 2007–2017 Gephi Consortium. All rights reserved.