|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjeters.core.Core
public class Core
the core class - its task is the coordination of the components
Constructor Summary | |
---|---|
Core()
|
Method Summary | ||
---|---|---|
java.lang.Class<InputComponent> |
getActiveComponentClass_Input()
get the class of the active Input component object |
|
java.lang.Class<OutputComponent> |
getActiveComponentClass_Output()
get the class of the active Output component object |
|
java.lang.Class<ReplacerComponent> |
getActiveComponentClass_Replacer()
get the class of the active Replacer component object |
|
java.lang.Class<UIComponent> |
getActiveComponentClass_UI()
get the class of the active UI component object |
|
|
getAvailableComponentClasses(java.lang.Class<T> desiredClass)
method that provides an array of available component classes. |
|
NamedDataSet |
getConfiguration()
this method is called to retrieve the current configuration for this component. |
|
void |
quit()
Using this method, UI components can stop program execution. |
|
void |
run(java.lang.String[] arguments)
starts the core's activities; called by main, not relevant for components accessing the core. |
|
boolean |
setActiveComponentClass_Input(java.lang.Class<InputComponent> newComponentClass_Input)
set the active Input component to a new object of the given class |
|
boolean |
setActiveComponentClass_Output(java.lang.Class<OutputComponent> newComponentClass_Output)
set the active Output component to a new object of the given class |
|
boolean |
setActiveComponentClass_Replacer(java.lang.Class<ReplacerComponent> newComponentClass_Replacer)
set the active Replacer component to a new object of the given class |
|
boolean |
setActiveComponentClass_UI(java.lang.Class<UIComponent> newComponentClass_UI)
set the active UI component to a new object of the given class |
|
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 Core()
Method Detail |
---|
public void quit()
public java.lang.Class<InputComponent> getActiveComponentClass_Input()
public java.lang.Class<ReplacerComponent> getActiveComponentClass_Replacer()
public java.lang.Class<OutputComponent> getActiveComponentClass_Output()
public java.lang.Class<UIComponent> getActiveComponentClass_UI()
public boolean setActiveComponentClass_Input(java.lang.Class<InputComponent> newComponentClass_Input)
newComponentClass_Input
- the class for the new Input component object. If null, the call has no effect.
public boolean setActiveComponentClass_Replacer(java.lang.Class<ReplacerComponent> newComponentClass_Replacer)
newComponentClass_Replacer
- the class for the new Replacer component object. If null, the call has no effect.
public boolean setActiveComponentClass_Output(java.lang.Class<OutputComponent> newComponentClass_Output)
newComponentClass_Output
- the class for the new Output component object. If null, the call has no effect.
public boolean setActiveComponentClass_UI(java.lang.Class<UIComponent> newComponentClass_UI)
newComponentClass_UI
- the class for the new UI component object. If null, the call has no effect.
public <T> java.lang.Class<T>[] getAvailableComponentClasses(java.lang.Class<T> desiredClass)
desiredClass
- The method will only return those classes which are an instance of desiredClass.
For example, if you want to get only UI components,
your call would be getAvailableComponentClasses(UIComponent.class)
,
for all components providing UI configuration,
use Configurable_UIAccess.class
as parameter,
if you simply want all components, the argument would be Component.class
.
public void run(java.lang.String[] arguments)
arguments
- all command line arguments that haven't been dealt with in mainpublic 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 settingspublic NamedDataSet getConfiguration()
Configurable
getConfiguration
in interface Configurable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |