Package org.zkoss.stateless.ui
Class Self
java.lang.Object
org.zkoss.stateless.ui.Self
- All Implemented Interfaces:
Locator
A target to locate a location at client for
IComponent- Author:
- jumperchen
-
Method Summary
Modifier and TypeMethodDescriptionchild(int nth) Returns the first locator that is the nth child of the locator.closest(Class<? extends IComponent> selector) Traverses the locator and its parents until it finds a widget that matches the provided selector iClass.booleanfind(Class<? extends IComponent> selector) Returns the first locator that is a descendant of the locator on which it is invoked that matches the specified class.findChild(Class<? extends IComponent> selector) Returns the first locator that is a direct child of the locator on which it is invoked that matches the specified class.Returns the first child of the locator on which it is invoked that matches the specified class.inthashCode()Returns the last child of the locator on which it is invoked that matches the specified class.Returns the next sibling of the locator on which it is invoked that matches the specified class.Returns the previous sibling of the locator on which it is invoked that matches the specified class.org.zkoss.zk.ui.ComponentConverts this locator to ZK Component forClientsAPI to use.org.zkoss.zk.ui.ComponenttoComponent(CheckedConsumer2<org.zkoss.zk.ui.event.Event, org.zkoss.zk.ui.ext.Scope> eventHandlers) Converts this locator to ZK Component forEvents.postEvent(Event)API to use.Returns the string representation of a specified locatortoString()
-
Method Details
-
toComponent
public org.zkoss.zk.ui.Component toComponent()Description copied from interface:LocatorConverts this locator to ZK Component forClientsAPI to use.- Specified by:
toComponentin interfaceLocator- Returns:
-
toComponent
public org.zkoss.zk.ui.Component toComponent(CheckedConsumer2<org.zkoss.zk.ui.event.Event, org.zkoss.zk.ui.ext.Scope> eventHandlers) Description copied from interface:LocatorConverts this locator to ZK Component forEvents.postEvent(Event)API to use.- Specified by:
toComponentin interfaceLocator
-
toExternalForm
Description copied from interface:LocatorReturns the string representation of a specified locator- Specified by:
toExternalFormin interfaceLocator
-
toUuidIfAny
-
toIdIfAny
-
find
Description copied from interface:LocatorReturns the first locator that is a descendant of the locator on which it is invoked that matches the specified class. -
findChild
Description copied from interface:LocatorReturns the first locator that is a direct child of the locator on which it is invoked that matches the specified class. -
child
Description copied from interface:LocatorReturns the first locator that is the nth child of the locator. -
previousSibling
Description copied from interface:LocatorReturns the previous sibling of the locator on which it is invoked that matches the specified class.- Specified by:
previousSiblingin interfaceLocator- Returns:
-
nextSibling
Description copied from interface:LocatorReturns the next sibling of the locator on which it is invoked that matches the specified class.- Specified by:
nextSiblingin interfaceLocator- Returns:
-
firstChild
Description copied from interface:LocatorReturns the first child of the locator on which it is invoked that matches the specified class.- Specified by:
firstChildin interfaceLocator- Returns:
-
lastChild
Description copied from interface:LocatorReturns the last child of the locator on which it is invoked that matches the specified class. -
closest
Description copied from interface:LocatorTraverses the locator and its parents until it finds a widget that matches the provided selector iClass. Will return the locator of itself or the matching ancestor. If no such widget exists, it means nothing. -
toString
-
equals
-
hashCode
public int hashCode()
-