Package org.primefaces
Class PrimeFaces.MultiViewState
- java.lang.Object
-
- org.primefaces.PrimeFaces.MultiViewState
-
- Enclosing class:
- PrimeFaces
public class PrimeFaces.MultiViewState extends Object
-
-
Constructor Summary
Constructors Constructor Description MultiViewState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear(String viewId, String clientId)Removes multiViewState of a component in specific view within the current session.voidclear(String viewId, String clientId, boolean reset)Removes multiViewState of a component in specific view within the current session.voidclearAll()Removes all multiViewState within the current session.voidclearAll(boolean reset)Removes all multiViewState within the current session.voidclearAll(boolean reset, Consumer<String> clientIdConsumer)Removes all multiViewState within the current session.voidclearAll(String viewId, boolean reset)Removes all multiViewState in specific view within the current session.voidclearAll(String viewId, boolean reset, Consumer<String> clientIdConsumer)Removes all multiViewState in specific view within the current session.<T> Tget(String viewId, String clientId, boolean create, Supplier<T> supplier)Gets multiview state bean attached to a component in a specific view.
-
-
-
Method Detail
-
clearAll
public void clearAll()
Removes all multiViewState within the current session.
-
clearAll
public void clearAll(boolean reset)
Removes all multiViewState within the current session.- Parameters:
reset- indicates whether or not the component should be reset, if it is in the current view
-
clearAll
public void clearAll(boolean reset, Consumer<String> clientIdConsumer)Removes all multiViewState within the current session.- Parameters:
reset- indicates whether or not the component should be reset, if it is in the current viewclientIdConsumer- Callback for each removed clientId
-
clearAll
public void clearAll(String viewId, boolean reset)
Removes all multiViewState in specific view within the current session.- Parameters:
viewId- viewId in which multiview state should be clearedreset- indicates whether or not the component should be reset, if it is in the current view
-
clearAll
public void clearAll(String viewId, boolean reset, Consumer<String> clientIdConsumer)
Removes all multiViewState in specific view within the current session.- Parameters:
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 cleared
-
clear
public void clear(String viewId, String clientId)
Removes multiViewState of a component in specific view within the current session.- Parameters:
viewId- viewId of a pageclientId- clientId of a component for which multiview state should be cleared
-
clear
public void clear(String viewId, String clientId, boolean reset)
Removes multiViewState of a component in specific view within the current session.- Parameters:
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 reset
-
get
public <T> T get(String viewId, String clientId, boolean create, Supplier<T> supplier)
Gets multiview state bean attached to a component in a specific view.- Type Parameters:
T- bean state generic- Parameters:
viewId- 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 instance- Returns:
- multiview state bean attached to a component
-
-