Package org.zkoss.zk.ui.select.impl
Class ComponentLocalProperties
- java.lang.Object
-
- org.zkoss.zk.ui.select.impl.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
-
-
Constructor Summary
Constructors Constructor Description ComponentLocalProperties()
-
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.
-
-
-
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
-
-
-