All Packages Class Hierarchy This Package Previous Next Index
Class bea.jolt.beans.swing11.JoltTextField
bea.jolt.beans.swing11.JoltTextField
- public class JoltTextField
- implements JoltOutputListener, ActionListener
This is a Jolt-aware extension of java.awt.TextField that is
"linked" to a specific Jolt field by its JoltFieldName property.
It can be wired up with JoltServiceBeans in two ways:
- JoltTextField contains parts of the input for a service
- JoltTextField displays output from a service.
In the first case JoltTextField sends JoltInputEvents to its listeners
when its contents changes. In the second case a JoltTextField listens
to JoltOutputEvents from JoltServiceBeans and updates its contents
accordingly.
-
JoltTextField()
- Constructor
-
actionPerformed(ActionEvent)
-
-
addJoltInputListener(JoltInputListener)
- Registration method for JoltInput listeners.
-
getJoltFieldName()
- Get the Jolt field name corresponding to this JoltTextField.
-
getJoltInputEvent()
-
Get the current Jolt Input Event object
that was sent for textValueChanged.
-
getOccurrenceIndex()
- Get the occurrence index of the field represented by this
JoltTextField.
-
removeJoltInputListener(JoltInputListener)
- This method is used to unregister JoltInput listeners.
-
serviceReturned(JoltOutputEvent)
- Handler method for JoltOutputEvents.
-
setJoltFieldName(String)
- Set the Jolt field name corresponding to this JoltTextField.
-
setOccurrenceIndex(int)
- Set the occurrence index of the field represented by this
JoltTextField.
-
textValueChanged(TextEvent)
- Event handler for TextEvents.
JoltTextField
public JoltTextField()
- Constructor
getJoltInputEvent
public JoltInputEvent getJoltInputEvent()
- Get the current Jolt Input Event object
that was sent for textValueChanged.
- Returns:
- The Jolt Input Event.
actionPerformed
public void actionPerformed(ActionEvent e)
textValueChanged
public void textValueChanged(TextEvent e)
- Event handler for TextEvents. Should not be called
directly by other objects.
- Parameters:
- e - The event object.
setOccurrenceIndex
public void setOccurrenceIndex(int occurrence)
- Set the occurrence index of the field represented by this
JoltTextField.
- Parameters:
- occurrence - The occurrence number.
getOccurrenceIndex
public int getOccurrenceIndex()
- Get the occurrence index of the field represented by this
JoltTextField.
- Returns:
- The occurrence index.
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.
serviceReturned
public void serviceReturned(JoltOutputEvent evt)
- Handler method for JoltOutputEvents. This method should not
be called directly, it is always called by the JoltServiceBean.
- Parameters:
- evt - The event object.
getJoltFieldName
public String getJoltFieldName()
- Get the Jolt field name corresponding to this JoltTextField.
- Returns:
- The Jolt field name.
setJoltFieldName
public void setJoltFieldName(String name)
- Set the Jolt field name corresponding to this JoltTextField.
- Parameters:
- name - The Jolt field name.
All Packages Class Hierarchy This Package Previous Next Index