|
ProgressBar
A Widget that displays progress over a range
IntroductionThe ProgressBar Widget displays progress over a range of values. Users can dynamically change the minimum and maximum values in the range. When the current value is set, a bar will fill the widget up to the percent relative to the range. Example: http://google-web-toolkit-incubator.googlecode.com/svn/trunk/demo/ProgressBar/index.html CSSHere is an example CSS style for the ProgressBar Widget: .gwt-ProgressBar-shell {
border: 2px solid #faf9f7;
border-right: 2px solid #848280;
border-bottom: 2px solid #848280;
background-color: #AAAAAA;
height: 14pt;
width: 50%;
}
.gwt-ProgressBar-shell .gwt-ProgressBar-bar {
background-color: #67A7E3;
}
.gwt-ProgressBar-shell .gwt-ProgressBar-text {
padding: 0px;
margin: 0px;
color: white;
}Sample CodeProgressBar bar = new ProgressBar(0.0, 2000.0 0.0); bar.setProgress(1500.0); }} |
Sign in to add a comment
Found a typo, missing comma after to 2000.0 argument. Should be:
ProgressBar bar = new ProgressBar(0.0, 2000.0, 0.0);
}}On ie the bars height doesnt seem to be able to be less than around 10 or so. I want 5px. Works on Firefox.
Nevermind...didnt realize it was a general ie css bug. fix i used was overflow:hidden.
Doesn't appear to work within a StackPanel??:
Did a little hunting via firebug, and it looks like the reason is it uses an inline absolute positioning.