Package org.zkoss.stateless.ui
Class BuildContext<I extends IComponent>
- java.lang.Object
-
- org.zkoss.stateless.ui.BuildContext<I>
-
public class BuildContext<I extends IComponent> extends java.lang.Object
A build context to hold the necessary meta info when building components.- Author:
- jumperchen
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description I
getOwner()
Returns the owner component of the build context, if any.static <I extends IComponent>
BuildContext<I>newInstance(I owner)
Creates a simple build context with the given immutable component.
-
-
-
Method Detail
-
getOwner
public I getOwner()
Returns the owner component of the build context, if any.- Returns:
- null if the build content is not associated into a component.
-
newInstance
public static <I extends IComponent> BuildContext<I> newInstance(I owner)
Creates a simple build context with the given immutable component.- Parameters:
owner
- the immutable component
-
-