Package org.damour.base.client.ui.progressbar.ProgressBar

Examples of org.damour.base.client.ui.progressbar.ProgressBar.TextFormatter


    // objectType = an instance of the content object to be published
    // on the server, this guy just needs to be someone who has getData/setData
    // and get/set mimetypes

    progressMeter.setMinProgress(0);
    progressMeter.setTextFormatter(new TextFormatter() {
      protected String getText(ProgressBar bar, double curProgress) {
        String percentText = (int) (100 * bar.getPercent()) + "%";
        if (result.getStatus() == FileUploadStatus.UPLOADING) {
          return "Uploading... " + percentText;
        } else if (result.getStatus() == FileUploadStatus.WRITING_DATABASE) {
View Full Code Here

TOP

Related Classes of org.damour.base.client.ui.progressbar.ProgressBar.TextFormatter

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.