private class ALDOperatorDataIOSwing.OperatorHierarchyConfigPanel.AbstrOpClassPanel extends ALDSwingComponent implements ActionListener, ItemListener, ALDSwingValueChangeListener
| Modifier and Type | Field and Description |
|---|---|
private Collection<Class> |
availableClasses
List of available classes.
|
private ALDSwingComponentComboBox |
classSelection
Combobox containing available classes to select.
|
private JButton |
configButton
Button to open configuration window.
|
private HashMap<Class,ALDOperatorDataIOSwing.OperatorConfigPanel> |
configWins
Hashmap to store configuration windows for classes.
|
private JPanel |
mainPanel
Main panel.
|
protected ALDParameterDescriptor |
paramDescriptor
Descriptor of the associated (operator) parameter.
|
private HashMap<String,Class> |
shortNames
Hashmap to remember short class names.
|
listenerList| Constructor and Description |
|---|
AbstrOpClassPanel(Field field,
Class<?> cl,
Object obj,
ALDParameterDescriptor descr)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
JComponent |
getJComponent()
Method to request the provider's GUI element.
|
void |
handleValueChangeEvent(ALDSwingValueChangeEvent event)
Method which is called on event occurence.
|
void |
itemStateChanged(ItemEvent e) |
Object |
readData(Field field,
Class<?> cl)
Function to read parameter values from GUI.
|
HashMap<ALDOpParameterDescriptor,String> |
setValue(Field field,
Class<?> cl,
ALDSwingComponent guiElement,
Object value) |
addValueChangeEventListener, fireALDSwingValueChangeEvent, removeValueChangeEventListenerprivate JPanel mainPanel
private ALDSwingComponentComboBox classSelection
private JButton configButton
private Collection<Class> availableClasses
private HashMap<Class,ALDOperatorDataIOSwing.OperatorConfigPanel> configWins
protected ALDParameterDescriptor paramDescriptor
public AbstrOpClassPanel(Field field, Class<?> cl, Object obj, ALDParameterDescriptor descr)
field - Field of associated object.cl - Class of associated object.obj - Current value of object, maybe null.descr - Optional descriptor for additional information.public HashMap<ALDOpParameterDescriptor,String> setValue(Field field, Class<?> cl, ALDSwingComponent guiElement, Object value) throws ALDDataIOProviderException
ALDDataIOProviderExceptionpublic Object readData(Field field, Class<?> cl) throws ALDDataIOProviderException
field - Field of object.cl - Class of object.ALDDataIOProviderExceptionpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void itemStateChanged(ItemEvent e)
itemStateChanged in interface ItemListenerpublic void handleValueChangeEvent(ALDSwingValueChangeEvent event)
ALDSwingValueChangeListenerhandleValueChangeEvent in interface ALDSwingValueChangeListenerevent - Event to be handled.public JComponent getJComponent()
ALDSwingComponentgetJComponent in class ALDSwingComponentpublic void disableComponent()
ALDSwingComponentdisableComponent in class ALDSwingComponentpublic void enableComponent()
ALDSwingComponentenableComponent in class ALDSwingComponentpublic void dispose()
ALDSwingComponentdispose in class ALDSwingComponentCopyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.