Package com.vaadin.server
Class BootstrapFragmentResponse
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.server.BootstrapResponse
-
- com.vaadin.server.BootstrapFragmentResponse
-
- All Implemented Interfaces:
Serializable
public class BootstrapFragmentResponse extends BootstrapResponse
A representation of a bootstrap fragment being generated. The bootstrap fragment is the HTML code that will make up the actual application. This also includes the JavaScript that initializes the application.- Since:
- 7.0.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description BootstrapFragmentResponse(BootstrapHandler handler, VaadinRequest request, VaadinSession session, Class<? extends UI> uiClass, List<org.jsoup.nodes.Node> fragmentNodes, UIProvider uiProvider)
Crate a new bootstrap fragment response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.jsoup.nodes.Node>
getFragmentNodes()
Gets the list of DOM nodes that will be used to generate the fragment HTML.-
Methods inherited from class com.vaadin.server.BootstrapResponse
getBootstrapHandler, getRequest, getSession, getUiClass, getUIProvider
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
BootstrapFragmentResponse
public BootstrapFragmentResponse(BootstrapHandler handler, VaadinRequest request, VaadinSession session, Class<? extends UI> uiClass, List<org.jsoup.nodes.Node> fragmentNodes, UIProvider uiProvider)
Crate a new bootstrap fragment response.- Parameters:
handler
- the bootstrap handler that is firing the eventrequest
- the Vaadin request for which the bootstrap page should be generatedsession
- the service session for which the bootstrap page should be generateduiClass
- the class of the UI that will be displayed on the pagefragmentNodes
- a mutable list containing the DOM nodes that will make up the application HTMLuiProvider
- the UI provider for the bootstrap- See Also:
BootstrapResponse#BootstrapResponse(BootstrapHandler, VaadinRequest, VaadinSession, Class)
-
-
Method Detail
-
getFragmentNodes
public List<org.jsoup.nodes.Node> getFragmentNodes()
Gets the list of DOM nodes that will be used to generate the fragment HTML. Changes to the returned list will be reflected in the generated HTML.- Returns:
- the current list of DOM nodes that makes up the application fragment
-
-