|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zkdemo.test.ViewIdGenerator
public class ViewIdGenerator
Used to see the status when IdGenerator is called.
| Constructor Summary | |
|---|---|
ViewIdGenerator()
|
|
| Method Summary | |
|---|---|
java.lang.String |
nextComponentUuid(Desktop desktop,
Component comp)
Returns the next component UUID for the specified component, or null to generate the default UUID. |
java.lang.String |
nextDesktopId(Desktop desktop)
Returns the next desktop ID for the specified desktop, or null to generate the default ID. |
java.lang.String |
nextPageUuid(Page page)
Returns the next page UUID for the specified page, or null to generate the default UUID. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ViewIdGenerator()
| Method Detail |
|---|
public java.lang.String nextComponentUuid(Desktop desktop,
Component comp)
IdGeneratorDefault (if null is returned): UUID is generated by prefixing a portion of the desktop's ID with a number starting from 0.
This method is called when Component.getUuid()
is called at the first time. It is usually when
the component is attached to a page, unless the application
invokes Component.getUuid() earlier.
nextComponentUuid in interface IdGeneratordesktop - the current desktop (never null)comp - the component (never null)
public java.lang.String nextPageUuid(Page page)
IdGeneratorDefault (if null is returned): UUID is generated by prefixing a portion of the desktop's ID with a number starting from 0.
Note: we can retrieve the execution by use of
Executions.getCurrent().
nextPageUuid in interface IdGeneratorpublic java.lang.String nextDesktopId(Desktop desktop)
IdGeneratorDefault (if null is returned): ID is generated randomly. In other words, the desktop's ID, by default, is not deterministic. To have a deterministric value, you have to implement this method.
Note: we can retrieve the execution by use of
Desktop.getExecution(), or Executions.getCurrent().
nextDesktopId in interface IdGenerator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||