public class MaterialChip extends AbstractValueWidget<String> implements HasImage, HasIcon, HasLetter, com.google.gwt.user.client.ui.HasValue<String>, com.google.gwt.event.logical.shared.HasCloseHandlers
Simple Chips
<m:MaterialChip text="Default" iconType="CLOSE"/>
// Static Chip
<m:MaterialChip text="Apple" />
// Contact Chips
<m:MaterialChip url="http://b.vimeocdn.com/ps/339/488/3394886_300.jpg" text="Yunalis Mat Zara'ai" iconType="CLOSE"/>
MaterialWidget.Featurecom.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabledcom.google.gwt.editor.client.Editor.Ignore, com.google.gwt.editor.client.Editor.Path$this| Constructor and Description |
|---|
MaterialChip() |
MaterialChip(String text) |
MaterialChip(String text,
Color bgColor,
Color textColor) |
MaterialChip(String text,
IconType icon) |
MaterialChip(String text,
String imageUrl) |
MaterialChip(String text,
String bgColor,
String textColor)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler closeHandler) |
void |
close() |
Span |
getChipLabel() |
MaterialIcon |
getIcon()
Get the icon widget.
|
Color |
getIconColor()
Get the color of the icon
|
MaterialImage |
getImage() |
protected ImageMixin<MaterialImage> |
getImageMixin() |
String |
getLetter()
Get the letter as character.
|
Span |
getLetterLabel()
Get the span / label widget of the letter
|
protected LetterMixin<MaterialChip> |
getLetterMixin() |
com.google.gwt.resources.client.ImageResource |
getResource()
Gets the resource image.
|
String |
getText() |
String |
getUrl()
Gets the image url.
|
String |
getValue() |
boolean |
isIconPrefix()
Is the icon prefix in the container.
|
protected void |
onLoad() |
void |
setIconColor(Color iconColor)
Sets the color of the icon.
|
void |
setIconFontSize(double size,
com.google.gwt.dom.client.Style.Unit unit)
Set the font size of the icon.
|
void |
setIconPosition(IconPosition position)
Set the position of the icon.
|
void |
setIconPrefix(boolean prefix)
Make the icon prefix in its container.
|
void |
setIconSize(IconSize size)
Size of icon.
|
void |
setIconType(IconType iconType)
Set Material Design icon.
|
void |
setImage(MaterialImage image) |
void |
setLetter(String letter)
Set the letter as character.
|
void |
setLetterBackgroundColor(Color letterBackgroundColor)
Set the letter background color.
|
void |
setLetterColor(Color letterColor)
Set the letter color.
|
void |
setResource(com.google.gwt.resources.client.ImageResource resource)
Sets the resource image.
|
void |
setText(String text) |
void |
setUrl(String url)
Sets the url of an image.
|
void |
setValue(String value,
boolean fireEvents) |
addValidationChangedHandler, addValidator, addValueChangeHandler, clearErrorOrSuccess, createBlankValidator, getErrorHandler, getErrorHandlerMixin, getErrorHandlerType, getErrorMixin, getValidatorMixin, isAllowBlank, isValidateOnBlur, removeValidator, reset, setAllowBlank, setError, setErrorHandler, setErrorHandlerType, setHelperText, setSuccess, setupBlurValidation, setValidateOnBlur, setValidators, setValue, setValue, showErrors, validate, validate$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, 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, 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, waitaddValueChangeHandlersetVisibleforEach, spliteratorpublic MaterialChip()
public MaterialChip(String text)
public MaterialChip(String text, IconType icon)
public MaterialChip(String text, String imageUrl)
public MaterialChip(String text, Color bgColor, Color textColor)
@Deprecated public MaterialChip(String text, String bgColor, String textColor)
protected void onLoad()
onLoad in class MaterialWidgetpublic void close()
public void setValue(String value, boolean fireEvents)
setValue in interface com.google.gwt.user.client.ui.HasValue<String>setValue in class AbstractValueWidget<String>public void setUrl(String url)
HasImagepublic void setResource(com.google.gwt.resources.client.ImageResource resource)
HasImagesetResource in interface HasImagepublic com.google.gwt.resources.client.ImageResource getResource()
HasImagegetResource in interface HasImagepublic MaterialIcon getIcon()
HasIconpublic void setIconType(IconType iconType)
HasIconsetIconType in interface HasIconpublic void setIconPosition(IconPosition position)
HasIconsetIconPosition in interface HasIconpublic void setIconSize(IconSize size)
HasIconsetIconSize in interface HasIconpublic void setIconFontSize(double size, com.google.gwt.dom.client.Style.Unit unit)
HasIconsetIconFontSize in interface HasIconpublic void setIconColor(Color iconColor)
HasIconsetIconColor in interface HasIconpublic Color getIconColor()
HasIcongetIconColor in interface HasIconpublic void setIconPrefix(boolean prefix)
HasIconsetIconPrefix in interface HasIconpublic boolean isIconPrefix()
HasIconisIconPrefix in interface HasIconpublic void setLetter(String letter)
HasLetterpublic String getLetter()
HasLetterpublic Span getLetterLabel()
HasLettergetLetterLabel in interface HasLetterpublic void setLetterColor(Color letterColor)
HasLettersetLetterColor in interface HasLetterpublic void setLetterBackgroundColor(Color letterBackgroundColor)
HasLettersetLetterBackgroundColor in interface HasLetterpublic MaterialImage getImage()
public void setImage(MaterialImage image)
public Span getChipLabel()
public com.google.gwt.event.shared.HandlerRegistration addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler closeHandler)
addCloseHandler in interface com.google.gwt.event.logical.shared.HasCloseHandlersprotected LetterMixin<MaterialChip> getLetterMixin()
protected ImageMixin<MaterialImage> getImageMixin()
Copyright © 2018. All rights reserved.