beautypg.com

Addjoltinputlistener, Joltlist methods, Servicereturned – HP NonStop G-Series User Manual

Page 243

background image

this textfield is linked to is specified by the occurrenceIndex property of this bean.

JoltTextField can be connected with JoltServiceBeans in two ways:

JoltTextField contains parts of the input for a service. A JoltServiceBean may listen to
events raised by a JoltTextField. JoltTextField sends JoltInputEvents to its listeners
(typically JoltServiceBeans) when its contents changes.

JoltTextField displays output from a service. In this case, JoltTextField listens to
JoltOutputEvents from JoltServiceBeans and updates its contents according to the
occurrence of the field to which it is linked.

JoltList Methods

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

serviceReturned

addJoltInputListener

removeJoltInputListener

getJoltFieldName

setJoltFieldName

setOccurrenceIndex

getOccurrenceIndex

serviceReturned

The serviceReturned() method is the event handler for JoltOutputEvents.

void serviceReturned(JoltOutputEvent evt)

evt

The event object.

Usage Event handler for JoltOutputEvents. This method should not be called directly. It is
always called by the JoltServiceBean.

addJoltInputListener

The addJoltInputListener() method registers JoltInput listeners.

synchronized void addJoltInputListener(JoltInputListener l)

l

The listener to be added.

Usage Registers JoltInput listeners.