private class MTBDataIOFileSwing.MTBDataIOFileInPanel extends de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent implements ActionListener, de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeListener
Modifier and Type | Field and Description |
---|---|
private JButton |
buttonEdit
Button to edit loaded data or insert data manually.
|
private JButton |
buttonLoad
Button to load data, e.g., from file or ROI manager.
|
private JButton |
buttonReset
Button to delete currently loaded data.
|
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDParametrizedClassConfigWindow |
confWin
Configuration window to show/edit loaded data.
|
private Object |
data
Currently loaded data set.
|
private ImageIcon |
iconData |
private JLabel |
iconLabel |
private ImageIcon |
iconNoData |
private Vector<Object> |
inModes |
private File |
lastDirectory
Last directory selected by user.
|
private File |
lastFile
Last file selected by user.
|
private JPanel |
mainPanel
Main panel containing all graphical components.
|
private JComboBox |
modeSelection |
private Class<?> |
myClass |
private Field |
myField |
private de.unihalle.informatik.Alida.operator.ALDParameterDescriptor |
paramDescr |
private boolean |
roisAdded |
Constructor and Description |
---|
MTBDataIOFileInPanel(Field field,
Class<?> cla,
Object _data,
de.unihalle.informatik.Alida.operator.ALDParameterDescriptor d)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent evt) |
void |
disableComponent() |
void |
dispose() |
void |
enableComponent() |
Object |
getData()
Returns the data read from GUI or file.
|
JComponent |
getJComponent() |
void |
handleValueChangeEvent(de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeEvent event) |
void |
setValue(Field field,
Class<?> cl,
Object value)
Sets panel to given object value.
|
private JPanel mainPanel
private JComboBox modeSelection
private Object data
private JButton buttonLoad
private JButton buttonEdit
private JButton buttonReset
private JLabel iconLabel
private ImageIcon iconNoData
private ImageIcon iconData
private Class<?> myClass
private Field myField
private de.unihalle.informatik.Alida.operator.ALDParameterDescriptor paramDescr
private boolean roisAdded
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDParametrizedClassConfigWindow confWin
private File lastDirectory
private File lastFile
public MTBDataIOFileInPanel(Field field, Class<?> cla, Object _data, de.unihalle.informatik.Alida.operator.ALDParameterDescriptor d)
field
- Parameter field.cla
- Class of associated parameter object.data
- Default data object.d
- (Operator) parameter descriptor.public JComponent getJComponent()
getJComponent
in class de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent
public Object getData() throws de.unihalle.informatik.Alida.exceptions.ALDDataIOException
de.unihalle.informatik.Alida.exceptions.ALDDataIOException
- Thrown if reading data failed.public void setValue(Field field, Class<?> cl, Object value) throws de.unihalle.informatik.Alida.exceptions.ALDDataIOException
field
- Field of data.cl
- Class of data.value
- Value to set.de.unihalle.informatik.Alida.exceptions.ALDDataIOException
- Thrown if setting data failed.public void actionPerformed(ActionEvent evt)
actionPerformed
in interface ActionListener
public void handleValueChangeEvent(de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeEvent event)
handleValueChangeEvent
in interface de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeListener
public void disableComponent()
disableComponent
in class de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent
public void enableComponent()
enableComponent
in class de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent
public void dispose()
dispose
in class de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.