org.gwtbootstrap3.client.ui.base
Class AbstractTextWidget

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by org.gwtbootstrap3.client.ui.base.AbstractTextWidget
All Implemented Interfaces:
IsEditor<LeafValueEditor<String>>, HasAttachHandlers, HasHandlers, EventListener, HasHTML, HasText, HasVisibility, IsWidget, HasId, HasInlineStyle, HasPull, HasResponsiveness
Direct Known Subclasses:
Abbreviation, Code, DescriptionData, DescriptionTitle, FormControlStatic, FormLabel, HelpBlock, Italic, Label, Legend, Pre, Small, Strong

public abstract class AbstractTextWidget
extends Widget
implements HasId, HasHTML, HasResponsiveness, HasInlineStyle, IsEditor<LeafValueEditor<String>>, HasPull

Base class for Widget that just contains text.

Author:
Sven Jacobs, Joshua Godi

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
protected AbstractTextWidget(Element element)
           
 
Method Summary
 LeafValueEditor<String> asEditor()
           
 String getHTML()
           
 String getId()
          Gets the ID of the widget
 Pull getPull()
          
 String getText()
           
 void setColor(String color)
          
 void setHiddenOn(DeviceSize deviceSize)
          Sets the devices that the element is hidden on
 void setHTML(String html)
           
 void setId(String id)
          Sets the ID on the widget
 void setMarginBottom(double margin)
           
 void setMarginLeft(double margin)
           
 void setMarginRight(double margin)
           
 void setMarginTop(double margin)
           
 void setPaddingBottom(double padding)
           
 void setPaddingLeft(double padding)
           
 void setPaddingRight(double padding)
           
 void setPaddingTop(double padding)
           
 void setPull(Pull pull)
          
 void setText(String text)
           
 void setVisibleOn(DeviceSize deviceSize)
          Sets the devices that the element is visible on
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, 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
 

Constructor Detail

AbstractTextWidget

protected AbstractTextWidget(Element element)
Method Detail

setId

public void setId(String id)
Description copied from interface: HasId
Sets the ID on the widget

Specified by:
setId in interface HasId
Parameters:
id - String desired ID

getId

public String getId()
Description copied from interface: HasId
Gets the ID of the widget

Specified by:
getId in interface HasId
Returns:
String widget ID

setText

public void setText(String text)
Specified by:
setText in interface HasText

getText

public String getText()
Specified by:
getText in interface HasText

getHTML

public String getHTML()
Specified by:
getHTML in interface HasHTML

setHTML

public void setHTML(String html)
Specified by:
setHTML in interface HasHTML

setVisibleOn

public void setVisibleOn(DeviceSize deviceSize)
Description copied from interface: HasResponsiveness
Sets the devices that the element is visible on

Specified by:
setVisibleOn in interface HasResponsiveness
Parameters:
deviceSize - device size
See Also:
DeviceSize

setHiddenOn

public void setHiddenOn(DeviceSize deviceSize)
Description copied from interface: HasResponsiveness
Sets the devices that the element is hidden on

Specified by:
setHiddenOn in interface HasResponsiveness
Parameters:
deviceSize - device sizes
See Also:
DeviceSize

setMarginTop

public void setMarginTop(double margin)
Specified by:
setMarginTop in interface HasInlineStyle

setMarginLeft

public void setMarginLeft(double margin)
Specified by:
setMarginLeft in interface HasInlineStyle

setMarginRight

public void setMarginRight(double margin)
Specified by:
setMarginRight in interface HasInlineStyle

setMarginBottom

public void setMarginBottom(double margin)
Specified by:
setMarginBottom in interface HasInlineStyle

setPaddingTop

public void setPaddingTop(double padding)
Specified by:
setPaddingTop in interface HasInlineStyle

setPaddingLeft

public void setPaddingLeft(double padding)
Specified by:
setPaddingLeft in interface HasInlineStyle

setPaddingRight

public void setPaddingRight(double padding)
Specified by:
setPaddingRight in interface HasInlineStyle

setPaddingBottom

public void setPaddingBottom(double padding)
Specified by:
setPaddingBottom in interface HasInlineStyle

setColor

public void setColor(String color)

Specified by:
setColor in interface HasInlineStyle

asEditor

public LeafValueEditor<String> asEditor()
Specified by:
asEditor in interface IsEditor<LeafValueEditor<String>>

setPull

public void setPull(Pull pull)

Specified by:
setPull in interface HasPull

getPull

public Pull getPull()

Specified by:
getPull in interface HasPull


Copyright © 2015. All rights reserved.