All Packages Class Hierarchy This Package Previous Next Index
Class bea.jolt.beans.awt.JoltCheckbox
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Checkbox
|
+----bea.jolt.beans.awt.JoltCheckbox
- public class JoltCheckbox
- extends Checkbox
- implements ItemListener
This is a Jolt-aware extension of java.awt.Checkbox, which is "linked"
to a specific Jolt field by its JoltFieldName property. It can be
wired up with JoltServiceBeans to contain parts of the input for
a service.
A JoltServiceBean is listening to events raised
by a JoltCheckbox. JoltCheckbox sends JoltInputEvents to its listeners
(typically JoltServiceBeans) when the selection in the checkbox
changes. The JoltInputEvent in this case is populated with the
"true" or "false" value if the box is checked or unchecked respectively.
-
JoltCheckbox()
- Constructor
-
addJoltInputListener(JoltInputListener)
- Registration method for JoltInput listeners.
-
getFalseValue()
- Get the String value which is represented by this JoltCheckbox
if the box is unchecked.
-
getJoltFieldName()
- Get the Jolt field name corresponding to this JoltCheckbox.
-
getJoltInputEvent()
-
Get the current Jolt Input Event object
that was sent for itemStateChanged.
-
getOccurrenceIndex()
- Get the occurrence index of the field represented by this
JoltCheckbox.
-
getTrueValue()
- Get the String value which is represented by this JoltCheckbox
if the box is checked.
-
itemStateChanged(ItemEvent)
- The state of the Checkbox changed, generate a JoltInputEvent
and notify event listeners.
-
removeJoltInputListener(JoltInputListener)
- This method is used to unregister JoltInput listeners.
-
setFalseValue(String)
- Set the field value if the box is unchecked.
-
setJoltFieldName(String)
- Set the Jolt field name corresponding to this JoltCheckbox.
-
setOccurrenceIndex(int)
- Set the occurrence index of the field represented by this
JoltCheckbox.
-
setTrueValue(String)
- Set the field value if the box is checked.
JoltCheckbox
public JoltCheckbox()
- Constructor
getJoltInputEvent
public JoltInputEvent getJoltInputEvent()
- Get the current Jolt Input Event object
that was sent for itemStateChanged.
- Returns:
- The Jolt Input Event.
itemStateChanged
public void itemStateChanged(ItemEvent e)
- The state of the Checkbox changed, generate a JoltInputEvent
and notify event listeners.
- Parameters:
- e - The ItemEvent.
addJoltInputListener
public synchronized void addJoltInputListener(JoltInputListener l)
- Registration method for JoltInput listeners.
- Parameters:
- l - The listener to be added.
removeJoltInputListener
public synchronized void removeJoltInputListener(JoltInputListener l)
- This method is used to unregister JoltInput listeners.
- Parameters:
- l - The listener to be removed.
setOccurrenceIndex
public void setOccurrenceIndex(int occurrence)
- Set the occurrence index of the field represented by this
JoltCheckbox.
- Parameters:
- occurrence - The occurrence number.
getOccurrenceIndex
public int getOccurrenceIndex()
- Get the occurrence index of the field represented by this
JoltCheckbox.
getJoltFieldName
public String getJoltFieldName()
- Get the Jolt field name corresponding to this JoltCheckbox.
- Returns:
- The Jolt field name.
setJoltFieldName
public void setJoltFieldName(String name)
- Set the Jolt field name corresponding to this JoltCheckbox.
- Parameters:
- name - The Jolt field name.
getTrueValue
public String getTrueValue()
- Get the String value which is represented by this JoltCheckbox
if the box is checked.
- Returns:
- The true value.
setTrueValue
public void setTrueValue(String value)
- Set the field value if the box is checked.
- Parameters:
- value - The true value.
getFalseValue
public String getFalseValue()
- Get the String value which is represented by this JoltCheckbox
if the box is unchecked.
- Returns:
- The false value.
setFalseValue
public void setFalseValue(String value)
- Set the field value if the box is unchecked.
- Parameters:
- value - The false value.
All Packages Class Hierarchy This Package Previous Next Index