|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.metainfo.InitiatorInfo
public class InitiatorInfo
The init directive in the ZUML page.
Note: we resolve the class by using Classes.forNameByThread. In other words, it doesn't support the class defined in zscript. Why not? Since there is no way to run zscript before the init directive (and better performance).
Note: it is not serializable.
Constructor Summary | |
---|---|
InitiatorInfo(java.lang.Class<? extends Initiator> cls,
java.util.Map<java.lang.String,java.lang.String> args)
Constructs with a class, and newInitiator(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page) will
instantiate a new instance. |
|
InitiatorInfo(Initiator init,
java.util.Map<java.lang.String,java.lang.String> args)
Constructs with an initiator that will be reuse each time newInitiator(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page) is called. |
|
InitiatorInfo(java.lang.String clsnm,
java.util.Map<java.lang.String,java.lang.String> args)
Constructs with a class name and newInitiator(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page) will
instantiate a new instance. |
Method Summary | |
---|---|
Initiator |
newInitiator(Evaluator eval,
Page page)
Creates and returns the initiator, or null if no initiator is resolved. |
Initiator |
newInitiator(PageDefinition pgdef,
Page page)
Creates and returns the initiator, or null if no initiator is resolved. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InitiatorInfo(java.lang.Class<? extends Initiator> cls, java.util.Map<java.lang.String,java.lang.String> args)
newInitiator(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page)
will
instantiate a new instance.
args
- the map of arguments. Ignored if null.public InitiatorInfo(java.lang.String clsnm, java.util.Map<java.lang.String,java.lang.String> args) throws java.lang.ClassNotFoundException
newInitiator(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page)
will
instantiate a new instance.
clsnm
- the class name; it could be an EL expression.
java.lang.ClassNotFoundException
public InitiatorInfo(Initiator init, java.util.Map<java.lang.String,java.lang.String> args)
newInitiator(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page)
is called.
Method Detail |
---|
public Initiator newInitiator(PageDefinition pgdef, Page page) throws java.lang.Exception
Initiator.doInit(org.zkoss.zk.ui.Page, java.util.Map)
was called before returned.
java.lang.Exception
public Initiator newInitiator(Evaluator eval, Page page) throws java.lang.Exception
Initiator.doInit(org.zkoss.zk.ui.Page, java.util.Map)
was called before returned.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |