<< Click to Display Table of Contents >> RequestControlExit - Java |
[GUI version only, Interactive Edition and above]
The user wishes to remove the focus from the currently focused Control. In response to this event your application can evalute the value of the Control and decide, whether the current value is valid and the Control may lose the focus or not.
public void RequestControlExit(
ControlExitEvent e
)
ControlExitEvent e
The control exit event is defined as:
public class ControlExitEvent extends VPEObjectEvent {
private boolean canExit = true;
public boolean getCanExit()
{
return canExit;
}
public void setCanExit(boolean canExit)
{
this.canExit = canExit;
}
public ControlExitEvent(VpeControl source, TVPEObject VpeObject) {
super(source, VpeObject);
}
}
VpeObject is the VPE object that fired the event
boolean CanExit
is a return-parameter, i.e. you can assign it one of the following values to control the resulting action of VPE:
Value |
Description |
true |
yes, the control may loose the focus |
false |
no, the control may not loose the focus |