File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/main/java/com/github/gwtbootstrap/client/ui Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -56,20 +56,20 @@ public String get() {
56
56
* Set bar width as a percent unit
57
57
* @param percent percent
58
58
*/
59
- public void setPercent (int percent ) {
59
+ public void setPercent (double percent ) {
60
60
this .getElement ().getStyle ().setWidth (percent , Unit .PCT );
61
61
}
62
62
63
63
/**
64
64
* Get bar width as a percent unit
65
65
* @return percent
66
66
*/
67
- public int getPercent () {
67
+ public double getPercent () {
68
68
String width = this .getElement ().getStyle ().getWidth ();
69
69
if (width == null )
70
70
return 0 ;
71
71
else
72
- return Integer .valueOf (width .substring (0 , width .indexOf ("%" )));
72
+ return Double .valueOf (width .substring (0 , width .indexOf ("%" )));
73
73
}
74
74
75
75
/**
Original file line number Diff line number Diff line change @@ -53,15 +53,15 @@ public ProgressBar(Style style) {
53
53
* Set bar width as a percent unit
54
54
* @param percent percent
55
55
*/
56
- public void setPercent (int percent ) {
56
+ public void setPercent (double percent ) {
57
57
bar .setPercent (percent );
58
58
}
59
59
60
60
/**
61
61
* Get bar width as a percent unit
62
62
* @return percent
63
63
*/
64
- public int getPercent () {
64
+ public double getPercent () {
65
65
return bar .getPercent ();
66
66
}
67
67
You can’t perform that action at this time.
0 commit comments