Class TabIndexHelper

java.lang.Object
com.saperion.ngc.iform.TabIndexHelper

public class TabIndexHelper extends Object
Helper class used to set tab-index values on components. The tab-indexes of different forms are separated by offsets to avoid duplicate index values.
  • Constructor Details

    • TabIndexHelper

      public TabIndexHelper()
  • Method Details

    • getForSession

      public static TabIndexHelper getForSession()
      Returns:
      the TabIndexHelper for the current session
    • registerForm

      public void registerForm(String formName)
      Registers a form and associates an offset to it.
      Parameters:
      formName - name of the form to register
    • unregisterForm

      public void unregisterForm(String formName)
      Unregisters a form.
      Parameters:
      formName - name of the form to unregister
    • setTabIndex

      public static void setTabIndex(org.zkoss.zk.ui.HtmlBasedComponent component, com.saperion.ngc.iform.xml.PosType pos, IntelligentFormView parent)
      Sets the tab-index property of the component as defined in the component's position.
      Parameters:
      component - the component which will get a tab-index
      pos - the position of the component in the form
      parent - the parent form