public class MaterialImage extends MaterialWidget implements HasCaption, HasType<ImageType>, HasImage, com.google.gwt.event.dom.client.HasLoadHandlers, com.google.gwt.event.dom.client.HasErrorHandlers, HasActivates, com.google.gwt.user.client.ui.HasValue<String>
//Simple Image
<m:MaterialImage url="http://assets.materialup.com/uploads/0587e4a8-6a46-4e27-b8bf-836e4350fe82/candycons.gif"/>
// Circle Image
<m:MaterialImage url="http://assets.materialup.com/uploads/0587e4a8-6a46-4e27-b8bf-836e4350fe82/candycons.gif" type="CIRCLE"/>
// MaterialBoxed Image
<m:MaterialImage url="http://assets.materialup.com/uploads/0587e4a8-6a46-4e27-b8bf-836e4350fe82/candycons.gif" type="MATERIALBOXED"/>
MaterialWidget.Featurecom.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled$this| Constructor and Description |
|---|
MaterialImage()
Creates an empty image.
|
MaterialImage(com.google.gwt.resources.client.ImageResource resource)
Creates an image from an ImageResource.
|
MaterialImage(com.google.gwt.resources.client.ImageResource resource,
ImageType type)
Creates an image from an ImageResource with Specific type.
|
MaterialImage(String url)
Creates a simple image.
|
MaterialImage(String url,
ImageType type)
Creates an image with Specific type.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addErrorHandler(com.google.gwt.event.dom.client.ErrorHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addLoadHandler(com.google.gwt.event.dom.client.LoadHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<String> handler) |
String |
getActivates()
Get the data-activates attribute.
|
protected ActivatesMixin<MaterialImage> |
getActivatesMixin() |
String |
getCaption() |
int |
getHeight() |
protected ImageMixin<MaterialImage> |
getImageMixin() |
com.google.gwt.resources.client.ImageResource |
getResource()
Gets the resource image.
|
ImageType |
getType()
Gets the type of the widget.
|
protected CssTypeMixin<ImageType,MaterialImage> |
getTypeMixin() |
String |
getUrl()
Gets the image url.
|
String |
getValue() |
int |
getWidth() |
protected void |
onLoad() |
void |
setActivates(String activates)
Sets an attribute data-activates to any material components
|
void |
setCaption(String caption) |
void |
setResource(com.google.gwt.resources.client.ImageResource resource)
Sets the resource image.
|
void |
setType(ImageType type)
Sets the type on the widget
|
void |
setUrl(String url)
Sets the url of an image.
|
void |
setValue(String value) |
void |
setValue(String value,
boolean fireEvents) |
$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, 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, 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, spliteratorpublic MaterialImage()
public MaterialImage(String url)
public MaterialImage(String url, ImageType type)
public MaterialImage(com.google.gwt.resources.client.ImageResource resource)
public MaterialImage(com.google.gwt.resources.client.ImageResource resource, ImageType type)
protected void onLoad()
onLoad in class MaterialWidgetpublic void setType(ImageType type)
HasTypepublic ImageType getType()
HasTypepublic String getCaption()
getCaption in interface HasCaptionpublic void setCaption(String caption)
setCaption in interface HasCaptionpublic 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 int getWidth()
getWidth in class MaterialWidgetpublic int getHeight()
public void setActivates(String activates)
HasActivatessetActivates in interface HasActivatespublic String getActivates()
HasActivatesgetActivates in interface HasActivatespublic void setValue(String value, boolean fireEvents)
setValue in interface com.google.gwt.user.client.ui.HasValue<String>public com.google.gwt.event.shared.HandlerRegistration addLoadHandler(com.google.gwt.event.dom.client.LoadHandler handler)
addLoadHandler in interface com.google.gwt.event.dom.client.HasLoadHandlerspublic com.google.gwt.event.shared.HandlerRegistration addErrorHandler(com.google.gwt.event.dom.client.ErrorHandler handler)
addErrorHandler in interface com.google.gwt.event.dom.client.HasErrorHandlerspublic com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<String> handler)
addValueChangeHandler in interface com.google.gwt.event.logical.shared.HasValueChangeHandlers<String>protected CssTypeMixin<ImageType,MaterialImage> getTypeMixin()
protected ImageMixin<MaterialImage> getImageMixin()
protected ActivatesMixin<MaterialImage> getActivatesMixin()
Copyright © 2018. All rights reserved.