|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
org.gwtbootstrap3.client.ui.base.ComplexWidget
org.gwtbootstrap3.client.ui.Anchor
public class Anchor
Anchor <a> element with text and optional icon.
| 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 | |
|---|---|
Anchor()
Creates a default anchor with a default href |
|
Anchor(String href)
Creates an anchor widget with the desired HREF |
|
Anchor(String text,
String href)
Creates an achor widget with the desired HREF and text |
|
| Method Summary | |
|---|---|
HandlerRegistration |
addClickHandler(ClickHandler handler)
|
HandlerRegistration |
addDoubleClickHandler(DoubleClickHandler handler)
|
String |
getDataParent()
|
String |
getDataTarget()
Gets the data target of the widget |
Toggle |
getDataToggle()
Gets the data-toggle attribute on the widget |
String |
getHref()
Get the HREF of the widget |
String |
getHTML()
|
IconType |
getIcon()
|
IconFlip |
getIconFlip()
|
IconPosition |
getIconPosition()
|
IconRotate |
getIconRotate()
|
IconSize |
getIconSize()
|
Pull |
getPull()
|
int |
getTabIndex()
|
String |
getTarget()
Get the target attribute of the object |
String |
getTargetHistoryToken()
Get the target history token for the widget |
String |
getText()
|
boolean |
isEnabled()
|
boolean |
isIconBordered()
|
boolean |
isIconFixedWidth()
|
boolean |
isIconLight()
|
boolean |
isIconMuted()
|
boolean |
isIconSpin()
|
protected void |
onAttach()
|
void |
onBrowserEvent(Event event)
We override this because the tag doesn't support the disabled property. |
void |
setAccessKey(char key)
|
void |
setDataParent(String dataParent)
|
void |
setDataTarget(String dataTarget)
Sets the data target for the widget |
void |
setDataTargetWidget(Widget widget)
|
void |
setDataTargetWidgets(List<Widget> widgets)
|
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 |
setHTML(String html)
|
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 |
setPull(Pull pull)
|
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 |
void |
setText(String text)
|
| Methods inherited from class org.gwtbootstrap3.client.ui.base.ComplexWidget |
|---|
add, getId, insert, setColor, setHiddenOn, setId, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, 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, 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 |
|---|
public Anchor(String href)
href - href for the anchor
public Anchor(String text,
String href)
text - text for the anchorhref - href for the anchorpublic Anchor()
| Method Detail |
|---|
public HandlerRegistration addClickHandler(ClickHandler handler)
addClickHandler in interface HasClickHandlerspublic HandlerRegistration addDoubleClickHandler(DoubleClickHandler handler)
addDoubleClickHandler in interface HasDoubleClickHandlerspublic void setText(String text)
setText in interface HasTextpublic String getText()
getText in interface HasTextpublic void setIcon(IconType iconType)
setIcon in interface HasIconpublic IconType getIcon()
getIcon in interface HasIconpublic void setIconPosition(IconPosition iconPosition)
setIconPosition in interface HasIconPositionpublic IconPosition getIconPosition()
getIconPosition in interface HasIconPositionpublic void setIconSize(IconSize iconSize)
setIconSize in interface HasIconpublic IconSize getIconSize()
getIconSize in interface HasIconpublic void setIconFlip(IconFlip iconFlip)
setIconFlip in interface HasIconpublic IconFlip getIconFlip()
getIconFlip in interface HasIconpublic void setIconRotate(IconRotate iconRotate)
setIconRotate in interface HasIconpublic IconRotate getIconRotate()
getIconRotate in interface HasIconpublic void setIconBordered(boolean iconBordered)
setIconBordered in interface HasIconpublic boolean isIconBordered()
isIconBordered in interface HasIconpublic void setIconMuted(boolean iconMuted)
setIconMuted in interface HasIconpublic boolean isIconMuted()
isIconMuted in interface HasIconpublic void setIconLight(boolean iconLight)
setIconLight in interface HasIconpublic boolean isIconLight()
isIconLight in interface HasIconpublic void setIconSpin(boolean iconSpin)
setIconSpin in interface HasIconpublic boolean isIconSpin()
isIconSpin in interface HasIconpublic void setIconFixedWidth(boolean iconFixedWidth)
setIconFixedWidth in interface HasIconpublic boolean isIconFixedWidth()
isIconFixedWidth in interface HasIconpublic void setHref(String href)
setHref in interface HasHrefhref - String hrefpublic String getHref()
getHref in interface HasHrefpublic void setTargetHistoryToken(String targetHistoryToken)
setTargetHistoryToken in interface HasTargetHistoryTokentargetHistoryToken - String target history token of the widgetpublic String getTargetHistoryToken()
getTargetHistoryToken in interface HasTargetHistoryTokenpublic void setDataParent(String dataParent)
setDataParent in interface HasDataParentpublic String getDataParent()
getDataParent in interface HasDataParentpublic void setDataToggle(Toggle toggle)
setDataToggle in interface HasDataToggletoggle - Toggle toggle attributepublic Toggle getDataToggle()
getDataToggle in interface HasDataTogglepublic int getTabIndex()
getTabIndex in interface Focusablepublic void setTabIndex(int index)
setTabIndex in interface Focusablepublic void setAccessKey(char key)
setAccessKey in interface Focusablepublic void setFocus(boolean focused)
setFocus in interface Focusablepublic String getHTML()
getHTML in interface HasHTMLpublic void setHTML(String html)
setHTML in interface HasHTMLpublic void setDataTargetWidgets(List<Widget> widgets)
setDataTargetWidgets in interface HasDataTargetpublic void setDataTargetWidget(Widget widget)
setDataTargetWidget in interface HasDataTargetpublic void setDataTarget(String dataTarget)
setDataTarget in interface HasDataTargetdataTarget - data target stringpublic String getDataTarget()
getDataTarget in interface HasDataTargetpublic void setTarget(String target)
setTarget in interface HasTargettarget - target attributepublic String getTarget()
getTarget in interface HasTargetpublic void setPull(Pull pull)
setPull in interface HasPullsetPull in class ComplexWidgetpublic Pull getPull()
getPull in interface HasPullgetPull in class ComplexWidgetpublic boolean isEnabled()
isEnabled in interface HasEnabledpublic void setEnabled(boolean enabled)
setEnabled in interface HasEnabledprotected void onAttach()
onAttach in class Widgetpublic void onBrowserEvent(Event event)
onBrowserEvent in interface EventListeneronBrowserEvent in class Widgetevent - dom event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||