Changeset 4771
- Timestamp:
- 06/06/08 08:40:32 (6 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 modified
-
WebContent/ITMILL/themes/default/progressindicator/img/disabled.gif (added)
-
WebContent/ITMILL/themes/default/progressindicator/progressindicator.css (modified) (2 diffs)
-
src/com/itmill/toolkit/terminal/gwt/client/ui/IProgressIndicator.java (modified) (2 diffs)
-
src/com/itmill/toolkit/ui/ProgressIndicator.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebContent/ITMILL/themes/default/progressindicator/progressindicator.css
r3259 r4771 1 1 .i-progressindicator { 2 2 background: #dfe2e4 url(img/base.gif); 3 height: 9px; 4 border: 1px solid #b6bbbc; 5 overflow: hidden; /* for IE6 */ 6 } 7 8 .i-progressindicator-disabled { 9 background: #dfe2e4 url(img/disabled.gif); 3 10 height: 9px; 4 11 border: 1px solid #b6bbbc; … … 18 25 overflow: hidden; /* for IE6 */ 19 26 } 27 .i-progressindicator-disabled-indeterminate { 28 background: #dfe2e4 url(../common/img/blank.gif); 29 height: 16px; 30 width: 16px; 31 overflow: hidden; /* for IE6 */ 32 } -
trunk/src/com/itmill/toolkit/terminal/gwt/client/ui/IProgressIndicator.java
r3258 r4771 42 42 indeterminate = uidl.getBooleanAttribute("indeterminate"); 43 43 44 String style = CLASSNAME; 45 if (uidl.getBooleanAttribute("disabled")) { 46 style += "-disabled"; 47 } 48 44 49 if (indeterminate) { 45 this.setStyleName( CLASSNAME+ "-indeterminate");50 this.setStyleName(style + "-indeterminate"); 46 51 } else { 52 setStyleName(style); 47 53 try { 48 54 final float f = Float.parseFloat(uidl … … 53 59 } 54 60 } 55 poller.scheduleRepeating(uidl.getIntAttribute("pollinginterval")); 61 62 if (!uidl.getBooleanAttribute("disabled")) { 63 poller.scheduleRepeating(uidl.getIntAttribute("pollinginterval")); 64 } 65 } 66 67 public void setVisible(boolean visible) { 68 super.setVisible(visible); 69 if (!visible) { 70 poller.cancel(); 71 } 56 72 } 57 73 -
trunk/src/com/itmill/toolkit/ui/ProgressIndicator.java
r3162 r4771 215 215 216 216 /** 217 * Sets the ProgressIndicator to indeterminate mode.217 * Sets wheter or not the ProgressIndicator is indeterminate. 218 218 * 219 219 * @param newValue … … 222 222 public void setIndeterminate(boolean newValue) { 223 223 indeterminate = newValue; 224 requestRepaint(); 225 } 226 227 /** 228 * Gets whether or not the ProgressIndicator is indeterminate. 229 * 230 * @return true to set to indeterminate mode. 231 */ 232 public boolean isIndeterminate() { 233 return indeterminate; 224 234 } 225 235 … … 232 242 public void setPollingInterval(int newValue) { 233 243 pollingInterval = newValue; 244 requestRepaint(); 234 245 } 235 246
