All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class bea.jolt.beans.swing11.JoltList

bea.jolt.beans.swing11.JoltList

public class JoltList
implements JoltOutputListener
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: 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.


Constructor Index

 o JoltList()
Constructor

Method Index

 o addJoltInputListener(JoltInputListener)
Registration method for JoltInput listeners.
 o getItems()
Get the selected items corresponding to this JoltList.
 o getJoltFieldName()
Get the Jolt field name corresponding to this JoltList.
 o getJoltInputEvent()
Get the current Jolt Input Event object that was sent for serviceReturned.
 o getOccurrenceIndex()
Get the occurrence index of the field represented by this JoltList.
 o itemStateChanged(ItemEvent)
The state of the JoltList changed, generate a JoltInputEvent and notify event listeners.
 o removeJoltInputListener(JoltInputListener)
This method is used to unregister JoltInput listeners.
 o serviceReturned(JoltOutputEvent)
Event handler for JoltOutputEvents.
 o setItems(String[])
Set the selected items corresponding to this JoltList.
 o setJoltFieldName(String)
Set the Jolt field name corresponding to this JoltList.
 o setOccurrenceIndex(int)
Set the occurrence index of the field represented by this JoltList.
 o valueChanged(ListSelectionEvent)

Constructors

 o JoltList
 public JoltList()
Constructor

Methods

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

Returns:
The Jolt Input Event.
 o 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.
 o valueChanged
 public void valueChanged(ListSelectionEvent e)
 o itemStateChanged
 public void itemStateChanged(ItemEvent e)
The state of the JoltList 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 JoltList.

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

Returns:
The occurrence index.
 o getJoltFieldName
 public String getJoltFieldName()
Get the Jolt field name corresponding to this JoltList.

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

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

Returns:
The array of selected items.
 o 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