org.gwtbootstrap3.client.ui
Class ThumbnailLink

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.ComplexPanel
                  extended by org.gwtbootstrap3.client.ui.base.ComplexWidget
                      extended by org.gwtbootstrap3.client.ui.ThumbnailLink
All Implemented Interfaces:
HasClickHandlers, HasDoubleClickHandlers, HasAttachHandlers, HasHandlers, EventListener, Focusable, HasVisibility, HasWidgets, HasWidgets.ForIsWidget, IndexedPanel, IndexedPanel.ForIsWidget, IsWidget, Iterable<Widget>, HasDataToggle, HasHref, HasId, HasInlineStyle, HasPull, HasResponsiveness, HasTarget, HasTargetHistoryToken

public class ThumbnailLink
extends ComplexWidget
implements HasClickHandlers, HasDoubleClickHandlers, HasHref, HasDataToggle, HasTargetHistoryToken, Focusable, HasTarget

Widget representing the Bootstrap Thumbnail as a clickable image

Bootstrap Documentation

UiBinder example

 <b:ThumbnailLink>
    Image
 </b:ThumbnailLink>
 
 

Author:
Joshua Godi

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel
IndexedPanel.ForIsWidget
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
HasWidgets.ForIsWidget
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Fields inherited from interface org.gwtbootstrap3.client.ui.base.HasHref
EMPTY_HREF, HREF
 
Fields inherited from interface org.gwtbootstrap3.client.ui.base.HasTarget
BLANK
 
Constructor Summary
ThumbnailLink()
          Creates the default ThumbnailLink with a default HREF
ThumbnailLink(String href)
          Creates the default ThumbnailLink with the specified HREF
 
Method Summary
 HandlerRegistration addClickHandler(ClickHandler handler)
          
 HandlerRegistration addDoubleClickHandler(DoubleClickHandler handler)
          
 Toggle getDataToggle()
          Gets the data-toggle attribute on the widget
 String getHref()
          Get the HREF of the widget
 int getTabIndex()
          
 String getTarget()
          Get the target attribute of the object
 String getTargetHistoryToken()
          Get the target history token for the widget
 void setAccessKey(char key)
          
 void setDataToggle(Toggle toggle)
          Sets the attribute data-toggle on the widget
 void setFocus(boolean focused)
          
 void setHref(String href)
          Set's the HREF of the widget
 void setTabIndex(int index)
          
 void setTarget(String target)
          Set the target attribute of the object
 void setTargetHistoryToken(String targetHistoryToken)
          Set the target history token for the widget
 
Methods inherited from class org.gwtbootstrap3.client.ui.base.ComplexWidget
add, getId, getPull, insert, setColor, setHiddenOn, setId, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPull, setVisibleOn
 
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, 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, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Constructor Detail

ThumbnailLink

public ThumbnailLink(String href)
Creates the default ThumbnailLink with the specified HREF

Parameters:
href - String href to use

ThumbnailLink

public ThumbnailLink()
Creates the default ThumbnailLink with a default HREF

Method Detail

addClickHandler

public HandlerRegistration addClickHandler(ClickHandler handler)

Specified by:
addClickHandler in interface HasClickHandlers

addDoubleClickHandler

public HandlerRegistration addDoubleClickHandler(DoubleClickHandler handler)

Specified by:
addDoubleClickHandler in interface HasDoubleClickHandlers

setHref

public void setHref(String href)
Set's the HREF of the widget

Specified by:
setHref in interface HasHref
Parameters:
href - String href

getHref

public String getHref()
Get the HREF of the widget

Specified by:
getHref in interface HasHref
Returns:
String href

setTargetHistoryToken

public void setTargetHistoryToken(String targetHistoryToken)
Set the target history token for the widget

Specified by:
setTargetHistoryToken in interface HasTargetHistoryToken
Parameters:
targetHistoryToken - String target history token of the widget

getTargetHistoryToken

public String getTargetHistoryToken()
Get the target history token for the widget

Specified by:
getTargetHistoryToken in interface HasTargetHistoryToken
Returns:
String the widget's target history token

setDataToggle

public void setDataToggle(Toggle toggle)
Sets the attribute data-toggle on the widget

Specified by:
setDataToggle in interface HasDataToggle
Parameters:
toggle - Toggle toggle attribute

getDataToggle

public Toggle getDataToggle()
Gets the data-toggle attribute on the widget

Specified by:
getDataToggle in interface HasDataToggle
Returns:
Toggle data-toggle attribute

getTabIndex

public int getTabIndex()

Specified by:
getTabIndex in interface Focusable

setTabIndex

public void setTabIndex(int index)

Specified by:
setTabIndex in interface Focusable

setAccessKey

public void setAccessKey(char key)

Specified by:
setAccessKey in interface Focusable

setFocus

public void setFocus(boolean focused)

Specified by:
setFocus in interface Focusable

setTarget

public void setTarget(String target)
Set the target attribute of the object

Specified by:
setTarget in interface HasTarget
Parameters:
target - target attribute

getTarget

public String getTarget()
Get the target attribute of the object

Specified by:
getTarget in interface HasTarget
Returns:
target attribute


Copyright © 2015. All rights reserved.