de.unihalle.informatik.Alida.dataio.provider.swing
Class ALDCollectionDataIOSwing.CollectionConfigButton

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.ALDCollectionDataIOSwing.CollectionConfigButton
All Implemented Interfaces:
ALDSwingValueChangeListener, java.util.EventListener
Enclosing class:
ALDCollectionDataIOSwing

private class ALDCollectionDataIOSwing.CollectionConfigButton
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  ALDCollectionDataIOSwing.CollectionConfigWindow confWin
          Collection configuration window.
 
Fields inherited from class de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeReporter
listenerList
 
Constructor Summary
ALDCollectionDataIOSwing.CollectionConfigButton(java.lang.reflect.Field field, java.lang.Class<?> cl, java.lang.Object obj, ALDParameterDescriptor descr)
          Constructor.
 
Method Summary
 javax.swing.JButton 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)
          Sets new values in 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 ALDCollectionDataIOSwing.CollectionConfigWindow confWin
Collection configuration window.

Constructor Detail

ALDCollectionDataIOSwing.CollectionConfigButton

public ALDCollectionDataIOSwing.CollectionConfigButton(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 with additional information.
Method Detail

getJComponent

public javax.swing.JButton 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)
Gets the data from the configuration window.

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

setValue

public void setValue(java.lang.reflect.Field field,
                     java.lang.Class<?> cl,
                     java.lang.Object value)
Sets new values in configuration window.

Parameters:
field - Field of collection.
cl - Class of collection.
value - New value.