private class ALDCollectionDataIOSwing.CollectionConfigButton extends ALDSwingComponent implements ALDSwingValueChangeListener
This button has a collection configuration window attached to it where specific data is stored and accessable.
Modifier and Type | Field and Description |
---|---|
private JButton |
confButton
Button to open configuration window.
|
private ALDCollectionDataIOSwing.CollectionConfigWindow |
confWin
Collection configuration window.
|
listenerList
Constructor and Description |
---|
CollectionConfigButton(Field field,
Class<?> cl,
Object obj,
ALDParameterDescriptor descr)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
JButton |
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)
Gets the data from the configuration window.
|
void |
setValue(Field field,
Class<?> cl,
Object value)
Sets new values in configuration window.
|
addValueChangeEventListener, fireALDSwingValueChangeEvent, removeValueChangeEventListener
private JButton confButton
private ALDCollectionDataIOSwing.CollectionConfigWindow confWin
public CollectionConfigButton(Field field, Class<?> cl, Object obj, ALDParameterDescriptor descr)
field
- Field of collection.cl
- Class of collection.obj
- Default object.descr
- Optional descriptor with additional information.public JButton getJComponent()
ALDSwingComponent
getJComponent
in class ALDSwingComponent
public Object readData(Field field, Class<?> cl)
field
- Field of collection.cl
- Class of collection.public void setValue(Field field, Class<?> cl, Object value)
field
- Field of collection.cl
- Class of collection.value
- New value.public void handleValueChangeEvent(ALDSwingValueChangeEvent event)
ALDSwingValueChangeListener
handleValueChangeEvent
in interface ALDSwingValueChangeListener
event
- Event to be handled.public void disableComponent()
ALDSwingComponent
disableComponent
in class ALDSwingComponent
public void enableComponent()
ALDSwingComponent
enableComponent
in class ALDSwingComponent
public void dispose()
ALDSwingComponent
dispose
in class ALDSwingComponent
Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.