public class WidgetInfo
extends java.lang.Object
Whne this package (zk.wgt) is loaded, all widget informations defined in the server are loaded automatically.
Modifier and Type | Field and Description |
---|---|
static Map |
all
A map (
Map ) of widget informations (readonly). |
Modifier and Type | Method and Description |
---|---|
static String |
getClassName(String wgtnm)
Returns the class name of the widget.
|
static void |
loadAll(Function f,
boolean weave)
Loads all packages requires by all widgets.
|
static void |
register(Array infs)
Registers an arry of widget information.
|
public static Map all
Map
) of widget informations (readonly).
The key is the widget name, such as textbox, and the value is
the class name. However the value might be changed in the future,
so it is better to iterate only the keys.
To add a mapping, use register(_global_.Array)
.
public static String getClassName(String wgtnm)
wgtnm
- the widget name, such as textboxpublic static void register(Array infs)
infs
- an array of widget class names. For example,
['zul.wnd.Window', 'zul.inp.Textbox'].public static void loadAll(Function f, boolean weave)
f
- the function to run after all packages are loadedweave
- whether to load the package used for ZK weaver.
For example, if a package is called zul.wnd, then we assume zul.wnd.wv is the package
for widgets defined in zul.wnd to communicate with ZK Weaver.Copyright © 2005-2023 Potix Corporation. All Rights Reserved.