public class MaterialSideNav extends MaterialWidget implements HasType<SideNavType>, HasSelectables
<m:MaterialSideNav ui:field="sideNav" width="280" m:id="mysidebar" type="OPEN" closeOnClick="false">
<m:MaterialLink href="#about" iconPosition="LEFT" iconType="OUTLINE" text="About" textColor="blue" />
<m:MaterialLink href="#gettingStarted" iconPosition="LEFT" iconType="DOWNLOAD" text="Getting Started" textColor="blue" >
</m:MaterialSideNav>
MaterialWidget.Featurecom.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Constructor and Description |
|---|
MaterialSideNav()
Container for App Toolbar and App Sidebar , contains Material Links,
Icons or any other material components.
|
MaterialSideNav(SideNavType type) |
MaterialSideNav(com.google.gwt.user.client.ui.Widget... widgets)
Creates a list and adds the given widgets.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.google.gwt.user.client.ui.Widget child) |
com.google.web.bindery.event.shared.HandlerRegistration |
addClosedHandler(SideNavClosedEvent.SideNavClosedHandler handler)
This handler will be triggered when the side nav is closed.
|
com.google.web.bindery.event.shared.HandlerRegistration |
addClosingHandler(SideNavClosingEvent.SideNavClosingHandler handler)
This handler will be triggered when the side nav starts closing.
|
com.google.web.bindery.event.shared.HandlerRegistration |
addOpenedHandler(SideNavOpenedEvent.SideNavOpenedHandler handler)
This handler will be triggered when the side nav is opened.
|
com.google.web.bindery.event.shared.HandlerRegistration |
addOpeningHandler(SideNavOpeningEvent.SideNavOpeningHandler handler)
This handler will be triggered when the side nav starts opening.
|
protected void |
applyPushType(com.google.gwt.dom.client.Element element,
com.google.gwt.dom.client.Element activator,
double width)
Push the header, footer, and main to the right part when Close type is applied.
|
void |
clearActive() |
Edge |
getEdge() |
SideNavType |
getType()
Gets the type of the widget.
|
int |
getWidth() |
void |
hide()
Hide the sidenav using the activator element
|
protected void |
hide(com.google.gwt.dom.client.Element e)
Hide the sidenav.
|
void |
hideOverlay()
Hide the overlay menu.
|
protected void |
initialize() |
protected void |
initialize(boolean strict) |
protected void |
initialize(com.google.gwt.dom.client.Element e,
int width,
boolean closeOnClick,
String edge) |
protected void |
insert(com.google.gwt.user.client.ui.Widget child,
com.google.gwt.user.client.Element container,
int beforeIndex,
boolean domInsert) |
boolean |
isAllowBodyScroll()
Will the body have scroll capability
while the menu is open.
|
boolean |
isAlwaysShowActivator()
Will the activator always be shown.
|
boolean |
isCloseOnClick() |
boolean |
isFixed() |
boolean |
isOpen() |
boolean |
isShowOnAttach()
Will the menu forcefully show on attachment.
|
protected boolean |
isSmall() |
protected void |
onClosed() |
protected void |
onClosing() |
void |
onLoad() |
protected void |
onOpened() |
protected void |
onOpening() |
protected void |
onPush(boolean toggle,
int width,
int duration) |
protected void |
processType(SideNavType type) |
protected void |
pushElements(boolean toggle,
int width) |
void |
reinitialize()
reinitialize the side nav configurations when changing
properties.
|
void |
setAllowBodyScroll(boolean allowBodyScroll)
Allow the body to maintain its scroll capability
while the menu is visible.
|
void |
setAlwaysShowActivator(boolean alwaysShowActivator)
Disable the hiding of your activator element.
|
void |
setCloseOnClick(boolean closeOnClick)
Close the side nav menu when an \ tag is clicked
from inside it.
|
void |
setEdge(Edge edge)
Set which edge of the window the menu should attach to.
|
void |
setFixed(boolean fixed)
Fixed determines its display state on loading
(fixed being visible on load).
|
void |
setShowOnAttach(boolean showOnAttach)
Show the menu upon attachment, this isn't always required.
|
void |
setType(SideNavType type)
Define the menu's type specification.
|
void |
setWidth(int width)
Set the menu's width in pixels.
|
void |
setWidth(String width) |
void |
show()
Show the sidenav using the activator element
|
protected void |
show(com.google.gwt.dom.client.Element e)
Show the sidenav.
|
com.google.gwt.user.client.ui.Widget |
wrap(com.google.gwt.user.client.ui.Widget child) |
add, clearActiveClass, enableFeature, getBackgroundColor, getCenterOn, getCenterOnMixin, getCircleMixin, getColorsMixin, getDataAttribute, getDepth, getEnabledMixin, getFlexboxMixin, getFloat, getFloatMixin, getFocusableMixin, getFontSize, getFontSizeMixin, getFontWeight, getFontWeightMixin, getGridMixin, getHideOn, getHideOnMixin, getHoverableMixin, getId, getIdMixin, getInitialClasses, getOpacity, getScrollspy, getScrollspyMixin, getSeparatorMixin, getShadow, getShadowMixin, getShowOn, getShowOnMixin, getTabIndex, getTextAlign, getTextAlignMixin, getTextColor, getTooltip, getTooltipDelayMs, getTooltipMixin, getTooltipPosition, getTruncateMixin, getWaves, getWavesMixin, getWidth, insert, isCircle, isEnabled, isFeatureEnabled, isHoverable, isSeparator, setAccessKey, setBackgroundColor, setBottom, setCenterOn, setCircle, setDataAttribute, setDepth, setDisplay, setEnabled, setFlex, setFlexAlignContent, setFlexAlignItems, setFlexAlignSelf, setFlexBasis, setFlexDirection, setFlexGrow, setFlexJustifyContent, setFlexOrder, setFlexShrink, setFlexWrap, setFloat, setFocus, setFontSize, setFontSize, setFontWeight, setGrid, setGwtDisplay, setHideOn, setHoverable, setId, setInitialClasses, setLayoutPosition, setLeft, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setOffset, setOpacity, setOverflow, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setRight, setScrollspy, setSeparator, setShadow, setShowOn, setTabIndex, setTextAlign, setTextColor, setTooltip, setTooltipDelayMs, setTooltipPosition, setTop, setTruncate, setVisibility, setWaves, stopTouchStartEvent, stopTouchStartEventadd, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, iterator, remove, removeadd, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetVisibleforEach, spliteratorpublic MaterialSideNav()
public MaterialSideNav(com.google.gwt.user.client.ui.Widget... widgets)
@UiConstructor public MaterialSideNav(SideNavType type)
public void onLoad()
onLoad in class MaterialWidgetpublic com.google.web.bindery.event.shared.HandlerRegistration addOpeningHandler(SideNavOpeningEvent.SideNavOpeningHandler handler)
public com.google.web.bindery.event.shared.HandlerRegistration addOpenedHandler(SideNavOpenedEvent.SideNavOpenedHandler handler)
public com.google.web.bindery.event.shared.HandlerRegistration addClosingHandler(SideNavClosingEvent.SideNavClosingHandler handler)
public com.google.web.bindery.event.shared.HandlerRegistration addClosedHandler(SideNavClosedEvent.SideNavClosedHandler handler)
public com.google.gwt.user.client.ui.Widget wrap(com.google.gwt.user.client.ui.Widget child)
public void add(com.google.gwt.user.client.ui.Widget child)
add in interface com.google.gwt.user.client.ui.HasWidgetsadd in class MaterialWidgetprotected void insert(com.google.gwt.user.client.ui.Widget child, com.google.gwt.user.client.Element container, int beforeIndex, boolean domInsert)
insert in class MaterialWidgetpublic void setWidth(String width)
setWidth in class com.google.gwt.user.client.ui.UIObjectpublic void setWidth(int width)
public int getWidth()
getWidth in class MaterialWidgetpublic boolean isCloseOnClick()
public void setCloseOnClick(boolean closeOnClick)
MaterialLink.public boolean isFixed()
public void setFixed(boolean fixed)
public void setType(SideNavType type)
setType in interface HasType<SideNavType>type - T typepublic SideNavType getType()
HasTypegetType in interface HasType<SideNavType>protected void processType(SideNavType type)
protected boolean isSmall()
protected void applyPushType(com.google.gwt.dom.client.Element element, com.google.gwt.dom.client.Element activator, double width)
protected void pushElements(boolean toggle, int width)
protected void onPush(boolean toggle, int width, int duration)
public void clearActive()
clearActive in interface HasSelectablespublic void reinitialize()
protected void initialize()
protected void initialize(boolean strict)
protected void initialize(com.google.gwt.dom.client.Element e, int width, boolean closeOnClick, String edge)
protected void onClosing()
protected void onClosed()
protected void onOpening()
protected void onOpened()
public void hideOverlay()
protected void show(com.google.gwt.dom.client.Element e)
protected void hide(com.google.gwt.dom.client.Element e)
public void show()
public void hide()
public boolean isOpen()
public boolean isAllowBodyScroll()
public void setAllowBodyScroll(boolean allowBodyScroll)
public boolean isAlwaysShowActivator()
public void setAlwaysShowActivator(boolean alwaysShowActivator)
public boolean isShowOnAttach()
public void setShowOnAttach(boolean showOnAttach)
Copyright © 2016. All rights reserved.