Examples of initWithDomReady()


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

 
  protected void encodeScript(FacesContext context, TreeTable tt) throws IOException {
    String clientId = tt.getClientId(context);
        String selectionMode = tt.getSelectionMode();
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("TreeTable", tt.resolveWidgetVar(), clientId)
            .attr("selectionMode", selectionMode, null)
            .attr("resizableColumns", tt.isResizableColumns(), false)
            .attr("liveResize", tt.isLiveResize(), false)
            .attr("scrollable", tt.isScrollable(), false)
            .attr("scrollHeight", tt.getScrollHeight(), null)
View Full Code Here

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

                .oncomplete(poll.getOncomplete())
                .params(poll)
                .build();
       
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("Poll", poll.resolveWidgetVar(), clientId)
            .attr("frequency", poll.getInterval())
            .attr("autoStart", poll.isAutoStart())
            .callback("fn", "function()", request);

        wb.finish();
View Full Code Here

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

  }

  protected void encodeScript(FacesContext context, AjaxStatus status) throws IOException {
    String clientId = status.getClientId(context);
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("AjaxStatus", status.resolveWidgetVar(), clientId);

        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());
View Full Code Here

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

  protected void encodeScript(FacesContext context, AbstractMenu abstractMenu) throws IOException{
        TieredMenu menu = (TieredMenu) abstractMenu;
    String clientId = menu.getClientId(context);
       
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("TieredMenu", menu.resolveWidgetVar(), clientId)
            .attr("autoDisplay", menu.isAutoDisplay())               
            .attr("toggleEvent", menu.getToggleEvent(), null);
       
        if(menu.isOverlay()) {
            encodeOverlayConfig(context, menu, wb);
View Full Code Here

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

    String clientId = inputTextarea.getClientId(context);
        boolean autoResize = inputTextarea.isAutoResize();
        String counter = inputTextarea.getCounter();
       
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("InputTextarea", inputTextarea.resolveWidgetVar(), clientId)
            .attr("autoResize", autoResize)
            .attr("maxlength", inputTextarea.getMaxlength(), Integer.MAX_VALUE);
       
        if(counter != null) {
            UIComponent counterComponent = SearchExpressionFacade.resolveComponent(context, inputTextarea, counter);
View Full Code Here

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

    }
   
    protected void encodeScript(FacesContext context, Sticky sticky) throws IOException {
        String target = sticky.getTarget();
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("Sticky", sticky.resolveWidgetVar(), sticky.getClientId(context))
            .attr("target", SearchExpressionFacade.resolveComponentsForClient(context, sticky, target))
            .attr("margin", sticky.getMargin(), 0)
            .finish();
    }
}
View Full Code Here

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

    protected void encodeScript(FacesContext context, AbstractMenu abstractMenu) throws IOException {
        ContextMenu menu = (ContextMenu) abstractMenu;
    String clientId = menu.getClientId(context);

        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("ContextMenu", menu.resolveWidgetVar(), clientId);
       
        String _for = menu.getFor();
        if(_for != null) {
          UIComponent target = SearchExpressionFacade.resolveComponent(context, menu, _for);
         
View Full Code Here

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

   
    @Override
    protected void encodeScript(FacesContext context, Panel panel) throws IOException {
        String clientId = panel.getClientId();
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("Panel", panel.resolveWidgetVar(), clientId);
       
        wb.attr("toggleable", panel.isToggleable(), false);
       
        encodeClientBehaviors(context, panel);
View Full Code Here

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

        boolean dynamic = tree.isDynamic();
        String selectionMode = tree.getSelectionMode();
        String widget = tree.getOrientation().equals("vertical") ? "VerticalTree" : "HorizontalTree";

        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady(widget, tree.resolveWidgetVar(), clientId);

        wb.attr("dynamic", dynamic)
          .attr("highlight", tree.isHighlight(), true)
        .attr("animate", tree.isAnimate(), false)
        .attr("droppable", tree.isDroppable(), false)
View Full Code Here

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

        UIComponent target = SearchExpressionFacade.resolveComponent(context, panel, panel.getFor());
        String targetClientId = (target == null) ? null: target.getClientId(context);
        String clientId = panel.getClientId(context);

        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("OverlayPanel", panel.resolveWidgetVar(), clientId)
            .attr("targetId", targetClientId, null)
            .attr("showEvent", panel.getShowEvent(), null)
            .attr("hideEvent", panel.getHideEvent(), null)
            .attr("showEffect", panel.getShowEffect(), null)
            .callback("onShow", "function()", panel.getOnShow())
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.