public interface Specifier<V>
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(ActionListener listener)
Adds a listener which will be informed when the user interacts with
the graphical component to cause a (potential) change in the value.
|
JComponent |
getComponent()
Returns the graphical component that the user can interact with
to supply a value.
|
V |
getSpecifiedValue()
Returns the typed value currently specified by the graphical component.
|
boolean |
isXFill()
Whether the GUI component should fill the available width of a panel.
|
void |
removeActionListener(ActionListener listener)
Removes a listener previously added by
addActionListener . |
void |
setSpecifiedValue(V value)
Sets the typed value represented by the graphical component.
|
void |
submitReport(ReportMap report)
Accepts information about a completed plot that was drawn with
input from this specifier.
|
JComponent getComponent()
The returned component should preferably honour the JComponent
setEnabled
/isEnabled
methods.
V getSpecifiedValue()
void setSpecifiedValue(V value)
getSpecifiedValue
should yield the same result.
However if a value is set which is of the correct type but cannot be represented by this specifier, results are unpredictable.
value
- new valuevoid submitReport(ReportMap report)
report
- report of a plot partially specified by this objectvoid addActionListener(ActionListener listener)
listener
- listener to addvoid removeActionListener(ActionListener listener)
addActionListener
.listener
- listener to removeboolean isXFill()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.