public class LoadingIndicatorConfigurationMap extends NodeMap implements LoadingIndicatorConfiguration
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_THEME_APPLIED_DEFAULT |
static String |
DEFAULT_THEME_APPLIED_KEY |
static int |
FIRST_DELAY_DEFAULT |
static String |
FIRST_DELAY_KEY |
static int |
SECOND_DELAY_DEFAULT |
static String |
SECOND_DELAY_KEY |
static int |
THIRD_DELAY_DEFAULT |
static String |
THIRD_DELAY_KEY |
Constructor and Description |
---|
LoadingIndicatorConfigurationMap(StateNode node)
Creates a new map for the given node.
|
Modifier and Type | Method and Description |
---|---|
int |
getFirstDelay()
Returns the delay before the loading indicator is shown.
|
int |
getSecondDelay()
Returns the delay before the loading indicator goes into the "second"
state.
|
int |
getThirdDelay()
Returns the delay before the loading indicator goes into the "third"
state.
|
boolean |
isApplyDefaultTheme()
Returns whether the default theming is applied for the loading indicator,
making it visible for users.
|
void |
setApplyDefaultTheme(boolean applyDefaultTheme)
Sets whether the default theming is applied for the loading indicator.
|
void |
setFirstDelay(int firstDelay)
Sets the delay before the loading indicator is shown.
|
void |
setSecondDelay(int secondDelay)
Sets the delay before the loading indicator goes into the "second" state.
|
void |
setThirdDelay(int thirdDelay)
Sets the delay before the loading indicator goes into the "third" state.
|
clear, collectChanges, contains, forEachChild, generateChangesFromEmpty, get, getOrDefault, getOrDefault, getOrDefault, keySet, mayUpdateFromClient, put, put, remove, updateFromClient
allowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach, onDetach
public static final String FIRST_DELAY_KEY
public static final int FIRST_DELAY_DEFAULT
public static final String SECOND_DELAY_KEY
public static final int SECOND_DELAY_DEFAULT
public static final String THIRD_DELAY_KEY
public static final int THIRD_DELAY_DEFAULT
public static final String DEFAULT_THEME_APPLIED_KEY
public static final boolean DEFAULT_THEME_APPLIED_DEFAULT
public LoadingIndicatorConfigurationMap(StateNode node)
node
- the node that the map belongs topublic void setFirstDelay(int firstDelay)
LoadingIndicatorConfiguration
setFirstDelay
in interface LoadingIndicatorConfiguration
firstDelay
- The first delay (in ms)public int getFirstDelay()
LoadingIndicatorConfiguration
getFirstDelay
in interface LoadingIndicatorConfiguration
public void setSecondDelay(int secondDelay)
LoadingIndicatorConfiguration
setSecondDelay
in interface LoadingIndicatorConfiguration
secondDelay
- The delay before going into the "second" state (in ms)public int getSecondDelay()
LoadingIndicatorConfiguration
getSecondDelay
in interface LoadingIndicatorConfiguration
public void setThirdDelay(int thirdDelay)
LoadingIndicatorConfiguration
setThirdDelay
in interface LoadingIndicatorConfiguration
thirdDelay
- The delay before going into the "third" state (in ms)public int getThirdDelay()
LoadingIndicatorConfiguration
getThirdDelay
in interface LoadingIndicatorConfiguration
public boolean isApplyDefaultTheme()
LoadingIndicatorConfiguration
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.
isApplyDefaultTheme
in interface LoadingIndicatorConfiguration
true
for applying default theme, false
for notpublic void setApplyDefaultTheme(boolean applyDefaultTheme)
LoadingIndicatorConfiguration
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.
setApplyDefaultTheme
in interface LoadingIndicatorConfiguration
applyDefaultTheme
- true
to apply default theming, false
for notCopyright © 2020. All rights reserved.