|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.server.AbstractClientConnector
com.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractField<java.lang.Number>
com.vaadin.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.vaadin.ui.AbstractField |
|---|
AbstractField.FocusShortcut, AbstractField.ReadOnlyStatusChangeEvent |
| Nested classes/interfaces inherited from class com.vaadin.ui.AbstractComponent |
|---|
AbstractComponent.ComponentErrorEvent, AbstractComponent.ComponentErrorHandler |
| Nested classes/interfaces inherited from interface com.vaadin.server.VariableOwner |
|---|
VariableOwner.ErrorEvent |
| Nested classes/interfaces inherited from interface com.vaadin.ui.Component |
|---|
Component.ErrorEvent, Component.ErrorListener, Component.Event, Component.Focusable, Component.Listener |
| Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable |
|---|
Sizeable.Unit |
| Nested classes/interfaces inherited from interface com.vaadin.ui.Field |
|---|
Field.ValueChangeEvent |
| Nested classes/interfaces inherited from interface com.vaadin.data.Buffered |
|---|
Buffered.SourceException |
| Nested classes/interfaces inherited from interface com.vaadin.data.Property |
|---|
Property.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.Transactional<T>, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer |
| 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. |
| Fields inherited from interface com.vaadin.server.Sizeable |
|---|
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS |
| Constructor Summary | |
|---|---|
ProgressIndicator()
Creates an a new ProgressIndicator. |
|
ProgressIndicator(java.lang.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 | |
|---|---|
void |
changeVariables(java.lang.Object source,
java.util.Map<java.lang.String,java.lang.Object> variables)
Called when one or more variables handled by the implementing class are changed. |
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. |
java.lang.Class<? extends java.lang.Number> |
getType()
Returns the type of the Field. |
java.lang.Number |
getValue()
Gets the value of the ProgressIndicator. |
boolean |
isIndeterminate()
Gets whether or not the ProgressIndicator is indeterminate. |
boolean |
isReadOnly()
Is the component read-only ? Readonly is not used in ProgressIndicator - this returns allways false. |
void |
paintContent(PaintTarget target)
Paints the content of this component. |
void |
setIndeterminate(boolean newValue)
Sets wheter or not the ProgressIndicator is indeterminate. |
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(java.lang.Object newValue)
Sets the value of the ProgressIndicator. |
| Methods inherited from class com.vaadin.server.AbstractClientConnector |
|---|
addExtension, addMethodInvocationToQueue, createState, encodeState, getAllChildrenIterable, getConnectorId, getExtensions, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setResource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.vaadin.data.Property.ValueChangeListener |
|---|
valueChange |
| Methods inherited from interface com.vaadin.server.LegacyComponent |
|---|
markAsDirty |
| Methods inherited from interface com.vaadin.server.VariableOwner |
|---|
isEnabled, isImmediate |
| Methods inherited from interface com.vaadin.ui.Component |
|---|
addListener, addStyleName, attach, getCaption, getIcon, getId, getLocale, getParent, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setStyleName, setVisible |
| Methods inherited from interface com.vaadin.server.ClientConnector |
|---|
beforeClientResponse, detach, encodeState, getExtensions, getStateType, handleConnectorRequest, isConnectorEnabled, markAsDirtyRecursive, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setParent |
| Methods inherited from interface com.vaadin.shared.Connector |
|---|
getConnectorId |
| Methods inherited from interface com.vaadin.server.RpcTarget |
|---|
getRpcManager |
| Methods inherited from interface com.vaadin.server.Sizeable |
|---|
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setSizeFull, setSizeUndefined, setWidth, setWidth |
| Methods inherited from interface com.vaadin.event.Action.ShortcutNotifier |
|---|
addShortcutListener, removeShortcutListener |
| Field Detail |
|---|
public static final int CONTENT_TEXT
public static final int CONTENT_PREFORMATTED
| Constructor Detail |
|---|
public ProgressIndicator()
public ProgressIndicator(java.lang.Float value)
value - public ProgressIndicator(Property contentSource)
contentSource - | Method Detail |
|---|
public void setReadOnly(boolean readOnly)
setReadOnly in interface Property<java.lang.Number>setReadOnly in interface ComponentsetReadOnly in class AbstractField<java.lang.Number>readOnly - True to enable read-only mode, False to disable it.Component.setReadOnly(boolean)public boolean isReadOnly()
isReadOnly in interface Property<java.lang.Number>isReadOnly in interface ComponentisReadOnly in class AbstractField<java.lang.Number>Component.setReadOnly(boolean)
public void paintContent(PaintTarget target)
throws PaintException
paintContent in interface LegacyComponenttarget - the Paint Event.
PaintException - if the Paint Operation fails.public java.lang.Number getValue()
getValue in interface Property<java.lang.Number>getValue in class AbstractField<java.lang.Number>AbstractField.getValue()public void setValue(java.lang.Object newValue)
setValue in interface Property<java.lang.Number>setValue in class AbstractField<java.lang.Number>newValue - the New value of the ProgressIndicator.com.vaadin.ui.AbstractField#setValue()public java.lang.Class<? extends java.lang.Number> getType()
AbstractFieldgetValue 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 Property<java.lang.Number>getType in class AbstractField<java.lang.Number>AbstractField.getType()public Property getPropertyDataSource()
getPropertyDataSource in interface Property.ViewergetPropertyDataSource in class AbstractField<java.lang.Number>AbstractField.getPropertyDataSource()public void setPropertyDataSource(Property newDataSource)
setPropertyDataSource in interface Property.ViewersetPropertyDataSource in class AbstractField<java.lang.Number>newDataSource - the new data source.AbstractField.setPropertyDataSource(com.vaadin.data.Property)public boolean getContentMode()
public void setIndeterminate(boolean newValue)
newValue - true to set to indeterminate mode.public boolean isIndeterminate()
public void setPollingInterval(int newValue)
newValue - the interval in milliseconds.public int getPollingInterval()
public void changeVariables(java.lang.Object source,
java.util.Map<java.lang.String,java.lang.Object> variables)
VariableOwner
changeVariables in interface VariableOwnersource - the Source of the variable change. This is the origin of the
event. For example in Web Adapter this is the request.variables - the Mapping from variable names to new variable values.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||