All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class bea.jolt.beans.swing11.JoltCheckbox

bea.jolt.beans.swing11.JoltCheckbox

public class JoltCheckbox
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.


Constructor Index

 o JoltCheckbox()
Constructor

Method Index

 o addJoltInputListener(JoltInputListener)
Registration method for JoltInput listeners.
 o getFalseValue()
Get the String value which is represented by this JoltCheckbox if the box is unchecked.
 o getJoltFieldName()
Get the Jolt field name corresponding to this JoltCheckbox.
 o getJoltInputEvent()
Get the current Jolt Input Event object that was sent for itemStateChanged.
 o getOccurrenceIndex()
Get the occurrence index of the field represented by this JoltCheckbox.
 o getTrueValue()
Get the String value which is represented by this JoltCheckbox if the box is checked.
 o itemStateChanged(ItemEvent)
The state of the Checkbox changed, generate a JoltInputEvent and notify event listeners.
 o removeJoltInputListener(JoltInputListener)
This method is used to unregister JoltInput listeners.
 o setFalseValue(String)
Set the field value if the box is unchecked.
 o setJoltFieldName(String)
Set the Jolt field name corresponding to this JoltCheckbox.
 o setOccurrenceIndex(int)
Set the occurrence index of the field represented by this JoltCheckbox.
 o setTrueValue(String)
Set the field value if the box is checked.

Constructors

 o JoltCheckbox
 public JoltCheckbox()
Constructor

Methods

 o getJoltInputEvent
 public JoltInputEvent getJoltInputEvent()
Get the current Jolt Input Event object that was sent for itemStateChanged.

Returns:
The Jolt Input Event.
 o itemStateChanged
 public void itemStateChanged(ItemEvent e)
The state of the Checkbox changed, generate a JoltInputEvent and notify event listeners.

Parameters:
e - The ItemEvent.
 o addJoltInputListener
 public synchronized void addJoltInputListener(JoltInputListener l)
Registration method for JoltInput listeners.

Parameters:
l - The listener to be added.
 o removeJoltInputListener
 public synchronized void removeJoltInputListener(JoltInputListener l)
This method is used to unregister JoltInput listeners.

Parameters:
l - The listener to be removed.
 o setOccurrenceIndex
 public void setOccurrenceIndex(int occurrence)
Set the occurrence index of the field represented by this JoltCheckbox.

Parameters:
occurrence - The occurrence number.
 o getOccurrenceIndex
 public int getOccurrenceIndex()
Get the occurrence index of the field represented by this JoltCheckbox.

 o getJoltFieldName
 public String getJoltFieldName()
Get the Jolt field name corresponding to this JoltCheckbox.

Returns:
The Jolt field name.
 o setJoltFieldName
 public void setJoltFieldName(String name)
Set the Jolt field name corresponding to this JoltCheckbox.

Parameters:
name - The Jolt field name.
 o getTrueValue
 public String getTrueValue()
Get the String value which is represented by this JoltCheckbox if the box is checked.

Returns:
The true value.
 o setTrueValue
 public void setTrueValue(String value)
Set the field value if the box is checked.

Parameters:
value - The true value.
 o getFalseValue
 public String getFalseValue()
Get the String value which is represented by this JoltCheckbox if the box is unchecked.

Returns:
The false value.
 o 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