public class ALDParametrizedClassConfigWindow extends ALDParameterPanelParent implements ActionListener
listenerList| Constructor and Description |
|---|
ALDParametrizedClassConfigWindow(Class<?> c)
Default constructor.
|
ALDParametrizedClassConfigWindow(Object obj)
Default constructor.
|
ALDParametrizedClassConfigWindow(Object obj,
boolean noEdit)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
void |
disableComponent()
Disable component to prohibit value changes.
|
void |
dispose()
Dispose component and all sub-windows.
|
void |
enableComponent()
Enable component to allow for value changes.
|
Object |
getParameterValue(boolean isRequired,
boolean isSupplemental,
ALDParameterDescriptor descr)
Method to allow
ALDParameterPanel to request parameter values. |
void |
handleValueChangeEvent(ALDSwingValueChangeEvent event)
Method which is called on event occurence.
|
boolean |
isVisible()
Method to query if configuration window is visible.
|
Object |
readData(Field field,
Class<?> cl)
Extracts current parametrized class configuration.
|
void |
setDisplayOnly(boolean b)
Enable or display parameter editing.
|
void |
setEditable(boolean f)
Disable or enable the elements in the window for editing.
|
void |
setValue(Object obj)
Update parameter values in GUI.
|
void |
setVisible(boolean b)
Show or hide the window.
|
addValueChangeEventListener, fireALDSwingValueChangeEvent, removeValueChangeEventListenerpublic ALDParametrizedClassConfigWindow(Class<?> c)
c - Class associated with this window.public ALDParametrizedClassConfigWindow(Object obj)
obj - Object associated with this window.public ALDParametrizedClassConfigWindow(Object obj, boolean noEdit)
obj - Object to configure.noEdit - If true, no parameter editing is possible.public Object getParameterValue(boolean isRequired, boolean isSupplemental, ALDParameterDescriptor descr)
ALDParameterPanelParentALDParameterPanel to request parameter values.getParameterValue in class ALDParameterPanelParentisRequired - Should be true, if parameter is required.isSupplemental - Should be true, if parameter is supplemental.descr - Descriptor linked to requested parameter.public void disableComponent()
public void enableComponent()
public void dispose()
public void setVisible(boolean b)
throws ALDDataIOProviderException
b - If true, window is displayed, otherwise hidden.ALDDataIOProviderExceptionpublic boolean isVisible()
public void setDisplayOnly(boolean b)
b - If true, editing is disabled, otherwise enabled.public void setEditable(boolean f)
f - If true, editing is possible, otherwise not.public void setValue(Object obj) throws ALDDataIOException
obj - New value of parameter object.ALDDataIOExceptionpublic Object readData(Field field, Class<?> cl) throws ALDDataIOException
field - Field of parametrized class object.cl - Desired class.ALDDataIOExceptionpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void handleValueChangeEvent(ALDSwingValueChangeEvent event)
ALDSwingValueChangeListenerhandleValueChangeEvent in interface ALDSwingValueChangeListenerevent - Event to be handled.Copyright © 2010–2015 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.