|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjeters.components.DefaultGUI
public class DefaultGUI
the default implementation of a graphical UI component for JETERS.
For a command line UI, see DefaultCUI
.
Constructor Summary | |
---|---|
DefaultGUI()
|
Method Summary | |
---|---|
java.lang.String |
confirmChanges(java.lang.String label,
java.lang.String oldVersion,
java.lang.String newVersion,
java.lang.String descriptionOfChanges)
allows the user to accept/decline changes made by a replacer component (i.e. an implementation of ReplacerComponent ). |
NamedDataSet |
getConfiguration()
this method is called to retrieve the current configuration for this component. |
void |
presentHomeView(Core coreClass)
This method is called when the program starts and every time a replacement series is completed. |
NamedDataSet |
request(UIRequest... requests)
way for other components to communicate with the user via the UI |
void |
setConfiguration(NamedDataSet configurationSet)
sets the configuration for this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultGUI()
Method Detail |
---|
public void presentHomeView(Core coreClass)
UIComponent_HomeView
presentHomeView
in interface UIComponent_HomeView
public java.lang.String confirmChanges(java.lang.String label, java.lang.String oldVersion, java.lang.String newVersion, java.lang.String descriptionOfChanges)
UIComponent
ReplacerComponent
).
UIComponents should at least offer the possibility of choosing between the old and the new version of the text.
Additionally, they can allow manual editing.
confirmChanges
in interface UIComponent
label
- a kind of "name" (filename, article title, ...). This parameter can be "", but not null.oldVersion
- the text before the replacer's actions. This parameter can be "", but not null.newVersion
- the text after the replacer's actions. This parameter can be "", but not null.descriptionOfChanges
- an explanation of the differences between oldVersion and newVersion
provided by the replacer component. This parameter can be "", but not null.
public NamedDataSet request(UIRequest... requests)
UIComponent
request
in interface UIComponent
requests
- array of UIRequest
-objects (can use vararg-syntax).
Neither the array nor the array's entries may be null.
NamedDataSet
. public NamedDataSet getConfiguration()
Configurable
getConfiguration
in interface Configurable
public void setConfiguration(NamedDataSet configurationSet)
Configurable
setConfiguration
in interface Configurable
configurationSet
- the configuration data to be used by the component
if null, the object has to use default settings
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |