OSDN Git Service

タスクマネージャからのイベントを受け取りテーブルモデルを更新
[coroid/inqubus.git] / frontend / src / yukihane / inqubus / model / Progress.java
1 package yukihane.inqubus.model;
2
3 /**
4  *
5  * @author yuki
6  */
7 public class Progress {
8
9     private final double percent;
10     private final String text;
11
12     public Progress(double percent) {
13         this(percent, "");
14     }
15
16     public Progress(String text) {
17         this(100.0, text);
18     }
19
20     public Progress(double percent, String text) {
21         this.percent = percent;
22         this.text = text;
23     }
24
25     public double getPercent() {
26         return percent;
27     }
28
29     public String getText() {
30         return text;
31     }
32 }