de.unihalle.informatik.Alida.batch.provider.input.swing
Class ALDBatchInputNativeArray1DSwing

java.lang.Object
  extended by de.unihalle.informatik.Alida.batch.provider.input.swing.ALDBatchInputNativeArray1DSwing
All Implemented Interfaces:
ALDBatchInputIterator, ALDBatchInputIteratorSwing

@ALDBatchInputProvider(priority=1)
public class ALDBatchInputNativeArray1DSwing
extends java.lang.Object
implements ALDBatchInputIteratorSwing

Implementation of ALDBatchInputIteratorSwing for native 1D arrays.

Author:
moeller

Constructor Summary
ALDBatchInputNativeArray1DSwing()
           
 
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 batch data input.
 java.util.Collection<java.lang.Class<?>> providedClasses()
          Interface method to announce class for which IO is provided for field is ignored.
 java.util.Iterator<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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ALDBatchInputNativeArray1DSwing

public ALDBatchInputNativeArray1DSwing()
Method Detail

providedClasses

public java.util.Collection<java.lang.Class<?>> providedClasses()
Interface method to announce class for which IO is provided for field is ignored.

Specified by:
providedClasses in interface ALDBatchInputIterator
Returns:
Collection of classes provided

createGUIElement

public ALDSwingComponent createGUIElement(java.lang.reflect.Field field,
                                          java.lang.Class<?> cl,
                                          java.lang.Object obj,
                                          ALDParameterDescriptor descr)
                                   throws ALDBatchIOProviderException
Description copied from interface: ALDBatchInputIteratorSwing
Interface method to create a GUI element for batch data input.

Specified by:
createGUIElement in interface ALDBatchInputIteratorSwing
cl - Class of object to be returned.
obj - The value of this object to be set as inital value.
descr - Optional descriptor for additional information.
Returns:
Alida GUI component to input batch values.
Throws:
ALDBatchIOProviderException

setValue

public void setValue(java.lang.reflect.Field field,
                     java.lang.Class<?> cl,
                     ALDSwingComponent guiElement,
                     java.lang.Object value)
              throws ALDBatchIOProviderException
Description copied from interface: ALDBatchInputIteratorSwing
Interface method for setting new parameter values in GUI.

Specified by:
setValue in interface ALDBatchInputIteratorSwing
Parameters:
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.
Throws:
ALDBatchIOProviderException

readData

public java.util.Iterator<java.lang.Object> readData(java.lang.reflect.Field field,
                                                     java.lang.Class<?> cl,
                                                     ALDSwingComponent guiElement)
Description copied from interface: ALDBatchInputIteratorSwing
Interface method for getting parameter values via a GUI element.

Specified by:
readData in interface ALDBatchInputIteratorSwing
Parameters:
field - Field associated with object to be returned.
cl - Class of object to be returned.
guiElement - Component from where to read data.
Returns:
Iterator for values read from source, might be null.


Copyright © 2010-2014 Martin Luther University Halle-Wittenberg. All Rights Reserved.