beautypg.com

Joltchoice constructor, Joltchoice methods, Addjoltinputlistener – HP NonStop G-Series User Manual

Page 238

background image

+----java.awt.Component
|
+----java.awt.Choice
|
+----bea.jolt.beans.awt.JoltChoice

The JoltChoice class provides a Jolt aware extension of java.awt.Choice that is linked to a
specific field in the input buffer by its JoltFieldName property. If the field occurs multiple
times, the occurrence this choice is linked to is specified by the occurrenceIndex property of
this bean.

It can be connected with JoltServiceBeans to contain parts of the input for a service. A
JoltServiceBean may listen to events raised by a JoltChoice. JoltChoice sends JoltInputEvents
to its listeners (typically JoltServiceBeans) when the selection in the choice changes. The
JoltInputEvent in this case is populated with the single value of the selected item.

JoltChoice Constructor

JoltChoice()

JoltChoice Methods

The following methods are used in conjunction with the JoltChoice class:

addJoltInputListener

removeJoltInputListener

setOccurrenceIndex

getOccurrenceIndex

getJoltFieldName

setJoltFieldName

getItems

setItems

addJoltInputListener

The addJoltInputListener() method registers JoltInput listeners.

synchronized void addJoltInputListener(
JoltInputListener listener)

listener

The listener to be added.

Usage Registers JoltInput listeners.