Examples of Bridge


Examples of org.xulfaces.bridge.Bridge

                    
        if(!isParentSmoothlyUpdateable(component)){
          if (treeItemComponent instanceof SmoothlyUpdateable) {
          SmoothlyUpdateable smoothlyUpdateable = (SmoothlyUpdateable) treeItemComponent;
          if (smoothlyUpdateable.needsUpdate()) {
            Bridge bridge = XulUtils.getBridge();
            Zone zone = new Zone(nodeId);
            bridge.addCommand(new UpdateZoneCommand(zone,buildTargetName(component)));
          }
        } 
        }
   
       
View Full Code Here

Examples of org.xulfaces.bridge.Bridge

    responseWriter.startElement("tabpanels",component);
    responseWriter.writeAttribute("id",component.getClientId(facesContext), "id");
    renderAttributes(facesContext,component,(List) component.getAttributes().get("annotatedAttributes"));

    // Add command for the bridge
    Bridge bridge = XulUtils.getBridge();
    Zone zone = new Zone(component.getClientId(facesContext));
    if (log.isDebugEnabled()) {
      log.debug("Add WatchZonePropertyCommand for <selectedIndex> to DOM zone " + zone.getNodeId());
    }   
    bridge.addCommand(new WatchZonePropertyCommand(zone,buildTargetName(component),"selectedIndex"));
  }
View Full Code Here

Examples of org.zkoss.zkplus.embed.Bridge

public class Embed extends HttpServlet {
  private int cnt = 0;
  public void service(HttpServletRequest request, HttpServletResponse response)
  throws javax.servlet.ServletException, java.io.IOException {
    final Desktop desktop = getDesktop(request);
    Bridge bridge = Bridge.start(getServletContext(), request, response, desktop);
    try {
      final Listbox listbox = (Listbox) ((Page)desktop.getPages().iterator().next()).getRoots().iterator().next();
      listbox.appendChild(new Listitem("Ajax " + ++cnt));
      response.getWriter().write(bridge.getResult());
    } finally {
      bridge.close();
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.