Package org.primefaces.util

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


            wb.attr("interval", progressBar.getInterval());
           
            encodeClientBehaviors(context, progressBar);
        }

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


        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("ThemeSwitcher", ts.resolveWidgetVar(), clientId)
                .attr("effect", ts.getEffect(), null)
                .attr("effectSpeed", ts.getEffectSpeed(), null);

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

        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("Watermark", watermark.resolveWidgetVar(), watermark.getClientId(context), "watermark")
            .attr("value", escapeText(watermark.getValue()))
            .attr("target", target);

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

            encodePaginatorConfig(context, grid, wb);
        }
       
        encodeClientBehaviors(context, grid);

        wb.finish();
    }

    protected void encodeMarkup(FacesContext context, DataGrid grid) throws IOException {
        if(grid.isLazy()) {
            grid.loadLazyData();
View Full Code Here

        wb.initWithDomReady("NotificationBar", bar.resolveWidgetVar(), clientId)
            .attr("position", bar.getPosition())
            .attr("effect", bar.getEffect())
            .attr("effectSpeed", bar.getEffectSpeed())
            .attr("autoDisplay", bar.isAutoDisplay(), false);
    wb.finish();
  }

    @Override
  public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
    //Do nothing
View Full Code Here

    }

    public void encodeScript(FacesContext context, Button button) throws IOException {
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.init("Button", button.resolveWidgetVar(), button.getClientId(context));
        wb.finish();
    }

    protected String buildOnclick(FacesContext context, Button button) {
        String userOnclick = button.getOnclick();
        StringBuilder onclick = SharedStringBuilder.get(context, SB_BUILD_ONCLICK);
View Full Code Here

            .attr("visible", lb.isVisible(), false)
            .attr("iframeTitle", lb.getIframeTitle(), null)
            .callback("onShow", "function()", lb.getOnShow())
            .callback("onHide", "function()", lb.getOnHide());
       
        wb.finish();
    }
   
    @Override
    public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
        //Do nothing
View Full Code Here

        Menu menu = (Menu) abstractMenu;
    String clientId = menu.getClientId(context);
       
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("PlainMenu", menu.resolveWidgetVar(), clientId);
        wb.finish();
  }
   
    @Override
    protected String getLinkStyleClass(MenuItem menuitem) {
        String icon = menuitem.getIcon();
View Full Code Here

            select = "[" + cropper.getInitialCoords() + "]";
        }
       
        wb.append(",setSelect:").append(select);

        wb.finish();
  }
 
  protected void encodeMarkup(FacesContext context, ImageCropper cropper) throws IOException{
    ResponseWriter writer = context.getResponseWriter();
    String clientId = cropper.getClientId(context);
View Full Code Here

            wb.attr("hasMenu", true);
        }
       
        encodeClientBehaviors(context, panel);

        wb.finish();
    }

    protected void encodeMarkup(FacesContext context, Panel panel) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
        String clientId = panel.getClientId(context);
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.