public abstract class AbstractButton extends MaterialWidget implements HasHref, HasGrid, HasActivates, HasTargetHistoryToken, HasType<ButtonType>
MaterialWidget.Featurecom.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled$this| Modifier | Constructor and Description |
|---|---|
protected |
AbstractButton()
Creates button with RAISED type.
|
protected |
AbstractButton(ButtonType type) |
protected |
AbstractButton(ButtonType type,
String text) |
protected |
AbstractButton(ButtonType type,
String text,
Color bgColor) |
protected |
AbstractButton(ButtonType type,
String text,
Color bgColor,
WavesType waves) |
protected |
AbstractButton(String... initialClass) |
protected |
AbstractButton(String text,
Color bgColor,
WavesType waves) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract com.google.gwt.dom.client.Element |
createElement() |
String |
getActivates()
Get the data-activates attribute.
|
protected ActivatesMixin<AbstractButton> |
getActivatesMixin() |
String |
getHref() |
ButtonSize |
getSize()
Get the buttons size.
|
Span |
getSpan() |
String |
getTarget() |
String |
getTargetHistoryToken()
Get the target history token for the widget.
|
String |
getText()
Get the buttons span text.
|
ButtonType |
getType()
Gets the type of the widget.
|
protected CssTypeMixin<ButtonType,AbstractButton> |
getTypeMixin() |
void |
setActivates(String activates)
Sets an attribute data-activates to any material components
|
void |
setHref(String href)
Set the href parameter on material components.
|
void |
setSize(ButtonSize size)
Set the buttons size.
|
void |
setTarget(String target)
Set the target of the href.
|
void |
setTargetHistoryToken(String targetHistoryToken)
Set the target history token for the widget.
|
void |
setText(String text)
Set the buttons span text.
|
void |
setType(ButtonType type)
Sets the type on the widget
|
$this, add, 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, getTabIndex, getTextAlign, getTextAlignMixin, getTextColor, getTooltip, getTooltipDelayMs, getTooltipHTML, getTooltipMixin, getTooltipPosition, getTransform, getTransformMixin, getTransformOrigin, getTransformStyle, getTruncateMixin, getVerticalAlign, getVerticalAlignMixin, getWaves, getWavesMixin, getWidth, insert, insert, isCircle, isDetectOrientation, isEnabled, isFeatureEnabled, isHoverable, isSeparator, isTruncate, onLoad, onUnload, 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, setTabIndex, 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, remove, removeadd, adopt, clear, 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, spliteratorprotected AbstractButton()
protected AbstractButton(String... initialClass)
protected AbstractButton(String text, Color bgColor, WavesType waves)
protected AbstractButton(ButtonType type, String text, Color bgColor, WavesType waves)
protected AbstractButton(ButtonType type, String text, Color bgColor)
protected AbstractButton(ButtonType type, String text)
protected AbstractButton(ButtonType type)
protected abstract com.google.gwt.dom.client.Element createElement()
public void setHref(String href)
HasHrefpublic void setTarget(String target)
HasHrefpublic void setActivates(String activates)
HasActivatessetActivates in interface HasActivatespublic String getActivates()
HasActivatesgetActivates in interface HasActivatespublic void setType(ButtonType type)
HasTypesetType in interface HasType<ButtonType>type - T typepublic ButtonType getType()
HasTypegetType in interface HasType<ButtonType>public void setSize(ButtonSize size)
public ButtonSize getSize()
public void setTargetHistoryToken(String targetHistoryToken)
setTargetHistoryToken(String) or setHref(String), but not both as
setHref(String) resets the target history token.setTargetHistoryToken in interface HasTargetHistoryTokentargetHistoryToken - String target history token of the widgetpublic String getTargetHistoryToken()
null if no
history token has been set or if it has been reset by setHref(String).getTargetHistoryToken in interface HasTargetHistoryTokenprotected ActivatesMixin<AbstractButton> getActivatesMixin()
protected CssTypeMixin<ButtonType,AbstractButton> getTypeMixin()
Copyright © 2018. All rights reserved.