Package com.saperion.ngc.iform
Class TabIndexHelper
java.lang.Object
com.saperion.ngc.iform.TabIndexHelper
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TabIndexHelper
void
registerForm
(String formName) Registers a form and associates an offset to it.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.void
unregisterForm
(String formName) Unregisters a form.
-
Constructor Details
-
TabIndexHelper
public TabIndexHelper()
-
-
Method Details
-
getForSession
- Returns:
- the TabIndexHelper for the current session
-
registerForm
Registers a form and associates an offset to it.- Parameters:
formName
- name of the form to register
-
unregisterForm
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-indexpos
- the position of the component in the formparent
- the parent form
-