AfterControlChange - Java

<< Click to Display Table of Contents >>

Navigation:  Events Generated by the Java Control >

AfterControlChange - Java

Previous pageReturn to chapter overviewNext page

[GUI version only, Interactive Edition and above]

A Control changed its value, i.e. the content of a Control was edited by the user or the value of an associated Field was changed by code.

Evaluating this event means, that your application is informed about every single keystroke or mouse-click, which modifies a Control's content.

If you are working with Fields that are associated with controls - as recommended - your application should not take care of this event.

This is one of the few events where CloseDoc() may be called while processing the event.

The event is not fired, if you set the value of a Control by code.

public void AfterControlChange(

VPEObjectEvent e

)

VPEObjectEvent e

The VPE object event is defined as:

public class VPEObjectEvent extends java.util.EventObject{

private TVPEObject VpeObject;

 

public TVPEObject getVpeObject() {

  return VpeObject;

 }

 

public VPEObjectEvent(VpeControl source, TVPEObject VpeObject) {

  super(source);

  this.VpeObject = VpeObject;

 }

}

 

VpeObject is the VPE object that fired the event

Remarks:

If you change the value of a Control by code, the AfterControlChange event is not fired. But if the Control is associated with a Field, the event AfterFieldChange is fired.

Vice versa, if you change the value of a Field by code, the AfterFieldChange event is not fired, but any Controls associated with the Field will fire the event AfterControlChange.

 

See also:

Interactive Documents