public class ImgButton extends Button
Image instead of a
material icon.| Constructor and Description |
|---|
ImgButton()
Setup the button.
|
| Modifier and Type | Method and Description |
|---|---|
static Button |
createFabI(ButtonFabColor color,
Ripple ripple,
com.google.gwt.user.client.ui.Image img)
Setup a fab button.
|
static Button |
createIconI(Ripple ripple,
com.google.gwt.user.client.ui.Image img)
Setup an icon button.
|
static Button |
createMiniFabI(ButtonFabColor color,
Ripple ripple,
com.google.gwt.user.client.ui.Image img)
Setup a mini fab material button.
|
void |
setImage(com.google.gwt.user.client.ui.Image img)
Sets an image for the button.
|
addStyleName, createFab, createFlat, createIcon, createMiniFab, createRaised, getColor, getFabColor, getRipple, getText, getType, setColor, setFabColor, setIcon, setRipple, setText, setType, upgradeaddBlurHandler, addClickHandler, addClickListener, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addFocusHandler, addFocusListener, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addKeyboardListener, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addMouseDownHandler, addMouseListener, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addMouseWheelListener, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, getFocusImpl, getTabIndex, isEnabled, onAttach, removeClickListener, removeFocusListener, removeKeyboardListener, removeMouseListener, removeMouseWheelListener, setAccessKey, setEnabled, setFocus, setTabIndexaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, 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, toStringpublic static Button createFabI(ButtonFabColor color, Ripple ripple, com.google.gwt.user.client.ui.Image img)
color - the background color, should be one of the options provided by
ButtonFabColorripple - determines whether the button has a ripple, one of the options
provided by Rippleimg - the icon to be set for the buttonButton.createFab(ButtonFabColor, Ripple, String)public static Button createIconI(Ripple ripple, com.google.gwt.user.client.ui.Image img)
ripple - determines whether the button has a ripple, one of the options
provided by Rippleimg - a material icon font codeButton.createIcon(ButtonColor, Ripple, String)public static Button createMiniFabI(ButtonFabColor color, Ripple ripple, com.google.gwt.user.client.ui.Image img)
color - the background color, should be one of the options provided by
ButtonFabColorripple - determines whether the button has a ripple, one of the options
provided by Rippleimg - a material icon font codeButton.createMiniFab(ButtonFabColor, Ripple, String)public final void setImage(com.google.gwt.user.client.ui.Image img)
img - the image that will be placed at the center of the buttonCopyright © 2016 com.github.ilyes4j. All rights reserved.