public class BooleanParameter extends java.lang.Object implements IParameter, java.awt.event.ActionListener
Constructor and Description |
---|
BooleanParameter(boolean bValue)
Creates a
BooleanParameter object with the specified boolean value. |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
If the value of the checkbox that represents this parameter in the gui has been changed,
also the value of this
BooleanParameter as adapted. |
javax.swing.JCheckBox |
getImageEffectGUIElement(java.lang.String pLabelText)
Returns gui element of a
BooleanParameter as it is needed for an image effect. |
boolean |
getValue()
Returns the boolean value that is represented by this
BooleanParameter object. |
void |
setValue(boolean bValue)
Sets the boolean value that should be represented by this
BooleanParameter object. |
boolean |
setValue(java.lang.String pValue)
Sets the boolean value that should be represented by this
BooleanParameter object. |
public BooleanParameter(boolean bValue)
BooleanParameter
object with the specified boolean value.bValue
- The boolean value that should be represented by this BooleanParameter
object.public void setValue(boolean bValue)
BooleanParameter
object.bValue
- The boolean value that should be represented by this BooleanParameter
object.public boolean setValue(java.lang.String pValue)
BooleanParameter
object.
The boolean value is representated by a string. 1, t, true (independant of the case) are
mapped to true. 0, f, false are mapped to false.setValue
in interface IParameter
pValue
- The string value representing the boolean that should be represented by this BooleanParameter
object.public boolean getValue()
BooleanParameter
object.BooleanParameter
object.public javax.swing.JCheckBox getImageEffectGUIElement(java.lang.String pLabelText)
BooleanParameter
as it is needed for an image effect.
In this case it is a JCheckBox
object.pLabelText
- The text for the label of the checkbox as string.BooleanParameter
as it is needed for an image effect.public void actionPerformed(java.awt.event.ActionEvent e)
BooleanParameter
as adapted.actionPerformed
in interface java.awt.event.ActionListener
e
- The event that triggered the value change.