Consultor Eletrônico



Kbase 18159: How to detect when a form tab has been clicked in Apptivity
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   03/08/1998
How to detect when a form tab has been clicked in Apptivity

The following code, when added to a form#.java, will allow the user
to detect when the form (abTabbedPanel) is clicked, and perform
some action at that point e.g. set a filter on a data source.

The code which does this can be found under the method update.

public boolean update( Object observed, Object arg )
{
if ( arg instanceof abHint )
{
if ( ((abHint)arg).reason == abGUIConst.ACTIVATED )
{
System.out.println("Form 1 ACTIVATED");
}
else if ( ((abHint)arg).reason == abGUIConst.DEACTIVATED )
{
System.out.println("Form 1 DEACTIVATED");
}
}
return super.update(observed, arg);
}

PES 08/03/98 Apptivity 2.1