All Packages Class Hierarchy This Package Previous Next Index
Class bea.jolt.beans.awt.JoltList
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.List
|
+----bea.jolt.beans.awt.JoltList
- public class JoltList
- extends List
- implements JoltOutputListener, ItemListener
This is a Jolt-aware extension of java.awt.List, which is "linked"
to a specific Jolt field by its JoltFieldName property. It can be
wired up with JoltServiceBeans in two ways:
- JoltList contains parts of the input for a service
- JoltList displays output from a service.
In the first case a JoltServiceBean is listening to events raised
by a JoltList. JoltList sends JoltInputEvents to its listeners
(typically JoltServiceBeans) when the selection in the listbox
changes. The JoltInputEvent in this case is populated with the
single value of the selected item.
If JoltList is used to display the output of a service
JoltList listens to JoltOutputEvents from JoltServiceBeans and
updates its contents accordingly with the ocurrences of the Jolt
field it is linked to.
-
JoltList()
- Constructor
-
addJoltInputListener(JoltInputListener)
- Registration method for JoltInput listeners.
-
getItems()
- Get the selected items corresponding to this JoltList.
-
getJoltFieldName()
- Get the Jolt field name corresponding to this JoltList.
-
getJoltInputEvent()
-
Get the current Jolt Input Event object
that was sent for serviceReturned.
-
getOccurrenceIndex()
- Get the occurrence index of the field represented by this
JoltList.
-
itemStateChanged(ItemEvent)
- The state of the JoltList changed, generate a JoltInputEvent
and notify event listeners.
-
removeJoltInputListener(JoltInputListener)
- This method is used to unregister JoltInput listeners.
-
serviceReturned(JoltOutputEvent)
- Event handler for JoltOutputEvents.
-
setItems(String[])
- Set the selected items corresponding to this JoltList.
-
setJoltFieldName(String)
- Set the Jolt field name corresponding to this JoltList.
-
setOccurrenceIndex(int)
- Set the occurrence index of the field represented by this
JoltList.
JoltList
public JoltList()
- Constructor
getJoltInputEvent
public JoltInputEvent getJoltInputEvent()
- Get the current Jolt Input Event object
that was sent for serviceReturned.
- Returns:
- The Jolt Input Event.
serviceReturned
public void serviceReturned(JoltOutputEvent evt)
- Event handler for JoltOutputEvents. This method should not
be called directly, it is always called by the JoltServiceBean.
- Parameters:
- evt - The event object.
itemStateChanged
public void itemStateChanged(ItemEvent e)
- The state of the JoltList 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
JoltList.
- Parameters:
- occurrence - The occurrence number.
getOccurrenceIndex
public int getOccurrenceIndex()
- Get the occurrence index of the field represented by this
JoltList.
- Returns:
- The occurrence index.
getJoltFieldName
public String getJoltFieldName()
- Get the Jolt field name corresponding to this JoltList.
- Returns:
- The Jolt field name.
setJoltFieldName
public void setJoltFieldName(String name)
- Set the Jolt field name corresponding to this JoltList.
- Parameters:
- name - The Jolt field name.
getItems
public String[] getItems()
- Get the selected items corresponding to this JoltList.
- Returns:
- The array of selected items.
- Overrides:
- getItems in class List
setItems
public void setItems(String values[])
- Set the selected items corresponding to this JoltList.
- Parameters:
- name - The Jolt field name.
All Packages Class Hierarchy This Package Previous Next Index