de.unihalle.informatik.Alida.dataio.provider.swing
Class ALDFileDirectoryDataIOSwing.FileDirectoryDataIOPanel

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.ALDFileDirectoryDataIOSwing.FileDirectoryDataIOPanel
All Implemented Interfaces:
ALDSwingValueChangeListener, ActionListener, EventListener
Enclosing class:
ALDFileDirectoryDataIOSwing

protected class ALDFileDirectoryDataIOSwing.FileDirectoryDataIOPanel
extends ALDSwingComponent
implements ActionListener, ALDSwingValueChangeListener

GUI panel for IO of file and directory names.

Author:
moeller

Field Summary
 
Fields inherited from class de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeReporter
listenerList
 
Constructor Summary
protected ALDFileDirectoryDataIOSwing.FileDirectoryDataIOPanel(Field field, Class<?> cl, Object obj)
          Default constructor.
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void disableComponent()
          Method to disable the component, i.e. all graphical elements, to prohibit parameter changes.
 void dispose()
          Releases all resources, i.e. closes all sub-windows.
 void enableComponent()
          Method to enable the component with all graphical elements again.
 JPanel getJComponent()
          Method to request the provider's GUI element.
 void handleValueChangeEvent(ALDSwingValueChangeEvent event)
          Method which is called on event occurence.
 Object readData(Field field, Class<?> cl)
          Returns the contents of the text field.
 boolean representsDirectory()
          Request type of input.
 void setValue(Field field, Class<?> cl, Object value)
          Returns the contents of the text field.
 
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
 

Constructor Detail

ALDFileDirectoryDataIOSwing.FileDirectoryDataIOPanel

protected ALDFileDirectoryDataIOSwing.FileDirectoryDataIOPanel(Field field,
                                                               Class<?> cl,
                                                               Object obj)
Default constructor.

Parameters:
field - Field to consider.
cl - Class to consider.
obj - Default object.
Method Detail

getJComponent

public JPanel 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.

representsDirectory

public boolean representsDirectory()
Request type of input.

Returns:
True, if a directory is represented.

setValue

public void setValue(Field field,
                     Class<?> cl,
                     Object value)
Returns the contents of the text field.

Parameters:
field - Field to consider.
cl - Class to consider.
value - Object value to be set.
Throws:
ALDDataIOProviderException

readData

public Object readData(Field field,
                       Class<?> cl)
                throws ALDDataIOProviderException
Returns the contents of the text field.

Parameters:
field - Field to consider.
cl - Class to consider.
Returns:
Read object.
Throws:
ALDDataIOProviderException

actionPerformed

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

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.

disableComponent

public void disableComponent()
Description copied from class: ALDSwingComponent
Method to disable the component, i.e. all graphical elements, to prohibit parameter changes.

Specified by:
disableComponent in class ALDSwingComponent

enableComponent

public void enableComponent()
Description copied from class: ALDSwingComponent
Method to enable the component with all graphical elements again.

Specified by:
enableComponent in class ALDSwingComponent

dispose

public void dispose()
Description copied from class: ALDSwingComponent
Releases all resources, i.e. closes all sub-windows.

Specified by:
dispose in class ALDSwingComponent


Copyright © 2010–2014 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.