public class zkbind
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Binder |
$(java.lang.Object n,
Map opts)
Retrieves the binder if any.
|
public static Binder $(java.lang.Object n, Map opts)
n
- the object to look for. If it is a string,
it is assumed to be UUID, unless it starts with '$'.
For example, zkbind.$('uuid') is the same as zkbind.$('#uuid'),
and both look for a widget whose ID is 'uuid'. On the other hand,
zkbind.$('$id') looks for a widget whose ID is 'id'.
and zkbind.$('.className') looks for a widget whose CSS selector is 'className'.
If it is an DOM element (DOMElement
), it will look up
which widget it belongs to.
If the object is not a DOM element and has a property called
target
, then target
is assumed.
Thus, you can pass an instance of Event
or Event
,
and the target widget will be returned.
opts
- [optional] the options. Allowed values:
Widget.$n(_global_.String)
). In most cases, if ID
of an element is xxx-yyy, the the element must be a child of
the element whose ID is xxx. However, there is some exception
such as the shadow of a window.Copyright © 2005-2023 Potix Corporation. All Rights Reserved.