org.zkoss.zk.ui.metainfo
Class InitiatorInfo

java.lang.Object
  extended by org.zkoss.zk.ui.metainfo.InitiatorInfo

public class InitiatorInfo
extends java.lang.Object

A initiator node on the ZUML page.

Note: we resolve the class by use fo 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).

Author:
tomyeh

Constructor Summary
InitiatorInfo(java.lang.Class cls, java.util.List args)
          Constructs with a class, and newInitiator(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page) will instantiate a new instance.
InitiatorInfo(java.lang.Class cls, 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.List 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(Initiator init, 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.List args)
          Constructs with a class name and newInitiator(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page) will instantiate a new instance.
InitiatorInfo(java.lang.String clsnm, 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
 java.lang.Object[] getArguments(PageDefinition pgdef, Page page)
          Returns the arguments array (by evaluating EL if necessary).
 Initiator newInitiator(PageDefinition pgdef, Page page)
          Creaetes and returns the initiator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitiatorInfo

public InitiatorInfo(java.lang.Class cls,
                     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

public InitiatorInfo(java.lang.Class cls,
                     java.util.List args)
Constructs with a class, and newInitiator(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page) will instantiate a new instance.


InitiatorInfo

public InitiatorInfo(java.lang.String clsnm,
                     java.lang.String[] args)
              throws java.lang.ClassNotFoundException
Constructs with a class name and newInitiator(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page) will instantiate a new instance.

Parameters:
clsnm - the class name; it could be an EL expression.
Throws:
java.lang.ClassNotFoundException

InitiatorInfo

public InitiatorInfo(java.lang.String clsnm,
                     java.util.List args)
              throws java.lang.ClassNotFoundException
Constructs with a class name and newInitiator(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page) will instantiate a new instance.

Parameters:
clsnm - the class name; it could be an EL expression.
Throws:
java.lang.ClassNotFoundException

InitiatorInfo

public InitiatorInfo(Initiator init,
                     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

public InitiatorInfo(Initiator init,
                     java.util.List 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.

Method Detail

newInitiator

public Initiator newInitiator(PageDefinition pgdef,
                              Page page)
                       throws java.lang.Exception
Creaetes and returns the initiator.

Throws:
java.lang.Exception

getArguments

public java.lang.Object[] getArguments(PageDefinition pgdef,
                                       Page page)
Returns the arguments array (by evaluating EL if necessary).



Copyright © 2005-2007 Potix Corporation. All Rights Reserved.