public class ALDBatchInputManagerSwing extends ALDBatchInputManager
For data input, it essentially looks up the correct provider for GUI-based execution using the method of its super class and invokes its method.
It does its work in collaboration with
ALDBatchInputIterator.
| Modifier and Type | Class and Description |
|---|---|
static class |
ALDBatchInputManagerSwing.ProviderInteractionLevel
Levels to enable/disable interactive provider behaviour.
|
debug, mapTable| Modifier and Type | Method and Description |
|---|---|
ALDSwingComponent |
createGUIElement(Field field,
Class<?> cl,
Object obj,
ALDParameterDescriptor descr)
Create a gui element which may be used to request the user to input data.
|
static ALDBatchInputManagerSwing |
getInstance()
Return the single instance of this class
|
ALDBatchInputManagerSwing.ProviderInteractionLevel |
getProviderInteractionLevel()
Returns the current level of provider interaction.
|
boolean |
isTriggerValueChangeEvents()
Returns value of event trigger flag.
|
Iterator<Object> |
readData(Field field,
Class<?> cl,
ALDSwingComponent guiElement)
Reads data of given class from a specified source.
|
void |
setProviderInteractionLevel(ALDBatchInputManagerSwing.ProviderInteractionLevel level)
Set the level of provider interaction which is allowed.
|
void |
setTriggerValueChangeEvents(boolean b)
Set the value change event trigger flag.
|
getProvider, initMapTable, providerAvailablepublic static ALDBatchInputManagerSwing getInstance()
public ALDBatchInputManagerSwing.ProviderInteractionLevel getProviderInteractionLevel()
public void setProviderInteractionLevel(ALDBatchInputManagerSwing.ProviderInteractionLevel level)
level - New level of interaction providers have to obey.public boolean isTriggerValueChangeEvents()
public void setTriggerValueChangeEvents(boolean b)
b - New value of the event trigger flag.public ALDSwingComponent createGUIElement(Field field, Class<?> cl, Object obj, ALDParameterDescriptor descr) throws ALDBatchIOException
This element is later forwarded to readData to
extract the data.
cl - Class of data to be read.obj - The value of this object to set as inital value.ALDBatchIOExceptionpublic Iterator<Object> readData(Field field, Class<?> cl, ALDSwingComponent guiElement) throws ALDBatchIOException
cl - Class of data to be read.guiElement - gui element from where to read data.ALDBatchIOExceptionCopyright © 2010–2015 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.