|
||||||||||
| 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.Float>
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 main modes. 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.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 |
| 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 |
| Field Summary |
|---|
| 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(float value)
Creates a new instance of ProgressIndicator with given state. |
|
ProgressIndicator(Property contentSource)
Creates a new instance of ProgressIndicator with state read from the given datasource. |
|
| Method Summary | |
|---|---|
void |
beforeClientResponse(boolean initial)
Called before the shared state and RPC invocations are sent to the client. |
int |
getPollingInterval()
Gets the interval that component checks for progress. |
protected com.vaadin.shared.ui.progressindicator.ProgressIndicatorState |
getState()
Returns the shared state bean with information to be sent from the server to the client. |
java.lang.Class<java.lang.Float> |
getType()
Returns the type of the Field. |
java.lang.Float |
getValue()
Gets the value of the ProgressIndicator. |
boolean |
isIndeterminate()
Gets whether or not the ProgressIndicator is indeterminate. |
void |
setIndeterminate(boolean indeterminate)
Sets whether or not the ProgressIndicator is indeterminate. |
void |
setPollingInterval(int pollingInterval)
Sets the interval that component checks for progress. |
void |
setValue(java.lang.Float 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.Viewer |
|---|
getPropertyDataSource, setPropertyDataSource |
| Methods inherited from interface com.vaadin.data.Property.ValueChangeListener |
|---|
valueChange |
| Methods inherited from interface com.vaadin.ui.Component |
|---|
addListener, addStyleName, getCaption, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setPrimaryStyleName, setStyleName, setVisible |
| Methods inherited from interface com.vaadin.server.ClientConnector |
|---|
encodeState, getExtensions, getStateType, handleConnectorRequest, isConnectorEnabled, markAsDirty, 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 |
| Constructor Detail |
|---|
public ProgressIndicator()
public ProgressIndicator(float value)
value - public ProgressIndicator(Property contentSource)
contentSource - | Method Detail |
|---|
public void beforeClientResponse(boolean initial)
ClientConnector
This method must not alter the component hierarchy in any way. Calling
ClientConnector.markAsDirty() from this method will have no effect.
beforeClientResponse in interface ClientConnectorbeforeClientResponse in class AbstractField<java.lang.Float>initial - true if the client-side connector will be created
and initialized after this method has been invoked.
false if there is already an initialized
client-side connector.public java.lang.Float getValue()
getValue in interface Property<java.lang.Float>getValue in class AbstractField<java.lang.Float>AbstractField.getValue()public void setValue(java.lang.Float newValue)
setValue in interface Property<java.lang.Float>setValue in class AbstractField<java.lang.Float>newValue - the New value of the ProgressIndicator.com.vaadin.ui.AbstractField#setValue()public java.lang.Class<java.lang.Float> 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.Float>getType in class AbstractField<java.lang.Float>protected com.vaadin.shared.ui.progressindicator.ProgressIndicatorState getState()
AbstractComponent
getState in class AbstractField<java.lang.Float>public void setIndeterminate(boolean indeterminate)
indeterminate - true to set to indeterminate mode.public boolean isIndeterminate()
public void setPollingInterval(int pollingInterval)
pollingInterval - the interval in milliseconds.public int getPollingInterval()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||