org.gwtbootstrap3.client.ui.base
Class AbstractAnchorListItem

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.base.AbstractListItem
                          extended by org.gwtbootstrap3.client.ui.base.AbstractAnchorListItem
All Implemented Interfaces:
HasClickHandlers, HasAttachHandlers, HasHandlers, EventListener, Focusable, HasEnabled, HasVisibility, HasWidgets, HasWidgets.ForIsWidget, IndexedPanel, IndexedPanel.ForIsWidget, IsWidget, Iterable<Widget>, HasActive, HasDataToggle, HasHref, HasIcon, HasIconPosition, HasId, HasInlineStyle, HasPull, HasResponsiveness, HasTargetHistoryToken
Direct Known Subclasses:
AnchorListItem

public abstract class AbstractAnchorListItem
extends AbstractListItem
implements HasHref, HasTargetHistoryToken, HasClickHandlers, Focusable, HasDataToggle, HasIcon, HasIconPosition

Base class for list items that contain an Anchor link.

Author:
Sven Jacobs

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
protected  Anchor anchor
           
 
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
 
Constructor Summary
protected AbstractAnchorListItem()
           
 
Method Summary
 HandlerRegistration addClickHandler(ClickHandler handler)
           
 Toggle getDataToggle()
          Gets the data-toggle attribute on the widget
 String getHref()
          Get the HREF of the widget
 IconType getIcon()
           
 IconFlip getIconFlip()
           
 IconPosition getIconPosition()
           
 IconRotate getIconRotate()
           
 IconSize getIconSize()
           
 int getTabIndex()
           
 String getTargetHistoryToken()
          Get the target history token for the widget
 boolean isIconBordered()
           
 boolean isIconFixedWidth()
           
 boolean isIconLight()
           
 boolean isIconMuted()
           
 boolean isIconSpin()
           
 void setAccessKey(char key)
           
 void setDataToggle(Toggle toggle)
          Sets the attribute data-toggle on the widget
 void setEnabled(boolean enabled)
           
 void setFocus(boolean focused)
           
 void setHref(String href)
          Set's the HREF of the widget
 void setIcon(IconType iconType)
           
 void setIconBordered(boolean iconBordered)
           
 void setIconFixedWidth(boolean iconFixedWidth)
           
 void setIconFlip(IconFlip iconFlip)
           
 void setIconLight(boolean iconLight)
           
 void setIconMuted(boolean iconMuted)
           
 void setIconPosition(IconPosition iconPosition)
           
 void setIconRotate(IconRotate iconRotate)
           
 void setIconSize(IconSize iconSize)
           
 void setIconSpin(boolean iconSpin)
           
 void setTabIndex(int index)
           
 void setTargetHistoryToken(String targetHistoryToken)
          Set the target history token for the widget
 
Methods inherited from class org.gwtbootstrap3.client.ui.base.AbstractListItem
getId, getPull, isActive, isEnabled, setActive, setHiddenOn, setId, setPull, setVisibleOn
 
Methods inherited from class org.gwtbootstrap3.client.ui.base.ComplexWidget
add, insert, setColor, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop
 
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
 

Field Detail

anchor

protected final Anchor anchor
Constructor Detail

AbstractAnchorListItem

protected AbstractAnchorListItem()
Method Detail

setHref

public void setHref(String href)
Description copied from interface: HasHref
Set's the HREF of the widget

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

getHref

public String getHref()
Description copied from interface: HasHref
Get the HREF of the widget

Specified by:
getHref in interface HasHref
Returns:
String href

setTargetHistoryToken

public void setTargetHistoryToken(String targetHistoryToken)
Description copied from interface: HasTargetHistoryToken
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()
Description copied from interface: HasTargetHistoryToken
Get the target history token for the widget

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

addClickHandler

public HandlerRegistration addClickHandler(ClickHandler handler)
Specified by:
addClickHandler in interface HasClickHandlers

getTabIndex

public int getTabIndex()
Specified by:
getTabIndex 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

setTabIndex

public void setTabIndex(int index)
Specified by:
setTabIndex in interface Focusable

setDataToggle

public void setDataToggle(Toggle toggle)
Description copied from interface: HasDataToggle
Sets the attribute data-toggle on the widget

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

getDataToggle

public Toggle getDataToggle()
Description copied from interface: HasDataToggle
Gets the data-toggle attribute on the widget

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

setIcon

public void setIcon(IconType iconType)
Specified by:
setIcon in interface HasIcon

getIcon

public IconType getIcon()
Specified by:
getIcon in interface HasIcon

setIconPosition

public void setIconPosition(IconPosition iconPosition)
Specified by:
setIconPosition in interface HasIconPosition

getIconPosition

public IconPosition getIconPosition()
Specified by:
getIconPosition in interface HasIconPosition

setIconSize

public void setIconSize(IconSize iconSize)
Specified by:
setIconSize in interface HasIcon

getIconSize

public IconSize getIconSize()
Specified by:
getIconSize in interface HasIcon

setIconFlip

public void setIconFlip(IconFlip iconFlip)
Specified by:
setIconFlip in interface HasIcon

getIconFlip

public IconFlip getIconFlip()
Specified by:
getIconFlip in interface HasIcon

setIconRotate

public void setIconRotate(IconRotate iconRotate)
Specified by:
setIconRotate in interface HasIcon

getIconRotate

public IconRotate getIconRotate()
Specified by:
getIconRotate in interface HasIcon

setIconBordered

public void setIconBordered(boolean iconBordered)
Specified by:
setIconBordered in interface HasIcon

isIconBordered

public boolean isIconBordered()
Specified by:
isIconBordered in interface HasIcon

setIconMuted

public void setIconMuted(boolean iconMuted)
Specified by:
setIconMuted in interface HasIcon

isIconMuted

public boolean isIconMuted()
Specified by:
isIconMuted in interface HasIcon

setIconLight

public void setIconLight(boolean iconLight)
Specified by:
setIconLight in interface HasIcon

isIconLight

public boolean isIconLight()
Specified by:
isIconLight in interface HasIcon

setIconSpin

public void setIconSpin(boolean iconSpin)
Specified by:
setIconSpin in interface HasIcon

isIconSpin

public boolean isIconSpin()
Specified by:
isIconSpin in interface HasIcon

setIconFixedWidth

public void setIconFixedWidth(boolean iconFixedWidth)
Specified by:
setIconFixedWidth in interface HasIcon

isIconFixedWidth

public boolean isIconFixedWidth()
Specified by:
isIconFixedWidth in interface HasIcon

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface HasEnabled
Overrides:
setEnabled in class AbstractListItem


Copyright © 2015. All rights reserved.