Package | Description |
---|---|
_global_ |
The global namespace in JavaScript (i.e., the
window object). |
zk |
ZK JavaScript extension and utilities
|
zk.wgt |
Utilities to handle widgets, such as the information about widgets.
|
zk.xml |
XML utilities.
|
zk.zuml |
iZUML utilities.
|
zkbind | |
zkmax.barcode | |
zkmax.wgt |
Modifier and Type | Method and Description |
---|---|
static Function |
zUtl.debounce(Function func,
int wait,
boolean immediate)
Creates and returns a new debounced version of the passed function
which will postpone its execution until after wait milliseconds have elapsed since the last time it was invoked.
|
static Function |
zk.override(Function oldfunc,
Function newfunc)
Overrides a particular method.
|
static Function |
zUtl.throttle(Function func,
int wait)
Creates and returns a new, throttled version of the passed function, that,
when invoked repeatedly, will only actually call the original function at most once per every wait milliseconds.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
zk.$import(String name,
Function fn)
Imports a package or class, and load it if
fn is specified. |
static boolean |
zk.afterAnimate(Function fn,
int delay)
Executes a function only when no animation is taking place.
|
static void |
zk.afterAuResponse(Function fn)
Adds a function that will be executed after onResponse events are done.
|
static boolean |
zk.afterLoad(Function func)
Declares a function that shall be executed after all requested packages are loaded (i.e.,
zk.loading is 0). |
static void |
zk.afterLoad(String pkgs,
Function func)
Declares a function that shall be executed only if the specified
package(s) are loaded (and
zk.loading is 0). |
static boolean |
zk.afterMount(Function fn,
int delay)
Adds a function that will be executed after the mounting is done.
|
static void |
zk.afterResize(Function fn)
Adds a function that will be executed after all of the onSize events are done.
|
static void |
zk.beforeUnload(Function fn,
Map opts)
Adds a function that will be executed when the browser is about to unload the document.
|
static void |
zAu.createWidgets(Array codes,
Function fn,
Function filter)
Creates widgets based on an array of JavaScritp codes generated by
Component.redraw() at the server.
|
static Function |
zUtl.debounce(Function func,
int wait,
boolean immediate)
Creates and returns a new debounced version of the passed function
which will postpone its execution until after wait milliseconds have elapsed since the last time it was invoked.
|
static boolean |
zk.load(String pkg,
Desktop dt,
Function func)
Loads the specified package(s).
|
static boolean |
zk.load(String pkg,
Function func)
Loads the specified package(s).
|
static zk |
zk.loadCSS(String href,
String id,
String media,
Function the)
Loads a CSS file.
|
static zk |
zk.loadScript(String src,
String name,
String charset,
boolean force,
Function the)
Loads a JavaScript file.
|
static Function |
zk.override(Function oldfunc,
Function newfunc)
Overrides a particular method.
|
static Function |
zUtl.throttle(Function func,
int wait)
Creates and returns a new, throttled version of the passed function, that,
when invoked repeatedly, will only actually call the original function at most once per every wait milliseconds.
|
Modifier and Type | Method and Description |
---|---|
Function |
Object.proxy(Function func)
Proxies a member function such that it can be called with this object in a context that this object is not available.
|
Modifier and Type | Method and Description |
---|---|
void |
Service.after(String command,
Function func)
Registers a callback after some command executed.
|
void |
Object.afterInit(Function func)
Specifies a function that shall be called after the object is initialized,
i.e., after
Object.$init() is called. |
Function |
Object.proxy(Function func)
Proxies a member function such that it can be called with this object in a context that this object is not available.
|
void |
Widget.setListener(String evt,
Function fn)
Sets a listener
It is designed to be called from server.
|
void |
Service.unAfter(String command,
Function func)
Unregisters a callback after some command executed.
|
Modifier and Type | Method and Description |
---|---|
static void |
WidgetInfo.loadAll(Function f,
boolean weave)
Loads all packages requires by all widgets.
|
Modifier and Type | Method and Description |
---|---|
static DOMElement |
Utl.loadXML(String url,
Function callback)
Loads XML from the resource at the specified URL.
|
Modifier and Type | Method and Description |
---|---|
static Widget |
Parser.create(Widget parent,
String doc,
Map args,
Function fn)
Parse the iZUML into widgets
|
static Widget |
Parser.createAt(String nodeId,
Map opts,
Map args,
Function fn)
Parse the iZUML into widgets
|
Modifier and Type | Method and Description |
---|---|
void |
Binder.after(String command,
Function func)
Registers a callback after some command executed.
|
void |
Binder.unAfter(String command,
Function func)
Unregisters a callback after some command executed.
|
Modifier and Type | Method and Description |
---|---|
static void |
Barcode.registerLibrary(Function execFunc,
String libname,
Array types)
A method that register the barcode rendering library.
|
Modifier and Type | Method and Description |
---|---|
void |
Fragment.onOffline(String anno,
Function handler)
Register an offline handler for specific annotation.
|
Copyright © 2005-2023 Potix Corporation. All Rights Reserved.