Package org.zkoss.zk.ui.impl
Class MultiComposer<T extends Component>
java.lang.Object
org.zkoss.zk.ui.impl.MultiComposer<T>
- All Implemented Interfaces:
Composer<T>
To proxy a collection of composers.
- Since:
- 5.0.1
- Author:
- tomyeh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoAfterCompose(T comp) Invokes after ZK loader creates this component, initializes it and composes all its children, if any.doBeforeCompose(Page page, Component parent, ComponentInfo compInfo) voiddoBeforeComposeChildren(T comp) booleanvoidstatic ComposergetComposer(Page page, Object[] ary) Returns an instance of composer to represent the specified array of composers, or null if no composer is specified.booleanReturns whether to invoke only the composer that implementsFullComposer.booleansetFullComposerOnly(boolean fullOnly) Sets whether to invoke only the composer that implementsFullComposer.
-
Constructor Details
-
MultiComposer
The constructor. This method is designed to be called bygetComposer(org.zkoss.zk.ui.Page, java.lang.Object[]). UsegetComposer(org.zkoss.zk.ui.Page, java.lang.Object[])instead.- Parameters:
cs- the array of composer instances.- Throws:
Exception
-
-
Method Details
-
getComposer
Returns an instance of composer to represent the specified array of composers, or null if no composer is specified. -
setFullComposerOnly
public boolean setFullComposerOnly(boolean fullOnly) Sets whether to invoke only the composer that implementsFullComposer.Default: false
- Returns:
- the previous value.
- Since:
- 5.0.1
-
isFullComposerOnly
public boolean isFullComposerOnly()Returns whether to invoke only the composer that implementsFullComposer.- Since:
- 5.0.1
-
doAfterCompose
Description copied from interface:ComposerInvokes after ZK loader creates this component, initializes it and composes all its children, if any.- Specified by:
doAfterComposein interfaceComposer<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
- Throws:
Exception
-
doCatch
- Throws:
Exception
-
doFinally
- Throws:
Exception
-