|
||||||||||
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.ALDParametrizedClassDataIOSwing
@ALDDataIOProvider public class ALDParametrizedClassDataIOSwing
Class for generic handling of parameterized classes in GUI.
This class implements the ALDDataIOSwing
interface for
parametrized classes. It provides a button linked to a configuration
window that subsumes all parameters of the class to configure.
Constructor Summary | |
---|---|
ALDParametrizedClassDataIOSwing()
Default constructor. |
Method Summary | |
---|---|
de.unihalle.informatik.Alida.dataio.provider.swing.ALDParametrizedClassDataIOSwing.ParametrizedClassPanel |
createGUIElement(Field field,
Class<?> cl,
Object obj,
ALDParameterDescriptor descr)
Interface method to create a GUI element for data input. |
Collection<Class<?>> |
providedClasses()
Interface method to announce class for which IO is provided for. |
Object |
readData(Field field,
Class<?> cl,
ALDSwingComponent guiElement)
Interface method for getting parameter values via a GUI element. |
void |
setValue(Field field,
Class<?> cl,
ALDSwingComponent guiElement,
Object value)
Interface method for setting new parameter values in GUI. |
JComponent |
writeData(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 |
Constructor Detail |
---|
public ALDParametrizedClassDataIOSwing()
Method Detail |
---|
public Collection<Class<?>> providedClasses()
providedClasses
in interface ALDDataIO
public de.unihalle.informatik.Alida.dataio.provider.swing.ALDParametrizedClassDataIOSwing.ParametrizedClassPanel createGUIElement(Field field, Class<?> cl, Object obj, ALDParameterDescriptor descr) throws ALDDataIOProviderException
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.
ALDDataIOProviderException
public void setValue(Field field, Class<?> cl, ALDSwingComponent guiElement, 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 Object readData(Field field, 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 JComponent writeData(Object obj, ALDParameterDescriptor descr)
ALDDataIOSwing
writeData
in interface ALDDataIOSwing
obj
- Object to be displayed or saved.descr
- Optional descriptor to hand over additional information.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |