|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jeters.util.AssistedComponent
net.sf.jeters.components.DefaultGUI
public class DefaultGUI
the default implementation of a graphical UI component for JETERS.
For a command line UI, see DefaultCLI
.
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,
boolean allowCancel)
allows the user to accept/decline changes made by a replacer component (i.e. an implementation of ReplacerComponent ). |
void |
presentHomeView(ComponentManager componentManager)
This method is called when the program starts and every time a replacement series is completed. |
net.sf.jeters.componentInterface.dataStructs.NamedDataSet |
request(net.sf.jeters.componentInterface.dataStructs.UIRequest... requests)
way for other components to communicate with the user via the UI |
void |
setConfiguration(Configuration configuration)
sets the configuration for this object. |
void |
setLanguageResourceBundle(java.util.ResourceBundle langRB)
sets the ResourceBundle that contains the messages to use |
Methods inherited from class net.sf.jeters.util.AssistedComponent |
---|
getConfiguration, str, str |
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(ComponentManager componentManager)
UIComponent_HomeView
presentHomeView
in interface UIComponent_HomeView
componentManager
- ComponentManager that will provide information
about active and available components; if the
user can exchange components using the home
view, these changes have to be applied to the
component manager.public java.lang.String confirmChanges(java.lang.String label, java.lang.String oldVersion, java.lang.String newVersion, java.lang.String descriptionOfChanges, boolean allowCancel)
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, ...);
can be "", but not null.oldVersion
- the text before the replacer's actions;
can be "", but not null.newVersion
- the text after the replacer's actions;
can be "", but not null.descriptionOfChanges
- an explanation of the differences between
oldVersion and newVersion provided by the
replacer component; can be "", but not null.allowCancel
- if false, cancelling must not be possible;
if true, possibility depends on UI
public net.sf.jeters.componentInterface.dataStructs.NamedDataSet request(net.sf.jeters.componentInterface.dataStructs.UIRequest... requests)
UIComponent
request
in interface UIComponent
requests
- array of UIRequest
s (can use vararg-syntax).
Neither the array nor the array's entries may be null.
NamedDataSet
. public void setConfiguration(Configuration configuration)
Configurable
setConfiguration
in interface Configurable
setConfiguration
in class AssistedComponent
configuration
- configuration to be used by the component; not nullpublic void setLanguageResourceBundle(java.util.ResourceBundle langRB)
Translatable
setLanguageResourceBundle
in interface Translatable
setLanguageResourceBundle
in class AssistedComponent
langRB
- ResourceBundle to retrieve Strings from
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |