Examples of initWithDomReady()


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

    protected void encodeScript(FacesContext context, ContentFlow cf) throws IOException {
        WidgetBuilder wb = getWidgetBuilder(context);
       
        if (context.isPostback()) {
          wb.initWithDomReady("ContentFlow", cf.resolveWidgetVar(), cf.getClientId(context), "contentflow");
        else {
          wb.initWithWindowLoad("ContentFlow", cf.resolveWidgetVar(), cf.getClientId(context), "contentflow");
        }
       
        wb.finish();
View Full Code Here

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

    }

  protected void encodeScript(FacesContext context, Tooltip tooltip, String target) throws IOException {
        String clientId = tooltip.getClientId(context);
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("Tooltip", tooltip.resolveWidgetVar(), clientId)           
            .attr("showEvent", tooltip.getShowEvent(), null)
            .attr("hideEvent", tooltip.getHideEvent(), null)
            .attr("showEffect", tooltip.getShowEffect(), null)
            .attr("hideEffect", tooltip.getHideEffect(), null)
            .attr("showDelay", tooltip.getShowDelay(), 150)
View Full Code Here

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

    String clientId = slider.getClientId(context);
        boolean range = slider.isRange();
        UIComponent output = getTarget(context, slider, slider.getDisplay());
       
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("Slider", slider.resolveWidgetVar(), clientId);
                   
        if(range) {
            String[] inputIds = slider.getFor().split(",");
            UIComponent inputMin = getTarget(context, slider, inputIds[0].trim());
            UIComponent inputMax = getTarget(context, slider, inputIds[1].trim());
View Full Code Here

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

    }
 
  protected void encodeScript(FacesContext context, SplitButton button) throws IOException {
    String clientId = button.getClientId(context);
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("SplitButton", button.resolveWidgetVar(), clientId);
        wb.attr("appendTo", SearchExpressionFacade.resolveComponentForClient(context, button, button.getAppendTo()), null);
        wb.finish();
    }
   
    protected String buildOnclick(FacesContext context, SplitButton button) throws IOException {
View Full Code Here

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

    protected void encodeScript(FacesContext context, ProgressBar progressBar) throws IOException {
        String clientId = progressBar.getClientId(context);
        boolean isAjax = progressBar.isAjax();
       
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("ProgressBar", progressBar.resolveWidgetVar(), clientId)
            .attr("initialValue", progressBar.getValue())
            .attr("ajax", isAjax)
            .attr("labelTemplate", progressBar.getLabelTemplate(), null)
            .attr("global", progressBar.isGlobal(), true);
       
View Full Code Here

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

    @Override
  protected void encodeScript(FacesContext context, SelectOneMenu menu) throws IOException {
        ThemeSwitcher ts = (ThemeSwitcher) menu;
        String clientId = ts.getClientId(context);
        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

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

        else {
      throw new FacesException("\"For\" option must be used to define a watermark.");
    }
   
        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

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

  }

  private void encodeScript(FacesContext context, NotificationBar bar) throws IOException {
    String clientId = bar.getClientId(context);
        WidgetBuilder wb = getWidgetBuilder(context);
        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();
View Full Code Here

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

            mode = "inline";
        else if(lb.isIframe())
            mode = "iframe";
       
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("LightBox", lb.resolveWidgetVar(), clientId)
            .attr("mode", mode)
            .attr("width", lb.getWidth(), null)
            .attr("height", lb.getHeight(), null)
            .attr("visible", lb.isVisible(), false)
            .attr("iframeTitle", lb.getIframeTitle(), null)
View Full Code Here

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

    protected void encodeScript(FacesContext context, AbstractMenu abstractMenu) throws IOException {
        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) {
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.