@Tag(value="vaadin-app-layout") @HtmlImport(value="frontend://bower_components/vaadin-app-layout/src/vaadin-app-layout.html") public class AppLayout extends Component
<vaadin-app-layout> element.
Provides a quick and easy way to get a common application layout.| Constructor and Description |
|---|
AppLayout() |
| Modifier and Type | Method and Description |
|---|---|
AppLayoutMenu |
createMenu()
Creates a new empty AppLayoutMenu and sets it as the menu for this AppLayout instance.
|
Element |
getContent()
Returns the
Element |
Element |
getMenu() |
void |
removeBranding()
Clears the branding area
|
void |
removeContent()
Removes the displayed content.
|
void |
removeMenu()
Remove the menu.
|
void |
setBranding(Component branding)
Sets the component into branding area
|
void |
setBranding(Element branding)
Sets the element into branding area
|
void |
setContent(Component content)
Sets the displayed content.
|
void |
setContent(Element content)
Sets the displayed content.
|
void |
setMenu(Element menu)
Sets the element to be placed in the menu slot.
|
void |
setMenu(HasElement menu)
Sets the component to be placed in the menu slot.
|
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAttachListeneraddDetachListenerpublic void setBranding(Component branding)
branding - Component to set into branding areapublic void setBranding(Element branding)
branding - Element to set into branding areapublic void removeBranding()
public void setContent(Component content)
content - Component to display in the content areapublic void setContent(Element content)
content - Element to display in the content areapublic void removeContent()
public void setMenu(HasElement menu)
menu - HasElement to placed in the menu slot.public void setMenu(Element menu)
menu - Element to placed in the menu slot.public AppLayoutMenu createMenu()
AppLayoutMenu created.public void removeMenu()
Copyright © 2018. All rights reserved.