public class PrimeFaces.MultiViewState extends Object
Constructor and Description |
---|
MultiViewState() |
Modifier and Type | Method and Description |
---|---|
void |
clear(String viewId,
String clientId)
Removes multiViewState of a component in specific view within the current session.
|
void |
clear(String viewId,
String clientId,
boolean reset)
Removes multiViewState of a component in specific view within the current session.
|
void |
clearAll()
Removes all multiViewState within the current session.
|
void |
clearAll(boolean reset)
Removes all multiViewState within the current session.
|
void |
clearAll(boolean reset,
Consumer<String> clientIdConsumer)
Removes all multiViewState within the current session.
|
void |
clearAll(String viewId,
boolean reset)
Removes all multiViewState in specific view within the current session.
|
void |
clearAll(String viewId,
boolean reset,
Consumer<String> clientIdConsumer)
Removes all multiViewState in specific view within the current session.
|
<T> T |
get(String viewId,
String clientId,
boolean create,
Supplier<T> supplier)
Gets multiview state bean attached to a component in a specific view.
|
public void clearAll()
public void clearAll(boolean reset)
reset
- indicates whether or not the component should be reset, if it is in the current viewpublic void clearAll(boolean reset, Consumer<String> clientIdConsumer)
reset
- indicates whether or not the component should be reset, if it is in the current viewclientIdConsumer
- Callback for each removed clientIdpublic void clearAll(String viewId, boolean reset)
viewId
- viewId in which multiview state should be clearedreset
- indicates whether or not the component should be reset, if it is in the current viewpublic void clearAll(String viewId, boolean reset, Consumer<String> clientIdConsumer)
viewId
- viewId in which multiview state should be clearedreset
- indicates whether or not the component should be reset, if it is in the current viewclientIdConsumer
- operation to execute for every clientId after multiview state has been clearedpublic void clear(String viewId, String clientId)
viewId
- viewId of a pageclientId
- clientId of a component for which multiview state should be clearedpublic void clear(String viewId, String clientId, boolean reset)
viewId
- viewId of a pageclientId
- clientId of a component for which multiview state should be cleared, if it is in the current viewreset
- indicates whether or not the component should be resetpublic <T> T get(String viewId, String clientId, boolean create, Supplier<T> supplier)
T
- bean state genericviewId
- viewId of a pageclientId
- clientId of a componentcreate
- flag indicating if bean state should be created if does not exist in curent sessionsupplier
- bean state instanceCopyright © 2020. All rights reserved.