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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_THEME_APPLIED_DEFAULTstatic StringDEFAULT_THEME_APPLIED_KEYstatic intFIRST_DELAY_DEFAULTstatic StringFIRST_DELAY_KEYstatic intSECOND_DELAY_DEFAULTstatic StringSECOND_DELAY_KEYstatic intTHIRD_DELAY_DEFAULTstatic StringTHIRD_DELAY_KEY
-
Constructor Summary
Constructors Constructor Description LoadingIndicatorConfigurationMap(StateNode node)Creates a new map for the given node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetFirstDelay()Returns the delay before the loading indicator is shown.intgetSecondDelay()Returns the delay before the loading indicator goes into the "second" state.intgetThirdDelay()Returns the delay before the loading indicator goes into the "third" state.booleanisApplyDefaultTheme()Returns 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, updateFromClient
-
Methods inherited from class com.vaadin.flow.internal.nodefeature.NodeFeature
allowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach, onDetach
-
-
-
-
Field Detail
-
FIRST_DELAY_KEY
public static final String FIRST_DELAY_KEY
- See Also:
- Constant Field Values
-
FIRST_DELAY_DEFAULT
public static final int FIRST_DELAY_DEFAULT
- See Also:
- Constant Field Values
-
SECOND_DELAY_KEY
public static final String SECOND_DELAY_KEY
- See Also:
- Constant Field Values
-
SECOND_DELAY_DEFAULT
public static final int SECOND_DELAY_DEFAULT
- See Also:
- Constant Field Values
-
THIRD_DELAY_KEY
public static final String THIRD_DELAY_KEY
- See Also:
- Constant Field Values
-
THIRD_DELAY_DEFAULT
public static final int THIRD_DELAY_DEFAULT
- See Also:
- Constant Field Values
-
DEFAULT_THEME_APPLIED_KEY
public static final String DEFAULT_THEME_APPLIED_KEY
- See Also:
- Constant Field Values
-
DEFAULT_THEME_APPLIED_DEFAULT
public static final boolean DEFAULT_THEME_APPLIED_DEFAULT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LoadingIndicatorConfigurationMap
public LoadingIndicatorConfigurationMap(StateNode node)
Creates a new map for the given node.- Parameters:
node- the node that the map belongs to
-
-
Method Detail
-
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
-
-