public class ImageHighlightButton extends com.google.gwt.user.client.ui.FlowPanel implements com.google.gwt.event.dom.client.HasClickHandlers, DragEventsHandler, IsSWMMobileWidget
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Modifier and Type | Field and Description |
|---|---|
protected com.google.gwt.user.client.ui.Label |
headerText |
protected com.google.gwt.resources.client.ImageResource |
highlightIcon |
protected com.google.gwt.user.client.ui.Image |
icon |
protected com.google.gwt.resources.client.ImageResource |
normalIcon |
| Constructor and Description |
|---|
ImageHighlightButton(com.google.gwt.resources.client.ImageResource normalIcon) |
ImageHighlightButton(com.google.gwt.resources.client.ImageResource normalIcon,
com.google.gwt.event.dom.client.ClickHandler handler) |
ImageHighlightButton(String headerText,
com.google.gwt.resources.client.ImageResource normalIcon,
com.google.gwt.resources.client.ImageResource highlightIcon,
com.google.gwt.event.dom.client.ClickHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler) |
protected void |
highlightIcon() |
void |
onDragEnd(DragEvent e)
When the drag ends
|
void |
onDragMove(DragEvent e)
When the drag is ongoing.
|
void |
onDragStart(DragEvent e)
When the drag starts.
|
void |
onInitialLoad()
When the widget is loaded first time.
|
protected void |
onLoad() |
void |
onTransitionEnd()
When an transition containing this widget ends.
|
protected void |
onUnload() |
void |
setHeaderText(String headerText) |
void |
setHighlightIcon(com.google.gwt.resources.client.ImageResource highlightIcon) |
void |
setIcon(com.google.gwt.resources.client.ImageResource iconResource) |
void |
setNormalIcon(com.google.gwt.resources.client.ImageResource normalIcon) |
void |
setSecondaryStyle(String style)
Will set the secondary style.
|
protected void |
unhighlightIcon() |
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, 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, waitgetElementprotected com.google.gwt.user.client.ui.Image icon
protected com.google.gwt.resources.client.ImageResource normalIcon
protected com.google.gwt.resources.client.ImageResource highlightIcon
protected com.google.gwt.user.client.ui.Label headerText
@UiConstructor public ImageHighlightButton(com.google.gwt.resources.client.ImageResource normalIcon)
public ImageHighlightButton(com.google.gwt.resources.client.ImageResource normalIcon,
com.google.gwt.event.dom.client.ClickHandler handler)
public ImageHighlightButton(String headerText, com.google.gwt.resources.client.ImageResource normalIcon, com.google.gwt.resources.client.ImageResource highlightIcon, com.google.gwt.event.dom.client.ClickHandler handler)
public void setHeaderText(String headerText)
public void setNormalIcon(com.google.gwt.resources.client.ImageResource normalIcon)
public void setHighlightIcon(com.google.gwt.resources.client.ImageResource highlightIcon)
protected void highlightIcon()
protected void unhighlightIcon()
public void setIcon(com.google.gwt.resources.client.ImageResource iconResource)
public com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
addClickHandler in interface com.google.gwt.event.dom.client.HasClickHandlersprotected void onLoad()
onLoad in class com.google.gwt.user.client.ui.Widgetprotected void onUnload()
onUnload in class com.google.gwt.user.client.ui.Widgetpublic void onDragStart(DragEvent e)
DragEventsHandleronDragStart in interface DragEventsHandlere - drag eventpublic void onDragMove(DragEvent e)
DragEventsHandleronDragMove in interface DragEventsHandlere - drag eventpublic void onDragEnd(DragEvent e)
DragEventsHandleronDragEnd in interface DragEventsHandlere - drag eventpublic void onInitialLoad()
IsSWMMobileWidgetonInitialLoad in interface IsSWMMobileWidgetpublic void onTransitionEnd()
IsSWMMobileWidgetonTransitionEnd in interface IsSWMMobileWidgetpublic void setSecondaryStyle(String style)
IsSWMMobileWidgetsetSecondaryStyle in interface IsSWMMobileWidgetstyle - the style to set.Copyright © 2011–2015 SWM. All rights reserved.