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