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.
-
JoltChoice()
- Constructor
-
addJoltInputListener(JoltInputListener)
- Registration method for JoltInput listeners.
-
getItems()
- Get the selected items corresponding to this JoltChoice.
-
getJoltFieldName()
- Get the Jolt field name corresponding to this JoltChoice.
-
getJoltInputEvent()
-
Get the current Jolt Input Event object
that was sent for itemStateChanged.
-
getOccurrenceIndex()
- Get the occurrence index of the field represented by this
JoltChoice.
-
itemStateChanged(ItemEvent)
- The state of the Choice changed, generate a JoltInputEvent
and notify event listeners.
-
removeJoltInputListener(JoltInputListener)
- This method is used to unregister JoltInput listeners.
-
setItems(String[])
- Set the selected items corresponding to this JoltChoice.
-
setJoltFieldName(String)
- Set the Jolt field name corresponding to this JoltChoice.
-
setOccurrenceIndex(int)
- Set the occurrence index of the field represented by this
JoltChoice.
JoltChoice
public JoltChoice()
- 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 Choice 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
JoltChoice.
- Parameters:
- occurrence - The occurrence number.
getOccurrenceIndex
public int getOccurrenceIndex()
- Get the occurrence index of the field represented by this
JoltChoice.
getJoltFieldName
public String getJoltFieldName()
- Get the Jolt field name corresponding to this JoltChoice.
- Returns:
- The Jolt field name.
setJoltFieldName
public void setJoltFieldName(String name)
- Set the Jolt field name corresponding to this JoltChoice.
- Parameters:
- name - The Jolt field name.
getItems
public String[] getItems()
- Get the selected items corresponding to this JoltChoice.
- Returns:
- The array of selected items.
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