Class FunctionMapperInfo

java.lang.Object
org.zkoss.zk.ui.metainfo.FunctionMapperInfo

public class FunctionMapperInfo extends Object
A definition of the function mapper (FunctionMapper).

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 function-mapper directive (and better performance).

Note: it is not serializable.

Since:
3.5.0
Author:
tomyeh
  • Constructor Details

    • FunctionMapperInfo

      public FunctionMapperInfo(Class<? extends org.zkoss.xel.FunctionMapper> cls, Map<String,String> args)
      Constructs with a class.
      Parameters:
      args - the map of arguments. Ignored if null.
      Notice that, once assigned, the map belongs to this object, and the caller shall not access it again
      Since:
      3.6.1
    • FunctionMapperInfo

      public FunctionMapperInfo(Class<? extends org.zkoss.xel.FunctionMapper> cls)
      Constructs with a class.
    • FunctionMapperInfo

      public FunctionMapperInfo(String clsnm, Map<String,String> args) throws ClassNotFoundException
      Constructs with a class name.
      Parameters:
      clsnm - the class name; it could be an EL expression.
      Throws:
      ClassNotFoundException
    • FunctionMapperInfo

      public FunctionMapperInfo(String clsnm) throws ClassNotFoundException
      Constructs with a class name.
      Parameters:
      clsnm - the class name; it could be an EL expression.
      Throws:
      ClassNotFoundException
    • FunctionMapperInfo

      public FunctionMapperInfo(org.zkoss.xel.FunctionMapper mapper)
      Constructs with an initiator that will be reuse each time newFunctionMapper(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page) is called.
  • Method Details

    • newFunctionMapper

      public org.zkoss.xel.FunctionMapper newFunctionMapper(PageDefinition pgdef, Page page) throws Exception
      Creates and returns the function mapper for the specified pagedefinition and page.
      Throws:
      Exception
    • newFunctionMapper

      public org.zkoss.xel.FunctionMapper newFunctionMapper(Evaluator eval, Page page) throws Exception
      Creates and returns the function mapper for the specified evaluator and page.
      Throws:
      Exception
      Since:
      3.6.2
    • toString

      public String toString()
      Overrides:
      toString in class Object