Class ComponentLocalProperties


  • public class ComponentLocalProperties
    extends java.lang.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
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean match​(Component component, java.lang.String selector)
      Returns true if the selector matches the given component.
      static boolean match​(Component component, java.lang.String selector, java.util.Map<java.lang.String,​PseudoClassDef> defs)
      Returns true if the selector matches the given component.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ComponentLocalProperties

        public ComponentLocalProperties()
    • Method Detail

      • match

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

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