beautypg.com

Jolttextfield class, Jolttextfield constructor, Jolttextfield methods – HP NonStop G-Series User Manual

Page 245: Getoccurrenceindex

background image

getOccurrenceIndex

The getOccurrenceIndex() method gets the occurrence index of the field represented by this
JoltList.

int getOccurrenceIndex()

Usage Gets the occurrence index of this field.

JoltTextField Class

java.lang.Object
|
+----java.awt.Component
|
+----java.awt.TextComponent
|
+----java.awt.TextField
|
+----bea.jolt.beans.awt.JoltTextField

A Jolt aware extension of java.awt.TextField that is linked to a specific field in the Jolt buffer
by its JoltFieldName property. If the field occurs multiple times, the occurrence 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. When used to display the output of a
service, JoltTextField listens to JoltOutputEvents from JoltServiceBeans and updates its
contents according to the occurrences of the field to which it is linked.

JoltTextField Constructor

The JoltTextField constructor creates an instance of the JoltTextField.

JoltTextField Methods

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