public class MaterialTab extends UnorderedList implements JsLoader, HasType<TabType>, com.google.gwt.event.logical.shared.HasSelectionHandlers<Integer>
<m:MaterialTab ui:field="tab" backgroundColor="BLUE">
<m:MaterialTabItem waves="YELLOW" grid="l4"><i:Link text="Tab 1" href="#tab1" textColor="WHITE"/></m:MaterialTabItem>
<m:MaterialTabItem waves="YELLOW" grid="l4"><i:Link text="Tab 2" href="#tab2" textColor="WHITE"/></m:MaterialTabItem>
<m:MaterialTabItem waves="YELLOW" grid="l4"><i:Link text="Tab 3" href="#tab3" textColor="WHITE"/></m:MaterialTabItem>
</m:MaterialTab>
<m:MaterialPanel m:id="tab1">
<m:MaterialTitle title="Tab 1" description="Tab 1 Content"/>
</m:MaterialPanel>
<m:MaterialPanel m:id="tab2">
<m:MaterialTitle title="Tab 2" description="Tab 2 Content"/>
<m:MaterialPanel>
<i:Panel m:id="tab3">
<m:MaterialTitle title="Tab 3" description="Tab 3 Content"/>
</m:MaterialPanel>
MaterialWidget.Featurecom.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled$this| Constructor and Description |
|---|
MaterialTab() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.google.gwt.user.client.ui.Widget child) |
com.google.gwt.event.shared.HandlerRegistration |
addSelectionHandler(com.google.gwt.event.logical.shared.SelectionHandler<Integer> handler) |
protected void |
applyIndicator() |
void |
clear() |
protected void |
clearAllIndicators() |
protected com.google.gwt.dom.client.Element |
getIndicatorElement() |
int |
getTabIndex() |
TabType |
getType()
Gets the type of the widget.
|
protected CssTypeMixin<TabType,MaterialTab> |
getTypeMixin() |
void |
insert(com.google.gwt.user.client.ui.Widget child,
int beforeIndex)
Inserts a widget at a specific index
|
void |
load() |
protected void |
onLoad() |
protected void |
onUnload() |
protected void |
registerChildHandler(com.google.gwt.user.client.ui.Widget child) |
void |
reload() |
boolean |
remove(com.google.gwt.user.client.ui.Widget w) |
void |
selectTab(String tabId)
Select a given tab by id.
|
void |
setIndicatorColor(Color indicatorColor) |
void |
setTabIndex(int tabIndex) |
void |
setType(TabType type)
Sets the type on the widget
|
void |
unload() |
$this, add, addAttachHandler, addBlurHandler, addClickHandler, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragLeaveHandler, addDragMoveHandler, addDragOverHandler, addDragStartHandler, addDropActivateHandler, addDropDeactivateHandler, addDropHandler, addFocusHandler, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addOrientationChangeHandler, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, body, clearActiveClass, enableFeature, getBackfaceVisibility, getBackgroundColor, getBorder, getBorderBottom, getBorderLeft, getBorderMixin, getBorderRadius, getBorderRight, getBorderTop, getCenterOn, getCenterOnMixin, getChildren, getChildrenList, getCircleMixin, getColorsMixin, getDataAttribute, getDepth, getDimensionMixin, getEnabledMixin, getFlexboxMixin, getFloat, getFloatMixin, getFocusableMixin, getFontSize, getFontSizeMixin, getFontWeight, getFontWeightMixin, getGridMixin, getHandlerRegistry, getHideOn, getHideOnMixin, getHoverableMixin, getId, getIdMixin, getInitialClasses, getLayoutPosition, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpacity, getOrientation, getOrientationMixin, getPerspective, getPerspectiveOrigin, getScrollspy, getScrollspyMixin, getSeparatorMixin, getShadow, getShadowMixin, getShowOn, getShowOnMixin, getTextAlign, getTextAlignMixin, getTextColor, getTooltip, getTooltipDelayMs, getTooltipHTML, getTooltipMixin, getTooltipPosition, getTransform, getTransformMixin, getTransformOrigin, getTransformStyle, getTruncateMixin, getVerticalAlign, getVerticalAlignMixin, getWaves, getWavesMixin, getWidth, insert, isCircle, isDetectOrientation, isEnabled, isFeatureEnabled, isHoverable, isSeparator, isTruncate, registerHandler, removeHandler, setAccessKey, setBackfaceVisibility, setBackgroundColor, setBorder, setBorderBottom, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBottom, setCenterOn, setCircle, setClass, setDataAttribute, setDepth, setDetectOrientation, 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, setLineHeight, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOffset, setOpacity, setOrientation, setOverflow, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPerspective, setPerspectiveOrigin, setRight, setScrollspy, setSeparator, setShadow, setShowOn, setStyle, setTextAlign, setTextColor, setTooltip, setTooltipDelayMs, setTooltipHTML, setTooltipPosition, setTop, setTransform, setTransformOrigin, setTransformStyle, setTransition, setTruncate, setVerticalAlign, setVisibility, setWaves, stopTouchStartEvent, validate, windowadd, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, iterator, removeadd, adopt, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, 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, setWidth, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetVisibleforEach, spliteratorpublic MaterialTab()
protected void onLoad()
onLoad in class MaterialWidgetprotected void onUnload()
onUnload in class MaterialWidgetpublic void selectTab(String tabId)
tabId - Tab to selects id.public void add(com.google.gwt.user.client.ui.Widget child)
add in interface com.google.gwt.user.client.ui.HasWidgetsadd in class UnorderedListprotected void registerChildHandler(com.google.gwt.user.client.ui.Widget child)
public void clear()
clear in interface com.google.gwt.user.client.ui.HasWidgetsclear in class com.google.gwt.user.client.ui.Panelpublic boolean remove(com.google.gwt.user.client.ui.Widget w)
remove in interface com.google.gwt.user.client.ui.HasWidgetsremove in class com.google.gwt.user.client.ui.ComplexPanelpublic void insert(com.google.gwt.user.client.ui.Widget child, int beforeIndex)
MaterialWidgetinsert in class MaterialWidgetchild - - widget to be insertedbeforeIndex - - index for the widgetprotected void applyIndicator()
protected void clearAllIndicators()
public int getTabIndex()
getTabIndex in interface com.google.gwt.user.client.ui.FocusablegetTabIndex in class MaterialWidgetpublic void setTabIndex(int tabIndex)
setTabIndex in interface com.google.gwt.user.client.ui.FocusablesetTabIndex in class MaterialWidgetpublic void setIndicatorColor(Color indicatorColor)
protected com.google.gwt.dom.client.Element getIndicatorElement()
public void setType(TabType type)
HasTypepublic TabType getType()
HasTypepublic com.google.gwt.event.shared.HandlerRegistration addSelectionHandler(com.google.gwt.event.logical.shared.SelectionHandler<Integer> handler)
addSelectionHandler in interface com.google.gwt.event.logical.shared.HasSelectionHandlers<Integer>protected CssTypeMixin<TabType,MaterialTab> getTypeMixin()
Copyright © 2018. All rights reserved.