public interface ImporterUI
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.
To be recognized by the system, implementations must just add the following annotation:
@ServiceProvider(service=ImporterUI.class)
Importer
Modifier and Type | Method and Description |
---|---|
String |
getDisplayName()
Returns the importer display name
|
JPanel |
getPanel()
Returns the importer settings panel.
|
boolean |
isUIForImporter(Importer importer)
Returns
true if this UI belongs to the given importer. |
void |
setup(Importer[] importers)
Link the UI to the importers and therefore to settings values.
|
void |
unsetup(boolean update)
Notify UI the settings panel has been closed and that new values can be
written.
|
void setup(Importer[] importers)
getPanel()
to push settings.importers
- the importers that settings is to be setJPanel getPanel()
null
void unsetup(boolean update)
update
- true
if user clicked OK or false
if CANCEL.String getDisplayName()
boolean 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–2015 Gephi Consortium. All rights reserved.