Class ComponentWithContext

  • All Implemented Interfaces:
    Serializable

    public class ComponentWithContext
    extends Object
    implements Serializable
    Encapsulates a component along with a context. This is used to e.g. return lists of components which are being repeated.
    Since:
    1.0.0
    Author:
    Yiannis Paschalidis
    See Also:
    Serialized Form
    • Constructor Detail

      • ComponentWithContext

        public ComponentWithContext​(WComponent component,
                                    UIContext context)
        Creates a ComponentWithContext.
        Parameters:
        component - the component.
        context - the context the component is in.
    • Method Detail

      • getComponent

        public WComponent getComponent()
        Returns:
        Returns the component.
      • setComponent

        public void setComponent​(WComponent component)
        Parameters:
        component - The component to set.
      • getContext

        public UIContext getContext()
        Returns:
        Returns the context.
      • setContext

        public void setContext​(UIContext context)
        Parameters:
        context - The context to set.