public class AppShellSettings extends Object implements Serializable
| Constructor and Description |
|---|
AppShellSettings() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFavIcon(Inline.Position position,
String rel,
String href,
String sizes)
Append a fav icon link to initial page head.
|
void |
addFavIcon(String rel,
String href,
String sizes)
Append a fav icon link to initial page head.
|
void |
addInlineFromFile(Inline.Position position,
String file,
Inline.Wrapping type)
Inline contents from classpath file to head of initial page.
|
void |
addInlineFromFile(String file,
Inline.Wrapping type)
Inline contents from classpath file to append to head of initial page.
|
void |
addInlineFromFile(TargetElement target,
Inline.Position position,
String file,
Inline.Wrapping type)
Inline contents from classpath file to head of initial page.
|
void |
addInlineWithContents(Inline.Position position,
String contents,
Inline.Wrapping type)
Add content to head of initial page.
|
void |
addInlineWithContents(String contents,
Inline.Wrapping type)
Add content to append to head of initial page.
|
void |
addInlineWithContents(TargetElement target,
Inline.Position position,
String contents,
Inline.Wrapping type)
Add content to the specified target of initial page.
|
void |
addLink(Inline.Position position,
String href)
Add a link to initial page head.
|
void |
addLink(Inline.Position position,
String href,
Map<String,String> attributes)
Add a link to initial page head.
|
void |
addLink(Inline.Position position,
String rel,
String href)
Add a link to initial page head.
|
void |
addLink(String href)
Add a link to be appended to initial page head.
|
void |
addLink(String href,
Map<String,String> attributes)
Append a link to initial page head.
|
void |
addLink(String rel,
String href)
Append a link to initial page head.
|
void |
addMetaTag(Inline.Position position,
String name,
String content)
Add a meta tag to initial page head.
|
void |
addMetaTag(String name,
String content)
Add a meta tag to be appended to initial page head.
|
Optional<WebBrowser> |
getBrowser()
Get the web browser used for the request used for these settings.
|
Optional<LoadingIndicatorConfiguration> |
getLoadingIndicatorConfiguration()
Returns the configuration object for loading indicator.
|
Optional<PushConfiguration> |
getPushConfiguration()
Returns the object used for configuring the push channel.
|
Optional<ReconnectDialogConfiguration> |
getReconnectDialogConfiguration()
Returns the configuration object for reconnect dialog.
|
VaadinRequest |
getRequest()
Get the current request.
|
Optional<UI> |
getUi()
Get the target UI instance.
|
void |
setBodySize(String width,
String height)
Set the body size.
|
void |
setPageTitle(String title)
Set the page title.
|
void |
setViewport(String viewport)
Set the viewport value.
|
public VaadinRequest getRequest()
public Optional<WebBrowser> getBrowser()
public void setViewport(String viewport)
Viewport
annotation. If the method is called multiple times, the last one will be
used.viewport - viewport value to setpublic void setBodySize(String width, String height)
width - body withheight - body heightpublic void setPageTitle(String title)
title - titlepublic void addInlineFromFile(String file, Inline.Wrapping type)
file - dependency file to read and write to headtype - dependency typepublic void addInlineFromFile(Inline.Position position, String file, Inline.Wrapping type)
position - prepend or appendfile - dependency file to read and write to headtype - dependency typepublic void addInlineFromFile(TargetElement target, Inline.Position position, String file, Inline.Wrapping type)
target - head of bodyposition - prepend or appendfile - dependency file to read and write to headtype - dependency typepublic void addInlineWithContents(String contents, Inline.Wrapping type)
contents - inline content to be added to the pagetype - type of content which can be JavaScript or Stylesheet (CSS)public void addInlineWithContents(Inline.Position position, String contents, Inline.Wrapping type)
position - prepend or appendcontents - inline content to be added to the pagetype - type of content which can be JavaScript or Stylesheet (CSS)public void addInlineWithContents(TargetElement target, Inline.Position position, String contents, Inline.Wrapping type)
target - head of bodyposition - prepend or appendcontents - inline content to be added to the pagetype - type of content which can be JavaScript or Stylesheet (CSS)public void addLink(String href)
href - link hrefpublic void addLink(Inline.Position position, String href)
position - prepend or appendhref - link hrefpublic void addLink(String href, Map<String,String> attributes)
href - location of the linked documentattributes - map of attributes for link elementpublic void addLink(Inline.Position position, String href, Map<String,String> attributes)
position - prepend or appendhref - location of the linked documentattributes - map of attributes for link elementpublic void addLink(String rel, String href)
rel - link relationshiphref - location of the linked documentpublic void addLink(Inline.Position position, String rel, String href)
position - prepend or appendrel - link relationshiphref - location of the linked documentpublic void addFavIcon(String rel, String href, String sizes)
rel - link relationshiphref - location of the fav iconsizes - size of the linked fav iconpublic void addFavIcon(Inline.Position position, String rel, String href, String sizes)
position - prepend or appendrel - link relationshiphref - location of the fav iconsizes - size of the linked fav iconpublic void addMetaTag(String name, String content)
name - meta tag namecontent - meta tag contentpublic void addMetaTag(Inline.Position position, String name, String content)
position - prepend or appendname - meta tag namecontent - meta tag contentpublic Optional<LoadingIndicatorConfiguration> getLoadingIndicatorConfiguration()
public Optional<ReconnectDialogConfiguration> getReconnectDialogConfiguration()
public Optional<PushConfiguration> getPushConfiguration()
Copyright © 2020. All rights reserved.