org.gwtbootstrap3.client.ui.html
Class Text

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.html.Text
All Implemented Interfaces:
HasAttachHandlers, HasHandlers, EventListener, HasText, HasVisibility, IsWidget

public class Text
extends Widget
implements HasText

Simple text node.

UiBinder example

 <b:Text>
    ...
 </b:Text>
 
 

Author:
Sven Jacobs

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
Text()
          Creates the default text node with empty text
Text(String txt)
          Creates a text node with the desired text
 
Method Summary
 String getText()
          
 boolean isAttached()
           
protected  void onAttach()
           
protected  void onDetach()
           
 void setText(String txt)
          
 
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, isOrWasAttached, onBrowserEvent, 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

Text

public Text()
Creates the default text node with empty text


Text

public Text(String txt)
Creates a text node with the desired text

Parameters:
txt - String text to display
Method Detail

setText

public void setText(String txt)

Specified by:
setText in interface HasText

getText

public String getText()

Specified by:
getText in interface HasText

isAttached

public boolean isAttached()
Specified by:
isAttached in interface HasAttachHandlers
Overrides:
isAttached in class Widget

onAttach

protected void onAttach()
Overrides:
onAttach in class Widget

onDetach

protected void onDetach()
Overrides:
onDetach in class Widget


Copyright © 2015. All rights reserved.