de.unihalle.informatik.Alida.dataio.provider.swing
Class ALDNativeArray2DDataIOSwing.ArrayConfigButton

java.lang.Object
  extended by de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeReporter
      extended by de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent
          extended by de.unihalle.informatik.Alida.dataio.provider.swing.ALDNativeArray2DDataIOSwing.ArrayConfigButton
All Implemented Interfaces:
ALDSwingValueChangeListener, java.util.EventListener
Enclosing class:
ALDNativeArray2DDataIOSwing

private class ALDNativeArray2DDataIOSwing.ArrayConfigButton
extends ALDSwingComponent
implements ALDSwingValueChangeListener

GUI element for configuring collections.

This button has a collection configuration window attached to it where specific data is stored and accessable.

Author:
moeller

Field Summary
private  javax.swing.JButton confButton
          Button to open configuration window.
private  ALDNativeArray2DDataIOSwing.ArrayConfigWindow confWin
          Collection configuration window.
 
Fields inherited from class de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeReporter
listenerList
 
Constructor Summary
ALDNativeArray2DDataIOSwing.ArrayConfigButton(java.lang.reflect.Field field, java.lang.Class<?> cl, java.lang.Object obj, ALDParameterDescriptor descr)
          Constructor.
 
Method Summary
 javax.swing.JComponent getJComponent()
          Method to request the provider's GUI element.
 void handleValueChangeEvent(ALDSwingValueChangeEvent event)
          Method which is called on event occurence.
 java.lang.Object readData(java.lang.reflect.Field field, java.lang.Class<?> cl)
          Gets the data from the configuration window.
 void setValue(java.lang.reflect.Field field, java.lang.Class<?> cl, java.lang.Object value)
          Gets the data from the configuration window.
 
Methods inherited from class de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeReporter
addValueChangeEventListener, fireALDSwingValueChangeEvent, removeValueChangeEventListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

confButton

private javax.swing.JButton confButton
Button to open configuration window.


confWin

private ALDNativeArray2DDataIOSwing.ArrayConfigWindow confWin
Collection configuration window.

Constructor Detail

ALDNativeArray2DDataIOSwing.ArrayConfigButton

public ALDNativeArray2DDataIOSwing.ArrayConfigButton(java.lang.reflect.Field field,
                                                     java.lang.Class<?> cl,
                                                     java.lang.Object obj,
                                                     ALDParameterDescriptor descr)
Constructor.

Parameters:
field - Field of collection.
cl - Class of collection.
obj - Default object.
descr - Optional descriptor for additional information.
Method Detail

getJComponent

public javax.swing.JComponent getJComponent()
Description copied from class: ALDSwingComponent
Method to request the provider's GUI element.

Specified by:
getJComponent in class ALDSwingComponent
Returns:
Component to be integrated in a graphical user interface.

handleValueChangeEvent

public void handleValueChangeEvent(ALDSwingValueChangeEvent event)
Description copied from interface: ALDSwingValueChangeListener
Method which is called on event occurence.

Specified by:
handleValueChangeEvent in interface ALDSwingValueChangeListener
Parameters:
event - Event to be handled.

readData

public java.lang.Object readData(java.lang.reflect.Field field,
                                 java.lang.Class<?> cl)
                          throws ALDDataIOProviderException
Gets the data from the configuration window.

Parameters:
field - Field of collection.
cl - Class of collection.
obj - Default object.
Returns:
Current data.
Throws:
ALDDataIOException
ALDDataIOProviderException

setValue

public void setValue(java.lang.reflect.Field field,
                     java.lang.Class<?> cl,
                     java.lang.Object value)
Gets the data from the configuration window.

Parameters:
field - Field of collection.
cl - Class of collection.
obj - Default object.