All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vaadin.polymer.app.widget.AppHeaderLayout Maven / Gradle / Ivy

The newest version!
/*
 * This code was generated with Vaadin Web Component GWT API Generator, 
 * from app-layout project by The Polymer Authors
 * that is licensed with https://polymer.github.io/LICENSE.txt license.
 */
package com.vaadin.polymer.app.widget;

import com.vaadin.polymer.app.*;

import com.vaadin.polymer.*;
import com.vaadin.polymer.elemental.*;
import com.vaadin.polymer.PolymerWidget;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.core.client.JavaScriptObject;

/**
 * 

app-header-layout is a wrapper element that positions an app-header and other content. This
element uses the document scroll by default, but it can also define its own scrolling region.

*

Using the document scroll:

*
<app-header-layout>
 *   <app-header fixed condenses effects="waterfall">
 *     <app-toolbar>
 *       <div main-title>App name</div>
 *     </app-toolbar>
 *   </app-header>
 *   <div>
 *     main content
 *   </div>
 * </app-header-layout>
 * 
*

Using an own scrolling region:

*
<app-header-layout has-scrolling-region style="width: 300px; height: 400px;">
 *   <app-header fixed condenses effects="waterfall">
 *     <app-toolbar>
 *       <div main-title>App name</div>
 *     </app-toolbar>
 *   </app-header>
 *   <div>
 *     main content
 *   </div>
 * </app-header-layout>
 * 
*

Add the fullbleed attribute to app-header-layout to make it fit the size of its container:

*
<app-header-layout fullbleed>
 *  ...
 * </app-header-layout>
 * 
*/ public class AppHeaderLayout extends PolymerWidget { /** * Default Constructor. */ public AppHeaderLayout() { this(""); } /** * Constructor used by UIBinder to create widgets with content. */ public AppHeaderLayout(String html) { super(AppHeaderLayoutElement.TAG, AppHeaderLayoutElement.SRC, html); } /** * Gets a handle to the Polymer object's underlying DOM element. */ public AppHeaderLayoutElement getPolymerElement() { return (AppHeaderLayoutElement) getElement(); } /** *

If true, the current element will have its own scrolling region.
Otherwise, it will use the document scroll to control the header.

* * JavaScript Info: * @property hasScrollingRegion * @type Boolean * */ public boolean getHasScrollingRegion() { return getPolymerElement().getHasScrollingRegion(); } /** *

If true, the current element will have its own scrolling region.
Otherwise, it will use the document scroll to control the header.

* * JavaScript Info: * @property hasScrollingRegion * @type Boolean * */ public void setHasScrollingRegion(boolean value) { getPolymerElement().setHasScrollingRegion(value); } /** *

Used to remove a resizable descendant from the list of descendants
that should be notified of a resize change.

* * JavaScript Info: * @method stopResizeNotificationsFor * @param {} target * @behavior VaadinSplitLayout * */ public void stopResizeNotificationsFor(Object target) { getPolymerElement().stopResizeNotificationsFor(target); } /** *

Used to assign the closest resizable ancestor to this resizable
if the ancestor detects a request for notifications.

* * JavaScript Info: * @method assignParentResizable * @param {} parentResizable * @behavior VaadinSplitLayout * */ public void assignParentResizable(Object parentResizable) { getPolymerElement().assignParentResizable(parentResizable); } /** *

Resets the layout. This method is automatically called when the element is attached
to the DOM.

* * JavaScript Info: * @method resetLayout * * */ public void resetLayout() { getPolymerElement().resetLayout(); } /** *

Can be called to manually notify a resizable and its descendant
resizables of a resize change.

* * JavaScript Info: * @method notifyResize * @behavior VaadinSplitLayout * */ public void notifyResize() { getPolymerElement().notifyResize(); } /** *

This method can be overridden to filter nested elements that should or
should not be notified by the current element. Return true if an element
should be notified, or false if it should not be notified.

* * JavaScript Info: * @method resizerShouldNotify * @param {HTMLElement} element * @behavior VaadinSplitLayout * @return {boolean} */ public boolean resizerShouldNotify(JavaScriptObject element) { return getPolymerElement().resizerShouldNotify(element); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy