public class LegacyDesktopIdGenerator extends java.lang.Object implements IdGenerator, java.io.Serializable
z_1ym6
or _ga6b
.
It accepts Configuration.isRepeatUuid()
for initial key value.
To use this Id Generator, add system-config in zk.xml.
<system-config> <id-generator-class>org.zkoss.zk.ui.impl.LegacyDesktopIdGenerator</id-generator-class> </system-config>
Constructor and Description |
---|
LegacyDesktopIdGenerator() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
nextDesktopId(Desktop desktop)
Returns the next desktop ID for the specified desktop,
or null to generate the default ID.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nextComponentUuid, nextPageUuid
public java.lang.String nextDesktopId(Desktop desktop)
IdGenerator
Default (if null is returned): ID is generated randomly. In other words, the desktop's ID, by default, is not deterministic. To have a deterministic value, you have to implement this method.
Notice that UUID cannot be empty and can only have alphanumeric characters or underscore (i.e., a-z, A-Z, 0-9, and _).
Also notice that we can retrieve the execution by use of
Desktop.getExecution()
, or Executions.getCurrent()
.
nextDesktopId
in interface IdGenerator
Copyright © 2005-2022 Potix Corporation. All Rights Reserved.