Package org.primefaces.util

Examples of org.primefaces.util.WidgetBuilder.finish()


                .attr("filterMatchMode", menu.getFilterMatchMode(), null)
                .nativeAttr("filterFunction", menu.getFilterFunction(), null)
                .attr("caseSensitive", menu.isCaseSensitive(), false);
        }
       
        wb.finish();
    }

    protected void encodeInput(FacesContext context, SelectManyMenu menu, String clientId, List<SelectItem> selectItems) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
        String inputid = clientId + "_input";
View Full Code Here


                .attr("filterMatchMode", listbox.getFilterMatchMode(), null)
                .nativeAttr("filterFunction", listbox.getFilterFunction(), null)
                .attr("caseSensitive", listbox.isCaseSensitive(), false);
        }
       
        wb.finish();
    }

    protected void encodeInput(FacesContext context, SelectOneListbox listbox, String clientId, List<SelectItem> selectItems) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
        String inputid = clientId + "_input";
View Full Code Here

        wb.init("ImageCompare", compare.resolveWidgetVar(), clientId, "imagecompare")
            .attr("handle", getResourceRequestPath(context, "imagecompare/handle.gif"))
            .attr("lt", getResourceRequestPath(context, "imagecompare/lt-small.png"))
            .attr("rt", getResourceRequestPath(context, "imagecompare/rt-small.png"));

        wb.finish();
  }
 
  protected void encodeMarkup(FacesContext context, ImageCompare compare) throws IOException {
    ResponseWriter writer = context.getResponseWriter();
   
View Full Code Here

            .attr("camera", camera);
       
        if(cam.getUpdate() != null) wb.attr("update", SearchExpressionFacade.resolveComponentsForClient(context, cam, cam.getUpdate()));
        if(cam.getProcess() != null) wb.attr("process", SearchExpressionFacade.resolveComponentsForClient(context, cam, cam.getProcess()));

       wb.finish();
  }
   
}
View Full Code Here

                .attr("weakLabel", escapeText(password.getWeakLabel()))
                .attr("goodLabel", escapeText(password.getGoodLabel()))
                .attr("strongLabel", escapeText(password.getStrongLabel()));
        }

        wb.finish();
  }

  protected void encodeMarkup(FacesContext context, Password password) throws IOException {
    ResponseWriter writer = context.getResponseWriter();
    String clientId = password.getClientId(context);
View Full Code Here

            .callback("onResize", "function(e)", layout.getOnResize());
       
        encodeUnits(context, layout, wb);
        encodeClientBehaviors(context, layout);
       
        wb.finish();
    }

    protected void encodeUnits(FacesContext context, Layout layout, WidgetBuilder wb) throws IOException {
        for(UIComponent child : layout.getChildren()) {
            if(child.isRendered() && child instanceof LayoutUnit) {
View Full Code Here

        .callback("onTabChange", "function(panel)", acco.getOnTabChange())
        .callback("onTabShow", "function(panel)", acco.getOnTabShow());
       
        encodeClientBehaviors(context, acco);
       
        wb.finish();
  }

  protected void encodeStateHolder(FacesContext context, AccordionPanel accordionPanel) throws IOException {
    ResponseWriter writer = context.getResponseWriter();
    String clientId = accordionPanel.getClientId(context);
View Full Code Here

            wb.nativeAttr("columnFormat", "{" + columnFormat + "}");
        }
           
        encodeClientBehaviors(context, schedule);

        wb.finish()
  }

  protected void encodeMarkup(FacesContext context, Schedule schedule) throws IOException {
    ResponseWriter writer = context.getResponseWriter();
    String clientId = schedule.getClientId(context);
View Full Code Here

            .attr("showEffect", dialog.getShowEffect(), null)
            .attr("hideEffect", dialog.getHideEffect(), null)
            .attr("closeOnEscape", dialog.isCloseOnEscape(), false)
            .attr("global", dialog.isGlobal(), false);
 
        wb.finish();
  }

    protected void encodeHeader(FacesContext context, ConfirmDialog dialog) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
        String header = dialog.getHeader();
View Full Code Here

    protected void encodeScript(FacesContext context, AbstractMenu abstractMenu) throws IOException {
        PanelMenu menu = (PanelMenu) abstractMenu;
    String clientId = menu.getClientId(context);
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.init("PanelMenu", menu.resolveWidgetVar(), clientId);
        wb.finish();
    }

    @Override
    protected void encodeMarkup(FacesContext context, AbstractMenu abstractMenu) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
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.