|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjeters.components.DefaultCUI
public class DefaultCUI
the default implementation of a (very basic) command line UI component for JETERS.
For a graphical UI, see DefaultGUI
.
Constructor Summary | |
---|---|
DefaultCUI()
|
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 |
output(java.lang.String message)
|
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 DefaultCUI()
Method Detail |
---|
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 void output(java.lang.String message)
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 |