All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class bea.jolt.beans.swing11.JoltChoice

bea.jolt.beans.swing11.JoltChoice

public class JoltChoice
implements ItemListener
This is a Jolt-aware extension of java.awt.Choice, 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 JoltChoice. JoltChoice sends JoltInputEvents to its listeners (typically JoltServiceBeans) when the selection in the choicebox changes. The JoltInputEvent in this case is populated with the single value of the selected item.


Constructor Index

 o JoltChoice()
Constructor

Method Index

 o addJoltInputListener(JoltInputListener)
Registration method for JoltInput listeners.
 o getItems()
Get the selected items corresponding to this JoltChoice.
 o getJoltFieldName()
Get the Jolt field name corresponding to this JoltChoice.
 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 JoltChoice.
 o itemStateChanged(ItemEvent)
The state of the Choice changed, generate a JoltInputEvent and notify event listeners.
 o removeJoltInputListener(JoltInputListener)
This method is used to unregister JoltInput listeners.
 o setItems(String[])
Set the selected items corresponding to this JoltChoice.
 o setJoltFieldName(String)
Set the Jolt field name corresponding to this JoltChoice.
 o setOccurrenceIndex(int)
Set the occurrence index of the field represented by this JoltChoice.

Constructors

 o JoltChoice
 public JoltChoice()
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 Choice 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 JoltChoice.

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

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

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

Parameters:
name - The Jolt field name.
 o getItems
 public String[] getItems()
Get the selected items corresponding to this JoltChoice.

Returns:
The array of selected items.
 o setItems
 public void setItems(String values[])
Set the selected items corresponding to this JoltChoice.

Parameters:
name - The Jolt field name.

All Packages  Class Hierarchy  This Package  Previous  Next  Index