|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itmill.toolkit.terminal.Identifiable
com.itmill.toolkit.ui.AbstractComponent
com.itmill.toolkit.ui.AbstractField
com.itmill.toolkit.ui.ProgressIndicator
public class ProgressIndicator
ProgressIndicator is component that shows user state of a
process (like long computing or file upload)
ProgressIndicator has two mainmodes. One for indeterminate
processes and other (default) for processes which progress can be measured
May view an other property that indicates progress 0...1
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.itmill.toolkit.ui.AbstractField |
|---|
AbstractField.ReadOnlyStatusChangeEvent |
| Nested classes/interfaces inherited from interface com.itmill.toolkit.data.Property |
|---|
Property.ConversionException, Property.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeEvent, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.ValueChangeEvent, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer |
| Nested classes/interfaces inherited from interface com.itmill.toolkit.ui.Field |
|---|
Field.ValueChangeEvent |
| Nested classes/interfaces inherited from interface com.itmill.toolkit.ui.Component |
|---|
Component.ErrorEvent, Component.ErrorListener, Component.Event, Component.Focusable, Component.Listener |
| Nested classes/interfaces inherited from interface com.itmill.toolkit.terminal.Paintable |
|---|
Paintable.RepaintRequestEvent, Paintable.RepaintRequestListener |
| Nested classes/interfaces inherited from interface com.itmill.toolkit.data.Buffered |
|---|
Buffered.SourceException |
| Field Summary | |
|---|---|
static int |
CONTENT_PREFORMATTED
Content mode, where the label contains preformatted text. |
static int |
CONTENT_TEXT
Content mode, where the label contains only plain text. |
| Constructor Summary | |
|---|---|
ProgressIndicator()
Creates an a new ProgressIndicator. |
|
ProgressIndicator(Float value)
Creates a new instance of ProgressIndicator with given state. |
|
ProgressIndicator(Property contentSource)
Creates a new instance of ProgressIndicator with stae read from given datasource. |
|
| Method Summary | |
|---|---|
boolean |
getContentMode()
Gets the mode of ProgressIndicator. |
int |
getPollingInterval()
Gets the interval that component checks for progress. |
Property |
getPropertyDataSource()
Gets the viewing data-source property. |
String |
getTag()
Gets the component UIDL tag. |
Class |
getType()
Returns the type of the Property. |
Object |
getValue()
Gets the value of the ProgressIndicator. |
boolean |
isReadOnly()
Is the component read-only ? |
void |
paintContent(PaintTarget target)
Paints the content of this component. |
void |
setIndeterminate(boolean newValue)
Sets the ProgressIndicator to indeterminate mode. |
void |
setPollingInterval(int newValue)
Sets the interval that component checks for progress. |
void |
setPropertyDataSource(Property newDataSource)
Sets the property as data-source for viewing. |
void |
setReadOnly(boolean readOnly)
Sets the component to read-only. |
void |
setValue(Object newValue)
Sets the value of the ProgressIndicator. |
String |
toString()
Returns the value of the Property in human readable textual format. |
| Methods inherited from class com.itmill.toolkit.ui.AbstractField |
|---|
addListener, addListener, addValidator, attach, commit, constructField, discard, finalize, fireReadOnlyStatusChange, fireValueChange, focus, getErrorMessage, getFocusableId, getTabIndex, getValidators, isInvalidAllowed, isInvalidCommitted, isModified, isReadThrough, isRequired, isValid, isWriteThrough, removeListener, removeListener, removeValidator, setInternalValue, setInvalidAllowed, setInvalidCommitted, setReadThrough, setRequired, setTabIndex, setWriteThrough, validate, valueChange |
| Methods inherited from class com.itmill.toolkit.terminal.Identifiable |
|---|
getDebugId, getUIID, setDebugId, setUIID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.itmill.toolkit.data.Property.ValueChangeListener |
|---|
valueChange |
| Methods inherited from interface com.itmill.toolkit.ui.Field |
|---|
getDescription, setCaption, setDescription |
| Methods inherited from interface com.itmill.toolkit.ui.Component |
|---|
addListener, childRequestedRepaint, detach, getApplication, getCaption, getIcon, getLocale, getParent, getStyle, getWindow, isEnabled, isVisible, removeListener, setEnabled, setParent, setStyle, setVisible |
| Methods inherited from interface com.itmill.toolkit.terminal.Paintable |
|---|
addListener, paint, removeListener, requestRepaint, requestRepaintRequests |
| Methods inherited from interface com.itmill.toolkit.terminal.VariableOwner |
|---|
changeVariables, dependsOn, getDirectDependencies, isImmediate, removeDirectDependency |
| Field Detail |
|---|
public static final int CONTENT_TEXT
public static final int CONTENT_PREFORMATTED
| Constructor Detail |
|---|
public ProgressIndicator()
public ProgressIndicator(Float value)
value - public ProgressIndicator(Property contentSource)
contentSource - | Method Detail |
|---|
public String getTag()
getTag in class AbstractComponentpublic void setReadOnly(boolean readOnly)
setReadOnly in interface PropertysetReadOnly in interface ComponentsetReadOnly in class AbstractFieldreadOnly - True to enable read-only mode, False to disable it.Component.setReadOnly(boolean)public boolean isReadOnly()
isReadOnly in interface PropertyisReadOnly in interface ComponentisReadOnly in class AbstractField
public void paintContent(PaintTarget target)
throws PaintException
paintContent in class AbstractFieldtarget - the Paint Event.
PaintException - if the Paint Operation fails.public Object getValue()
getValue in interface PropertygetValue in class AbstractFieldAbstractField.getValue()public void setValue(Object newValue)
setValue in interface PropertysetValue in class AbstractFieldnewValue - the New value of the ProgressIndicator.AbstractField.setValue(java.lang.Object)public String toString()
AbstractField
toString in interface PropertytoString in class AbstractFieldString representation of the value stored in the
PropertyAbstractField.toString()public Class getType()
PropertygetValue and
setValue must be compatible with this type: one must be
able to safely cast the value returned from getValue to
the given type and pass any variable assignable to this type as an
argument to setValue.
getType in interface PropertygetType in class AbstractFieldAbstractField.getType()public Property getPropertyDataSource()
getPropertyDataSource in interface Property.ViewergetPropertyDataSource in class AbstractFieldAbstractField.getPropertyDataSource()public void setPropertyDataSource(Property newDataSource)
setPropertyDataSource in interface Property.ViewersetPropertyDataSource in class AbstractFieldnewDataSource - the new data source.AbstractField.setPropertyDataSource(com.itmill.toolkit.data.Property)public boolean getContentMode()
public void setIndeterminate(boolean newValue)
newValue - true to set to indeterminate mode.public void setPollingInterval(int newValue)
newValue - the interval in milliseconds.public int getPollingInterval()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||