public abstract class ALDDataIOSwingInitialGUIValueDefaultHandler extends Object implements ALDDataIOSwing
As most providers most likely will set the given object value as initial value in the GUI, this method implements the interface method mimicing exactly this behaviour.
Providers can extend this class and thereby overcoming the need for implementing the method explicitly
Constructor and Description |
---|
ALDDataIOSwingInitialGUIValueDefaultHandler() |
Modifier and Type | Method and Description |
---|---|
Object |
getInitialGUIValue(Field field,
Class<?> cl,
Object obj,
ALDParameterDescriptor descr)
Interface method to request initial GUI values of provider.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createGUIElement, readData, setValue, writeData
providedClasses
public ALDDataIOSwingInitialGUIValueDefaultHandler()
public Object getInitialGUIValue(Field field, Class<?> cl, Object obj, ALDParameterDescriptor descr)
ALDDataIOSwing
Note that while the object is allowed to be null
the descriptor has to be different from null
in any
case.
getInitialGUIValue
in interface ALDDataIOSwing
field
- Field of the parameter the GUI element is linked to.cl
- Class of the parameter and the returned object.obj
- The current value of corresponding parameter.descr
- Optional descriptor to provide additional information.Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.