StyleSheet.gauge = this;
	public void setValue(int value)	{		if (this.isIndefinite) {			if (this.value == CONTINUOUS_RUNNING ) {				// when the value WAS continuous-running, remove this gauge from 				// the animations:				StyleSheet.gauge = null;			}			if (value == CONTINUOUS_IDLE) {				this.indefinitePos = 0;			} else if (value == CONTINUOUS_RUNNING) {				StyleSheet.gauge = this;			} else if ( value == INCREMENTAL_IDLE ) {				this.indefinitePos = 0;			} else if ( value == INCREMENTAL_UPDATING ) {				this.indefinitePos++;				if (this.indefinitePos > this.maxValue ) {					this.indefinitePos = 0;				}			} else {				throw new IllegalArgumentException("Invalid value for indefinite Gauge: " + value );			}		} else if (value < 0  ) {			value = 0;		} else  if (value > this.maxValue) {			value = this.maxValue;		}		this.value = value;		if (this.isInitialised) {			if (this.isIndefinite) {				updateIndefiniteIndicatorImage();			} else {				createIndicatorImage();			}		}		//#ifdef polish.midp2		if (this.midpGauge != null) {			this.midpGauge.setValue( value );		}		//#endif			}