com.google.gwt.widgetideas.client
Class ProgressBar.TextFormatter

java.lang.Object
  extended by com.google.gwt.widgetideas.client.ProgressBar.TextFormatter
Enclosing class:
ProgressBar

public abstract static class ProgressBar.TextFormatter
extends java.lang.Object

A formatter used to format the text displayed in the progress bar widget.


Constructor Summary
ProgressBar.TextFormatter()
           
 
Method Summary
protected abstract  java.lang.String getText(ProgressBar bar, double curProgress)
          Generate the text to display in the ProgressBar based on the current value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressBar.TextFormatter

public ProgressBar.TextFormatter()
Method Detail

getText

protected abstract java.lang.String getText(ProgressBar bar,
                                            double curProgress)
Generate the text to display in the ProgressBar based on the current value. Override this method to change the text displayed within the ProgressBar.

Parameters:
bar - the progress bar
curProgress - the current progress
Returns:
the text to display in the progress bar