|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ImporterUI
Define importer settings user interface.
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
Method Summary | |
---|---|
java.lang.String |
getDisplayName()
Returns the importer display name |
javax.swing.JPanel |
getPanel()
Returns the importer settings panel. |
boolean |
isUIForImporter(Importer importer)
Returns true if this UI belongs to the given importer. |
void |
setup(Importer importer)
Link the UI to the importer and therefore to settings values. |
void |
unsetup(boolean update)
Notify UI the settings panel has been closed and that new values can be written. |
Method Detail |
---|
void setup(Importer importer)
getPanel()
to push settings.
importer
- the importer that settings is to be setjavax.swing.JPanel getPanel()
null
void unsetup(boolean update)
update
- true
if user clicked OK or false
if CANCEL.java.lang.String getDisplayName()
boolean isUIForImporter(Importer importer)
true
if this UI belongs to the given importer.
importer
- the importer that has to be tested
true
if the UI is matching with importer
,
false
otherwise.
|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |