Package org.adempiere.webui
Class AdempiereIdGenerator
java.lang.Object
org.adempiere.webui.AdempiereIdGenerator
- All Implemented Interfaces:
org.zkoss.zk.ui.sys.IdGenerator
Id generator for selenium ide recording.
You don't need this to run ztl or zk jq selector based test script but it would help to code or troubleshoot the test script.
You don't need this to run ztl or zk jq selector based test script but it would help to code or troubleshoot the test script.
DON'T use this for other purpose, you have been warned :)
- Author:
- Carlos Ruiz, hengsin
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Generate an id with just alphanumeric characters This is used for ZkUnitTest that requires predictable iDs, f.e.nextComponentUuid
(org.zkoss.zk.ui.Desktop desktop, org.zkoss.zk.ui.Component comp, org.zkoss.zk.ui.metainfo.ComponentInfo compInfo) nextDesktopId
(org.zkoss.zk.ui.Desktop desktop) nextPageUuid
(org.zkoss.zk.ui.Page page) static void
updateZkLocatorAttribute
(org.zkoss.zk.ui.Component comp) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.zkoss.zk.ui.sys.IdGenerator
nextAnonymousComponentUuid
-
Field Details
-
ZK_LOCATOR_ATTRIBUTE
- See Also:
-
-
Constructor Details
-
AdempiereIdGenerator
public AdempiereIdGenerator()
-
-
Method Details
-
nextComponentUuid
public String nextComponentUuid(org.zkoss.zk.ui.Desktop desktop, org.zkoss.zk.ui.Component comp, org.zkoss.zk.ui.metainfo.ComponentInfo compInfo) - Specified by:
nextComponentUuid
in interfaceorg.zkoss.zk.ui.sys.IdGenerator
-
escapeId
Generate an id with just alphanumeric characters This is used for ZkUnitTest that requires predictable iDs, f.e. Selenium WARNING: it doesn't work well with non-alphanumeric languages f.e. in Russian the translation for bank and account lead to the same id ____- Parameters:
prefix
-- Returns:
-
nextDesktopId
- Specified by:
nextDesktopId
in interfaceorg.zkoss.zk.ui.sys.IdGenerator
-
nextPageUuid
- Specified by:
nextPageUuid
in interfaceorg.zkoss.zk.ui.sys.IdGenerator
-
updateZkLocatorAttribute
public static void updateZkLocatorAttribute(org.zkoss.zk.ui.Component comp)
-