code: public int getValue() {
  		int max = getMax();
  		Integer data = (Integer) getData();
  		return data == null ? 0 : Math.max(0, Math.min(max, data));
  	}
docs: Retrieves the value of the progress bar.
  
  @return the progress bar's value for the context.