|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.Alida.dataio.provider.swing.ALDOperatorDataIOSwing
@ALDDataIOProvider public class ALDOperatorDataIOSwing
Data IO provider for operators in GUI.
This class provides GUI elements and functionality for configuring operators in GUI. Note that the class has to operation modes:
ALDOperatorControlFrame
:If you do any changes to this class, please make sure that the panel is always properly built, independent of how the class object in constructed!
Nested Class Summary | |
---|---|
protected class |
ALDOperatorDataIOSwing.OperatorConfigWindow
Configuration window for operator. |
Field Summary | |
---|---|
protected ALDOperator |
op
The operator of this frame, may be abstract! |
protected java.util.LinkedList<ALDOpParameterDescriptor> |
opParamDescrips
List of all parameter descriptors associated with operator. |
protected boolean |
topLevelCall
Local flag to indicate if object is created on OpRunner top level or not; flag modules if deep validation is done or not. |
Constructor Summary | |
---|---|
ALDOperatorDataIOSwing()
Default constructor. |
Method Summary | |
---|---|
ALDSwingComponent |
createGUIElement(java.lang.reflect.Field field,
java.lang.Class<?> cl,
java.lang.Object obj,
ALDParameterDescriptor descr)
Interface method to create a GUI element for data input. |
java.util.Collection<java.lang.Class<?>> |
providedClasses()
Interface method to announce all classes handled by this provider. |
java.lang.Object |
readData(java.lang.reflect.Field field,
java.lang.Class<?> cl,
ALDSwingComponent guiElement)
Interface method for getting parameter values via a GUI element. |
void |
setValue(java.lang.reflect.Field field,
java.lang.Class<?> cl,
ALDSwingComponent guiElement,
java.lang.Object value)
Interface method for setting new parameter values in GUI. |
javax.swing.JComponent |
writeData(java.lang.Object obj,
ALDParameterDescriptor descr)
Interface method for displaying an object in the GUI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean topLevelCall
protected ALDOperator op
protected java.util.LinkedList<ALDOpParameterDescriptor> opParamDescrips
Constructor Detail |
---|
public ALDOperatorDataIOSwing()
Method Detail |
---|
public ALDSwingComponent createGUIElement(java.lang.reflect.Field field, java.lang.Class<?> cl, java.lang.Object obj, ALDParameterDescriptor descr)
ALDDataIOSwing
Optionally an object may be supplied which is assumed to be of
type cl
and used as default.
createGUIElement
in interface ALDDataIOSwing
cl
- Class of object to be returned.obj
- The value of this object to be set as inital value.descr
- Optional descriptor to hand over additional information.
public void setValue(java.lang.reflect.Field field, java.lang.Class<?> cl, ALDSwingComponent guiElement, java.lang.Object value) throws ALDDataIOProviderException
ALDDataIOSwing
setValue
in interface ALDDataIOSwing
field
- Field of parameter object to be handled.cl
- Class of parameter object to be handled.guiElement
- Corresponding GUI element.value
- New value of the parameter.
ALDDataIOProviderException
public java.lang.Object readData(java.lang.reflect.Field field, java.lang.Class<?> cl, ALDSwingComponent guiElement) throws ALDDataIOProviderException
ALDDataIOSwing
readData
in interface ALDDataIOSwing
field
- Field associated with object to be returned.cl
- Class of object to be returned.guiElement
- Component from where to read data.
null
.
ALDDataIOProviderException
public javax.swing.JComponent writeData(java.lang.Object obj, ALDParameterDescriptor descr)
ALDDataIOSwing
writeData
in interface ALDDataIOSwing
obj
- Object to be displayed or saved.descr
- Optional descriptor to hand over additional information.public java.util.Collection<java.lang.Class<?>> providedClasses()
ALDDataIO
providedClasses
in interface ALDDataIO
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |