Package org.primefaces.util

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


            if(clock.isAutoSync()) {
                wb.attr("autoSync", true).attr("syncInterval", clock.getSyncInterval());
            }
        }

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


        if(scope != null) {
            UIComponent scopeComponent = SearchExpressionFacade.resolveComponent(context, command, scope);
            wb.attr("scope", scopeComponent.getClientId(context));
        }

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

            .callback("onidle", "function()", monitor.getOnidle())
            .callback("onactive", "function()", monitor.getOnactive());
       
        encodeClientBehaviors(context, monitor);
       
        wb.finish();
    }
}
View Full Code Here

            .attr("pageLinks", carousel.getPageLinks(), 3)
            .attr("effect", carousel.getEffect(), null)
            .attr("effectDuration", carousel.getEffectDuration(), Integer.MIN_VALUE)
            .attr("easing", carousel.getEasing(), null);
   
        wb.finish();
  }
   
    protected void encodeMarkup(FacesContext context, Carousel carousel) throws IOException {
    ResponseWriter writer = context.getResponseWriter();
    String clientId = carousel.getClientId(context);
View Full Code Here

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

        wb.finish();
  }

    @Override
  protected void encodeMarkup(FacesContext context, AbstractMenu abstractMenu) throws IOException {
    ResponseWriter writer = context.getResponseWriter();
View Full Code Here

            .attr("min", spinner.getMin(), Double.MIN_VALUE)
            .attr("max", spinner.getMax(), Double.MAX_VALUE)
            .attr("prefix", spinner.getPrefix(), null)
            .attr("suffix", spinner.getSuffix(), null);

        wb.finish();
    }

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

        WidgetBuilder wb = getWidgetBuilder(context);
        wb.init("TagCloud", tagCloud.resolveWidgetVar(), clientId);
       
        encodeClientBehaviors(context, tagCloud);

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

            .attr("onLabel", escapeText(button.getOnLabel()))
            .attr("offLabel", escapeText(button.getOffLabel()))
            .attr("onIcon", button.getOnIcon(), null)
            .attr("offIcon", button.getOffIcon(), null);
       
        wb.finish();
    }
}
View Full Code Here

            if(!ComponentUtils.isValueBlank(delay) && !delay.equals("none")) {
                wb.attr("delay", delay);
            }
        }
       
        wb.finish();
    }
   
    protected void renderLoading(FacesContext context, OutputPanel panel) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
       
View Full Code Here

        else {
            wb.init("SimpleFileUpload", fileUpload.resolveWidgetVar(), clientId)
               .attr("skinSimple", fileUpload.isSkinSimple(), false);
        }

        wb.finish();
  }

    protected void encodeMarkup(FacesContext context, FileUpload fileUpload) throws IOException {
        if(fileUpload.getMode().equals("simple"))
            encodeSimpleMarkup(context, fileUpload);
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.