Class ComponentLocalProperties


  • public class ComponentLocalProperties
    extends Object
    A collection of utilities that check local properties of Components. Including type, ID, class, attribute, and pseudo class.
    Since:
    6.0.0
    Author:
    simonpai
    • Constructor Detail

      • ComponentLocalProperties

        public ComponentLocalProperties()
    • Method Detail

      • match

        public static boolean match​(org.zkoss.zk.ui.Component component,
                                    String selector)
        Returns true if the selector matches the given component. Combinators are not allowed.
        Parameters:
        component -
        selector -
      • match

        public static boolean match​(org.zkoss.zk.ui.Component component,
                                    String selector,
                                    Map<String,​PseudoClassDef> defs)
        Returns true if the selector matches the given component. Combinators are not allowed.
        Parameters:
        component -
        selector -
        defs -