|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object zk.wgt.WidgetInfo
public class WidgetInfo
Information of widgets.
Whne this package (zk.wgt) is loaded, all widget informations defined in the server are loaded automatically.
Field Summary | |
---|---|
static Map |
all
A map ( Map ) of widget informations (readonly). |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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)
.
Method Detail |
---|
public static String getClassName(String wgtnm)
wgtnm
- the widget name, such as textbox
public 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |