Package org.zkoss.zats.common.select
Class Selectors
- java.lang.Object
-
- org.zkoss.zats.common.select.Selectors
-
public class Selectors extends Object
A collection of selector related utilities. This was porting from ZK 6 in order to provide selector on ZK 5. It don't recommend user to use this class directly.- Since:
- 6.0.0
- Author:
- simonpai
-
-
Constructor Summary
Constructors Constructor Description Selectors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<org.zkoss.zk.ui.Component>find(org.zkoss.zk.ui.Component root, String selector)Returns a list of Components that match the selector.static List<org.zkoss.zk.ui.Component>find(org.zkoss.zk.ui.Page page, String selector)Returns a list of Components that match the selector.static Iterable<org.zkoss.zk.ui.Component>iterable(org.zkoss.zk.ui.Component root, String selector)Returns an Iterable that iterates through all Components matched by the selector.static Iterable<org.zkoss.zk.ui.Component>iterable(org.zkoss.zk.ui.Page page, String selector)Returns an Iterable that iterates through all Components matched by the selector.
-
-
-
Method Detail
-
iterable
public static Iterable<org.zkoss.zk.ui.Component> iterable(org.zkoss.zk.ui.Page page, String selector)
Returns an Iterable that iterates through all Components matched by the selector.- Parameters:
page- the reference page for selectorselector- the selector string- Returns:
- an Iterable of Component
-
iterable
public static Iterable<org.zkoss.zk.ui.Component> iterable(org.zkoss.zk.ui.Component root, String selector)
Returns an Iterable that iterates through all Components matched by the selector.- Parameters:
root- the reference component for selectorselector- the selector string- Returns:
- an Iterable of Component
-
find
public static List<org.zkoss.zk.ui.Component> find(org.zkoss.zk.ui.Page page, String selector)
Returns a list of Components that match the selector.- Parameters:
page- the reference page for selectorselector- the selector string- Returns:
- a List of Component
-
-