Class ComponentMatchCtx


  • public class ComponentMatchCtx
    extends Object
    A wrapper of Component, providing a context for selector matching algorithm.
    Since:
    6.0.0
    Author:
    simonpai
    • Method Detail

      • getComponent

        public org.zkoss.zk.ui.Component getComponent()
        Return the component.
      • getComponentChildIndex

        public int getComponentChildIndex()
        Return the child index of the component. If the component is one of the page roots, return -1.
      • getComponentSiblingSize

        public int getComponentSiblingSize()
        Return the count of total siblings of the component, including itself.
      • isQualified

        public boolean isQualified​(int selectorIndex,
                                   int position)
        Return true if the component matched the given position of the given selector.
        Parameters:
        selectorIndex -
        position -
      • isMatched

        public boolean isMatched()
        Return true if the component matched the last position of any selectors in the list. (i.e. the one we are looking for)
      • isMatched

        public boolean isMatched​(int selectorIndex)
        Return true if the component matched the last position of the given selector.
        Parameters:
        selectorIndex -