Package org.zkoss.stateless.ui
Interface ISelector
public interface ISelector
A selector context to hold a root
IComponent for seeking icomponents.- Author:
- jumperchen
-
Method Summary
Modifier and TypeMethodDescription<T extends IComponent<?>>
Tget(int[] path) Returns the target icomponent by its given path if matched.<T extends IComponent<?>>
TReturns the target icomponent by its given id if matched.<T extends IComponent<?>>
List<T>getAncestor(int[] path) Returns all the ancestor from top to bottom for the given path.<T extends IComponent<?>>
List<T>getAncestor(IComponent ichild) Returns all the ancestor from top to bottom for the given ichild.<T extends IComponent<?>>
TgetParent(IComponent ichild) Returns the target parent.int[]getPath(IComponent ichild) Returns the target path.
-
Method Details
-
get
Returns the target icomponent by its given id if matched.- Parameters:
id- the id of the icomponent for seeking
-
get
Returns the target icomponent by its given path if matched.- Parameters:
path- the path of the icomponent for seeking
-
getAncestor
Returns all the ancestor from top to bottom for the given path.- Parameters:
path- the path of the icomponent for seeking
-
getAncestor
Returns all the ancestor from top to bottom for the given ichild.- Parameters:
ichild- the icomponent for seeking
-
getParent
Returns the target parent.Note: If not found,
nullis assumed- Parameters:
ichild- the icomponent for seeking
-
getPath
Returns the target path.Note: If not found,
nullis assumed- Parameters:
ichild- the icomponent for seeking
-