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.
|
Modifier and Type | Field and Description |
---|---|
(package private) static ALDBatchInputManagerSwing |
instance
The singleton instance of this class.
|
private ALDBatchInputManagerSwing.ProviderInteractionLevel |
provInterLevel
Interaction level the providers should obey.
|
private boolean |
triggerValueChangeEvents
Flag to indicate if change value events should be triggered or not.
|
debug, mapTable
Modifier | Constructor and Description |
---|---|
private |
ALDBatchInputManagerSwing()
Private constructor which inits the provider map.
|
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, providerAvailable
private ALDBatchInputManagerSwing.ProviderInteractionLevel provInterLevel
private boolean triggerValueChangeEvents
static final ALDBatchInputManagerSwing instance
private ALDBatchInputManagerSwing()
public 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.ALDBatchIOException
public 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.ALDBatchIOException
Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.