de.unihalle.informatik.MiToBo.segmentation.basics
Class SegmentationInitializerDataIOSwing.ConfigureSegmentationButton

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.MiToBo.segmentation.basics.SegmentationInitializerDataIOSwing.ConfigureSegmentationButton
All Implemented Interfaces:
de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeListener, ActionListener, EventListener
Enclosing class:
SegmentationInitializerDataIOSwing

protected class SegmentationInitializerDataIOSwing.ConfigureSegmentationButton
extends de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent
implements ActionListener, de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeListener

GUI element for configuring segmentations.

This button has a configuration window attached to it where data to initialize a segmentation object can be specified.

Author:
moeller

Field Summary
protected  JButton configButton
          Configuration button.
protected  SegmentationInitializerDataIOSwing.SegmentationConfigWin confWin
          Configuration window.
 
Fields inherited from class de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeReporter
listenerList
 
Constructor Summary
protected SegmentationInitializerDataIOSwing.ConfigureSegmentationButton(Field field, Class<?> cl, Object obj, de.unihalle.informatik.Alida.operator.ALDParameterDescriptor descr)
          Constructor.
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void disableComponent()
           
 void dispose()
           
 void enableComponent()
           
 JComponent getJComponent()
           
 void handleValueChangeEvent(de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeEvent event)
           
protected  Object readData(Field field, Class<?> cl)
          Gets the data from the configuration window.
protected  void setValue(Object value)
          Set new values.
 
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

configButton

protected JButton configButton
Configuration button.


confWin

protected SegmentationInitializerDataIOSwing.SegmentationConfigWin confWin
Configuration window.

Constructor Detail

SegmentationInitializerDataIOSwing.ConfigureSegmentationButton

protected SegmentationInitializerDataIOSwing.ConfigureSegmentationButton(Field field,
                                                                         Class<?> cl,
                                                                         Object obj,
                                                                         de.unihalle.informatik.Alida.operator.ALDParameterDescriptor descr)
                                                                  throws de.unihalle.informatik.Alida.exceptions.ALDDataIOException
Constructor.

Throws:
de.unihalle.informatik.Alida.exceptions.ALDDataIOException
Method Detail

readData

protected Object readData(Field field,
                          Class<?> cl)
                   throws de.unihalle.informatik.Alida.exceptions.ALDDataIOException,
                          de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Gets the data from the configuration window.

Parameters:
field - Field of collection.
cl - Class of collection.
Returns:
Current data.
Throws:
de.unihalle.informatik.Alida.exceptions.ALDDataIOException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException

setValue

protected void setValue(Object value)
                 throws de.unihalle.informatik.Alida.exceptions.ALDDataIOException
Set new values.

Parameters:
value - New object data.
Throws:
de.unihalle.informatik.Alida.exceptions.ALDDataIOException

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

getJComponent

public JComponent getJComponent()
Specified by:
getJComponent in class de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent

disableComponent

public void disableComponent()
Specified by:
disableComponent in class de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent

enableComponent

public void enableComponent()
Specified by:
enableComponent in class de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent

dispose

public void dispose()
Specified by:
dispose in class de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent

handleValueChangeEvent

public void handleValueChangeEvent(de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeEvent event)
Specified by:
handleValueChangeEvent in interface de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeListener


Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.