Class WRepeater.WRepeatRoot

    • Constructor Detail

      • WRepeatRoot

        public WRepeatRoot​(WRepeater repeater,
                           WComponent repeatedComponent)
        Creates a WRepeatRoot.
        Parameters:
        repeater - the parent repeater
        repeatedComponent - the component to repeat.
    • Method Detail

      • getBean

        public Object getBean​(BeanProviderBound beanProviderBound)
        WRepeatRoot will act as a provider for a provider bound repeated component.
        Specified by:
        getBean in interface BeanProvider
        Parameters:
        beanProviderBound - expected to be the repeated component.
        Returns:
        the Bean for the provider bound component.
      • getRepeatedComponent

        public WComponent getRepeatedComponent()
        Returns:
        the component which is being repeated.
      • isVisible

        public boolean isVisible()
        WRepeatRoot is part of the tree, but we don't want any request handling or painting to be performed on it automatically.
        Specified by:
        isVisible in interface WComponent
        Overrides:
        isVisible in class AbstractWComponent
        Returns:
        false
      • getChildCount

        public int getChildCount()
        Specified by:
        getChildCount in interface Container
        Returns:
        the number of child components currently contained within this component.
      • getChildAt

        public WComponent getChildAt​(int index)
        Retrieves a child component by its index.
        Specified by:
        getChildAt in interface Container
        Parameters:
        index - the index of the child component to be retrieved.
        Returns:
        the child component at the given index.
      • getChildren

        public List<WComponent> getChildren()
        Retrieves a list of this Container's.
        Specified by:
        getChildren in interface Container
        Returns:
        an immutable list of this Container.
      • getIndexOfChild

        public int getIndexOfChild​(WComponent childComponent)
        Retrieves the index of the given child.
        Specified by:
        getIndexOfChild in interface Container
        Parameters:
        childComponent - the child component to retrieve the index for.
        Returns:
        the index of the given child component, or -1 if the component is not a child of this component.
      • isNamingContext

        public boolean isNamingContext()
        A naming context is only considered active if an Id name has been set.
        Specified by:
        isNamingContext in interface NamingContextable
        Returns:
        true if active naming context.