Package org.primefaces.util

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


            .attr("scrollWidth", tt.getScrollWidth(), null)
            .attr("nativeElements", tt.isNativeElements(), false);
       
        encodeClientBehaviors(context, tt);

        wb.finish();
  }

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


        wb.initWithDomReady("Poll", poll.resolveWidgetVar(), clientId)
            .attr("frequency", poll.getInterval())
            .attr("autoStart", poll.isAutoStart())
            .callback("fn", "function()", request);

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

        wb.callback(AjaxStatus.START, AjaxStatus.CALLBACK_SIGNATURE, status.getOnstart())
            .callback(AjaxStatus.ERROR, AjaxStatus.CALLBACK_SIGNATURE, status.getOnerror())
            .callback(AjaxStatus.SUCCESS, AjaxStatus.CALLBACK_SIGNATURE, status.getOnsuccess())
            .callback(AjaxStatus.COMPLETE, AjaxStatus.CALLBACK_SIGNATURE, status.getOncomplete());
       
        wb.finish();
  }

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

    private void encodeScript(FacesContext context, Ribbon ribbon) throws IOException {
        String clientId = ribbon.getClientId(context);
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.init("Ribbon", ribbon.resolveWidgetVar(), clientId, "ribbon");
       
        wb.finish();
    }

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

            paginatorRenderer.encodeScript(context, table, wb);
        }
       
        encodeClientBehaviors(context, table);

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

        WidgetBuilder wb = getWidgetBuilder(context);
        wb.init("Menubar", menubar.resolveWidgetVar(), clientId)
            .attr("autoDisplay", menubar.isAutoDisplay())
            .attr("toggleEvent", menubar.getToggleEvent(), null);

        wb.finish();
  }

    @Override
  protected void encodeMarkup(FacesContext context, AbstractMenu abstractMenu) throws IOException {
        Menubar menubar = (Menubar) abstractMenu;
View Full Code Here

       
        if(menu.isOverlay()) {
            encodeOverlayConfig(context, menu, wb);
        }

        wb.finish();
  }

  protected void encodeMarkup(FacesContext context, AbstractMenu abstractMenu) throws IOException {
        TieredMenu menu = (TieredMenu) abstractMenu;
        String style = menu.getStyle();
View Full Code Here

                .attr("minQueryLength", inputTextarea.getMinQueryLength())
                .attr("queryDelay", inputTextarea.getQueryDelay())
                .attr("scrollHeight", inputTextarea.getScrollHeight(), Integer.MAX_VALUE);
        }

        wb.finish();
  }

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

        wb.attr("nodeType", menu.getNodeType(), null)
            .attr("event", menu.getEvent(), null)
            .attr("selectionMode", menu.getSelectionMode(), "multiple")
            .callback("beforeShow", "function(event)", menu.getBeforeShow());

        wb.finish();
  }
 
    @Override
    protected void encodeMarkup(FacesContext context, AbstractMenu abstractMenu) throws IOException{
        ContextMenu menu = (ContextMenu) abstractMenu;
View Full Code Here

    protected void encodeScript(FacesContext context, AbstractMenu abstractMenu) throws IOException {
        TabMenu menu = (TabMenu) abstractMenu;
    String clientId = menu.getClientId(context);
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.init("TabMenu", menu.resolveWidgetVar(), clientId);
        wb.finish();
    }
   
    @Override
    protected void encodeMarkup(FacesContext context, AbstractMenu component) 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.