com.github.gwtbootstrap.client.ui
Class Blockquote

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.github.gwtbootstrap.client.ui.base.AbstractTypography
              extended by com.github.gwtbootstrap.client.ui.Blockquote
All Implemented Interfaces:
HasStyle, IsResponsive, HasAttachHandlers, HasHandlers, EventListener, HasText, HasVisibility, IsWidget

public class Blockquote
extends AbstractTypography

Left or right aligned blockquote with optional source.

UiBinder Usage:

 <b:Blockquote source="Leonard McCoy">He's dead, Jim</b:Blockquote>
 
All arguments are optional.

Since:
2.0.4.0
Author:
Carlos Alexandro Becker
See Also:
Bootstrap documentation

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
Blockquote()
          Creates an empty Blockquote.
Blockquote(String text)
          Creates a Blockquote of the given text.
Blockquote(String text, boolean pullRight)
          Creates a Blockquote of the given text and optionally pulls it to the right side.
Blockquote(String text, String source)
          Creates a Blockquote of the given text, attributed to the given source.
Blockquote(String text, String source, boolean pullRight)
          Creates a Blockquote of the given text, attributed to the given source and optionally pulls it to the right side.
 
Method Summary
 void setPullRight(boolean pullright)
          Sets whether the quote should be aligned left or right.
 void setSource(String source)
          Sets the source of the quote.
 
Methods inherited from class com.github.gwtbootstrap.client.ui.base.AbstractTypography
addStyle, getText, removeStyle, setHideOn, setShowOn, setStyle, setText
 
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
 
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, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Blockquote

public Blockquote()
Creates an empty Blockquote.


Blockquote

public Blockquote(String text)
Creates a Blockquote of the given text.

Parameters:
text - the text of the quote

Blockquote

public Blockquote(String text,
                  String source)
Creates a Blockquote of the given text, attributed to the given source.

Parameters:
text - the text of the quote
source - the source of the quote

Blockquote

public Blockquote(String text,
                  boolean pullRight)
Creates a Blockquote of the given text and optionally pulls it to the right side.

Parameters:
text - text of the quote
pullRight - true if the quote should be pulled to the right side. Default: false

Blockquote

public Blockquote(String text,
                  String source,
                  boolean pullRight)
Creates a Blockquote of the given text, attributed to the given source and optionally pulls it to the right side.

Parameters:
text - text of the quote
source - source of the quote
pullRight - true if the quote should be pulled to the right side. Default: false
Method Detail

setSource

public void setSource(String source)
Sets the source of the quote. This may be a person or the title of a book, song, ...

Parameters:
source - the source of the quote

setPullRight

public void setPullRight(boolean pullright)
Sets whether the quote should be aligned left or right.

Parameters:
pullright - true if the quote should be pulled to the right side. Default: false


Copyright © 2012 gwtbootstrap. All Rights Reserved.