Package io.keikai.jsp

Class JsonUpdateBridge

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    SmartUpdateBridge

    public abstract class JsonUpdateBridge
    extends io.keikaiex.ui.UpdateBridge
    A abstract util wrapping Bridge provide easier functionality for a servlet
    Since:
    3.0.0
    Author:
    dennis
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String _zkjsFieldName  
      • Fields inherited from class io.keikaiex.ui.UpdateBridge

        _desktopId, _request, _response, _servletContext
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonUpdateBridge​(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, java.lang.String desktopId)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getJsFieldName()  
      void process​(org.zkoss.json.JSONObject result)
      Process the bridge, find the desktop and call UpdateBridge.process(Desktop), and set the zk ajax update script to field (return by getJsFieldName()) of the result json object
      • Methods inherited from class io.keikaiex.ui.UpdateBridge

        findDesktop, findDesktopIfAny, hasDesktop, process, process
      • Methods inherited from class java.lang.Object

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

      • _zkjsFieldName

        protected java.lang.String _zkjsFieldName
    • Constructor Detail

      • JsonUpdateBridge

        public JsonUpdateBridge​(javax.servlet.ServletContext servletContext,
                                javax.servlet.http.HttpServletRequest req,
                                javax.servlet.http.HttpServletResponse resp,
                                java.lang.String desktopId)
    • Method Detail

      • getJsFieldName

        public java.lang.String getJsFieldName()
      • process

        public void process​(org.zkoss.json.JSONObject result)
        Process the bridge, find the desktop and call UpdateBridge.process(Desktop), and set the zk ajax update script to field (return by getJsFieldName()) of the result json object