Class ActionBridgeImpl

  • All Implemented Interfaces:
    ActionBridge, java.io.Serializable

    public class ActionBridgeImpl
    extends java.lang.Object
    implements ActionBridge, java.io.Serializable
    Implement of action bridge
    Author:
    dennis
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ActionBridgeImpl​(java.lang.String clientId, java.lang.String compUuid)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(Action action)
      Execute the action in zk lifecycle, and update the result to client, it throws ComponentNotFoundException if zk desktop not found (e.g you run the action in JSF post-back, so desktop was removed)
      void execute​(Action action, boolean auto)
      Execute the action in zk lifecycle, and update the result to client.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ActionBridgeImpl

        public ActionBridgeImpl​(java.lang.String clientId,
                                java.lang.String compUuid)
    • Method Detail

      • execute

        public void execute​(Action action)
        Description copied from interface: ActionBridge
        Execute the action in zk lifecycle, and update the result to client, it throws ComponentNotFoundException if zk desktop not found (e.g you run the action in JSF post-back, so desktop was removed)
        Specified by:
        execute in interface ActionBridge
      • execute

        public void execute​(Action action,
                            boolean auto)
        Description copied from interface: ActionBridge
        Execute the action in zk lifecycle, and update the result to client. It will call Action.execute() directly if there has no zk desktop to wrap lice-cycle and you set auto to true. It will throw ComponentNotFoundException if there has no zk desktop and you set auto to false.
        Specified by:
        execute in interface ActionBridge
        auto - true wrap the execution in zk desktop lifecycle automatically,