Package org.openfaces.component.output

Examples of org.openfaces.component.output.ProgressBar


    }

    @Override
    protected void writeProgressBar(FacesContext context, AbstractFileUpload fileUpload) throws IOException {
        if (progressBar == null) {
            progressBar = new ProgressBar();
            progressBar.setDefaultProgressImgUrl(DEFAULT_UPLOADED_MIN_URL);
        }
        progressBar.setStyleClass(Styles.getCSSClass(context, progressBar, progressBar.getStyle(), StyleGroup.regularStyleGroup(), progressBar.getStyleClass(), getProgressBarStyle(((SingleFileUpload) fileUpload))));
        progressBar.setLabelClass(Styles.getCSSClass(context, progressBar, progressBar.getLabelStyle(), StyleGroup.regularStyleGroup(), progressBar.getLabelClass(), "o_s_file_upload_progress_label"));
        progressBar.encodeAll(context);
View Full Code Here


    }

    @Override
    protected void writeProgressBar(FacesContext context, AbstractFileUpload fileUpload) throws IOException {
        if (progressBar == null) {
            progressBar = new ProgressBar();
            progressBar.setDefaultProgressImgUrl(DEFAULT_UPLOADED_URL);
        }
        progressBar.encodeAll(context);
    }
View Full Code Here

    public static final String DEF_PROGRESS_CLASS = "o_progress_bar_uploaded";

    @Override
    public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
        super.encodeBegin(context, component);
        ProgressBar progressBar = (ProgressBar) component;
        ResponseWriter writer = context.getResponseWriter();
        final String clientId = progressBar.getClientId(context);
        writer.startElement("div", progressBar);
        Rendering.writeIdAttribute(context, progressBar);
        Rendering.writeStyleAndClassAttributes(writer, progressBar.getStyle(), progressBar.getStyleClass(), "o_progress_bar");

        //Rendering.writeStandardEvents(writer, progressBar);
        writeUploadedDiv(context, progressBar, writer);

        writeNotUploadedDiv(context, progressBar, writer);
View Full Code Here

TOP

Related Classes of org.openfaces.component.output.ProgressBar

Copyright © 2018 www.massapicom. 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.