Class MultiComposer<T extends Component>

java.lang.Object
org.zkoss.zk.ui.impl.MultiComposer<T>
All Implemented Interfaces:
Composer<T>

public class MultiComposer<T extends Component> extends Object implements Composer<T>
To proxy a collection of composers.
Since:
5.0.1
Author:
tomyeh
  • Constructor Details

  • Method Details

    • getComposer

      public static Composer getComposer(Page page, Object[] ary) throws Exception
      Returns an instance of composer to represent the specified array of composers, or null if no composer is specified.
      Parameters:
      page - used to resolve the class if ary contains a class name. Ignored if null.
      ary - an array of Composer instances, or the name of the class, or the class that implements Composer.
      Returns:
      a composer to represent cs, or null if cs is null or empty.
      Throws:
      Exception
    • setFullComposerOnly

      public boolean setFullComposerOnly(boolean fullOnly)
      Sets whether to invoke only the composer that implements FullComposer.

      Default: false

      Returns:
      the previous value.
      Since:
      5.0.1
    • isFullComposerOnly

      public boolean isFullComposerOnly()
      Returns whether to invoke only the composer that implements FullComposer.
      Since:
      5.0.1
    • doAfterCompose

      public void doAfterCompose(T comp) throws Exception
      Description copied from interface: Composer
      Invokes after ZK loader creates this component, initializes it and composes all its children, if any.
      Specified by:
      doAfterCompose in interface Composer<T extends Component>
      Parameters:
      comp - the component has been composed
      Throws:
      Exception
    • doBeforeCompose

      public ComponentInfo doBeforeCompose(Page page, Component parent, ComponentInfo compInfo) throws Exception
      Throws:
      Exception
    • doBeforeComposeChildren

      public void doBeforeComposeChildren(T comp) throws Exception
      Throws:
      Exception
    • doCatch

      public boolean doCatch(Throwable ex) throws Exception
      Throws:
      Exception
    • doFinally

      public void doFinally() throws Exception
      Throws:
      Exception