Class LoadingIndicatorConfigurationMap
java.lang.Object
com.vaadin.flow.internal.nodefeature.NodeFeature
com.vaadin.flow.internal.nodefeature.NodeMap
com.vaadin.flow.internal.nodefeature.LoadingIndicatorConfigurationMap
- All Implemented Interfaces:
LoadingIndicatorConfiguration,Serializable
public class LoadingIndicatorConfigurationMap
extends NodeMap
implements LoadingIndicatorConfiguration
Map for storing configuration for the loading indicator.
For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new map for the given node. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the delay before the loading indicator is shown.intReturns the delay before the loading indicator goes into the "second" state.intReturns the delay before the loading indicator goes into the "third" state.booleanReturns whether the default theming is applied for the loading indicator, making it visible for users.voidsetApplyDefaultTheme(boolean applyDefaultTheme) Sets whether the default theming is applied for the loading indicator.voidsetFirstDelay(int firstDelay) Sets the delay before the loading indicator is shown.voidsetSecondDelay(int secondDelay) Sets the delay before the loading indicator goes into the "second" state.voidsetThirdDelay(int thirdDelay) Sets the delay before the loading indicator goes into the "third" state.Methods inherited from class com.vaadin.flow.internal.nodefeature.NodeMap
clear, collectChanges, contains, forEachChild, generateChangesFromEmpty, get, getOrDefault, getOrDefault, getOrDefault, keySet, mayUpdateFromClient, producePutChange, put, put, remove, updateFromClientMethods inherited from class com.vaadin.flow.internal.nodefeature.NodeFeature
allowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach, onDetach
-
Field Details
-
FIRST_DELAY_KEY
- See Also:
-
FIRST_DELAY_DEFAULT
public static final int FIRST_DELAY_DEFAULT- See Also:
-
SECOND_DELAY_KEY
- See Also:
-
SECOND_DELAY_DEFAULT
public static final int SECOND_DELAY_DEFAULT- See Also:
-
THIRD_DELAY_KEY
- See Also:
-
THIRD_DELAY_DEFAULT
public static final int THIRD_DELAY_DEFAULT- See Also:
-
DEFAULT_THEME_APPLIED_KEY
- See Also:
-
DEFAULT_THEME_APPLIED_DEFAULT
public static final boolean DEFAULT_THEME_APPLIED_DEFAULT- See Also:
-
-
Constructor Details
-
LoadingIndicatorConfigurationMap
Creates a new map for the given node.- Parameters:
node- the node that the map belongs to
-
-
Method Details
-
setFirstDelay
public void setFirstDelay(int firstDelay) Description copied from interface:LoadingIndicatorConfigurationSets the delay before the loading indicator is shown. The default is 300ms.- Specified by:
setFirstDelayin interfaceLoadingIndicatorConfiguration- Parameters:
firstDelay- The first delay (in ms)
-
getFirstDelay
public int getFirstDelay()Description copied from interface:LoadingIndicatorConfigurationReturns the delay before the loading indicator is shown.- Specified by:
getFirstDelayin interfaceLoadingIndicatorConfiguration- Returns:
- The first delay (in ms)
-
setSecondDelay
public void setSecondDelay(int secondDelay) Description copied from interface:LoadingIndicatorConfigurationSets the delay before the loading indicator goes into the "second" state. The delay is calculated from the time when the loading indicator was triggered. The default is 1500ms.- Specified by:
setSecondDelayin interfaceLoadingIndicatorConfiguration- Parameters:
secondDelay- The delay before going into the "second" state (in ms)
-
getSecondDelay
public int getSecondDelay()Description copied from interface:LoadingIndicatorConfigurationReturns the delay before the loading indicator goes into the "second" state. The delay is calculated from the time when the loading indicator was triggered.- Specified by:
getSecondDelayin interfaceLoadingIndicatorConfiguration- Returns:
- The delay before going into the "second" state (in ms)
-
setThirdDelay
public void setThirdDelay(int thirdDelay) Description copied from interface:LoadingIndicatorConfigurationSets the delay before the loading indicator goes into the "third" state. The delay is calculated from the time when the loading indicator was triggered. The default is 5000ms.- Specified by:
setThirdDelayin interfaceLoadingIndicatorConfiguration- Parameters:
thirdDelay- The delay before going into the "third" state (in ms)
-
getThirdDelay
public int getThirdDelay()Description copied from interface:LoadingIndicatorConfigurationReturns the delay before the loading indicator goes into the "third" state. The delay is calculated from the time when the loading indicator was triggered.- Specified by:
getThirdDelayin interfaceLoadingIndicatorConfiguration- Returns:
- The delay before going into the "third" state (in ms)
-
isApplyDefaultTheme
public boolean isApplyDefaultTheme()Description copied from interface:LoadingIndicatorConfigurationReturns whether the default theming is applied for the loading indicator, making it visible for users.By default, it is shown (
true) and there is a progress bar on top of the viewport shown after a delay to the users while there is an active server request in process.- Specified by:
isApplyDefaultThemein interfaceLoadingIndicatorConfiguration- Returns:
truefor applying default theme,falsefor not
-
setApplyDefaultTheme
public void setApplyDefaultTheme(boolean applyDefaultTheme) Description copied from interface:LoadingIndicatorConfigurationSets whether the default theming is applied for the loading indicator.By default, it is shown (
true) and there is a progress bar on top of the viewport shown after a delay to the users while there is an active server request in process.- Specified by:
setApplyDefaultThemein interfaceLoadingIndicatorConfiguration- Parameters:
applyDefaultTheme-trueto apply default theming,falsefor not
-