Class UiAgentCtrl

java.lang.Object
org.zkoss.stateless.ui.UiAgentCtrl

public class UiAgentCtrl extends Object
An addition interface to UiAgent that is used for implementation or tools.
Author:
jumperchen
  • Constructor Details

    • UiAgentCtrl

      public UiAgentCtrl()
  • Method Details

    • deactivate

      public static void deactivate(UiAgent uiAgent)
      Deactivate the given UiAgent
      Parameters:
      uiAgent -
    • redraw

      public static <I extends IComponent> Collection<org.zkoss.json.JavaScriptValue> redraw(Locator locator, Collection<I> children)
      An utilities to create an array of JavaScript objects (JavaScriptValue) that can be used to mount the specified widget at the clients.
    • smartUpdate

      public static <I extends IComponent> void smartUpdate(Locator locator, String attr, Object value)
      A special smart update to update a value in Object.
    • smartUpdate

      public static <I extends IComponent> void smartUpdate(Locator locator, String attr, Object value, boolean append)
      A special smart update to update a value in Object.
    • smartUpdate

      public static <I extends IComponent> void smartUpdate(Locator locator, String attr, int value)
      A special smart update to update a value in int.

      It is the same as smartUpdate(Locator, String, Object).

    • smartUpdate

      public static <I extends IComponent> void smartUpdate(Locator locator, String attr, long value)
      A special smart update to update a value in long.

      It is the same as smartUpdate(Locator, String, Object).

    • smartUpdate

      public static <I extends IComponent> void smartUpdate(Locator locator, String attr, byte value)
      A special smart update to update a value in byte.

      It is the same as smartUpdate(Locator, String, Object).

    • smartUpdate

      public static <I extends IComponent> void smartUpdate(Locator locator, String attr, char value)
      A special smart update to update a value in char.

      It is the same as smartUpdate(Locator, String, Object).

    • smartUpdate

      public static <I extends IComponent> void smartUpdate(Locator locator, String attr, boolean value)
      A special smart update to update a value in boolean.

      It is the same as smartUpdate(Locator, String, Object).

    • smartUpdate

      public static <I extends IComponent> void smartUpdate(Locator locator, String attr, float value)
      A special smart update to update a value in float.

      It is the same as smartUpdate(Locator, String, Object).

    • smartUpdate

      public static <I extends IComponent> void smartUpdate(Locator locator, String attr, double value)
      A special smart update to update a value in double.

      It is the same as smartUpdate(Locator, String, Object).

    • response

      public static <I extends IComponent> void response(String key, org.zkoss.zk.au.AuResponse response, int priority)
      Adds a response with the given priority. The higher priority, the earlier the update is executed.
      Parameters:
      key - could be anything. If null, the response is appended. If not null, the second invocation of this method in the same execution with the same key will override the previous one.
    • response

      public static <I extends IComponent> void response(String key, org.zkoss.zk.au.AuResponse response)
      Adds a response which will be sent to client at the end of the execution.
      Parameters:
      key - could be anything. If null, the response is appended. If not null, the second invocation of this method in the same execution with the same key will override the previous one.
    • response

      public static <I extends IComponent> void response(org.zkoss.zk.au.AuResponse response)
      Adds a response directly. In other words, it is the same as addResponse(resposne.getOverrideKey(), response)