Package com.vaadin.swingkit.client
Class VaadinPanelBuilder
java.lang.Object
com.vaadin.swingkit.client.VaadinPanelBuilder
- Direct Known Subclasses:
JCefVaadinPanelBuilder
Factory that can be used to create Swing panels that can embed Vaadin views.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal JVaadinPanelCreates a newJVaadinPanelloading a Vaadin view in it.protected abstract voidfillPanel(String viewUrl, JVaadinPanel panel) Adds the actual browser view to the panel, in which the Vaadin app can be loaded.protected abstract Class<? extends JVaadinPanel> Get the concrete class implementing theJVaadinPanel.
-
Constructor Details
-
VaadinPanelBuilder
public VaadinPanelBuilder()
-
-
Method Details
-
build
Creates a newJVaadinPanelloading a Vaadin view in it.- Parameters:
viewUrl- URL to a Vaadin view.- Returns:
- a new
JVaadinPanel. - Throws:
SwingVaadinException- if there's any issue when creating the panel.
-
fillPanel
Adds the actual browser view to the panel, in which the Vaadin app can be loaded.- Parameters:
viewUrl- the URL of the Vaadin view.panel- the panel to fill.- Throws:
SwingVaadinException- if any problem occurs when filling the panel.
-
getPanelClass
Get the concrete class implementing theJVaadinPanel.- Returns:
- a concrete class of the implementation of the
JVaadinPanel.
-