de.enough.polish.ui
Interface TabbedFormListener


public interface TabbedFormListener

Is used to detect internal changes of TabbedForms, e.g. when the user changes the tab of a TabbedForm.

Copyright (c) 2007 Enough Software

 history
        12-Mar-2007 - mkoch creation
 

Since:
J2ME Polish 2.0
Author:
Michael Koch, michael.koch@enough.de

Method Summary
 void notifyTabChangeCompleted(int oldTabIndex, int newTabIndex)
          Called when a tab change in a TabbedForm is completed.
 boolean notifyTabChangeRequested(int oldTabIndex, int newTabIndex)
          Called when a tab change in a TabbedForm is requested.
 

Method Detail

notifyTabChangeRequested

boolean notifyTabChangeRequested(int oldTabIndex,
                                 int newTabIndex)
Called when a tab change in a TabbedForm is requested. This method needs to return true to make tab changes complete. When this method returns false the tab change is cancelled.

Parameters:
oldTabIndex - the index of the current tab
newTabIndex - the index of the requested tab
Returns:
true if a tab change is okay, false otherwise

notifyTabChangeCompleted

void notifyTabChangeCompleted(int oldTabIndex,
                              int newTabIndex)
Called when a tab change in a TabbedForm is completed.

Parameters:
oldTabIndex - the index of the previous tab
newTabIndex - the index of the current tab