Class BuildContext<I extends IComponent>

java.lang.Object
org.zkoss.stateless.ui.BuildContext<I>

public class BuildContext<I extends IComponent> extends Object
A build context to hold the necessary meta info when building components.
Author:
jumperchen
  • Method Details

    • 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