Package org.pdfsam.console.business.dto

Examples of org.pdfsam.console.business.dto.WorkDoneDataModel


    add(progressBar);
  }

  public void update(Observable o, Object arg) {
    try{
      final WorkDoneDataModel dto = (WorkDoneDataModel)arg;
          Runnable runner = new Runnable() {
              public void run() {
                int percentage = dto.getPercentage();
                if(percentage == WorkDoneDataModel.INDETERMINATE){
                  setBarIndeterminate(true);
                  setBarStringPainted(false);
                }else if (percentage == WorkDoneDataModel.MAX_PERGENTAGE){
                  setBarIndeterminate(false);
View Full Code Here


     *
     * @param percentage
     */
    protected final void setPercentageOfWorkDone(int percentage) {
        if (workDone == null) {
            workDone = new WorkDoneDataModel();
        }
        workDone.setPercentage(percentage);
        setChanged();
        notifyObservers(workDone);
    }
View Full Code Here

TOP

Related Classes of org.pdfsam.console.business.dto.WorkDoneDataModel

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.