org.kuali.student.common.ui.client.configurable.mvc
Class SectionTitle

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.kuali.student.common.ui.client.configurable.mvc.SectionTitle
All Implemented Interfaces:
com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.IndexedPanel, Iterable<com.google.gwt.user.client.ui.Widget>

public class SectionTitle
extends com.google.gwt.user.client.ui.ComplexPanel

This class provides static methods for generating H1-H6 elements with the passed in text

Author:
Kuali Student Team (kuali-student@googlegroups.com)

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
private  String reportText
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
private SectionTitle(com.google.gwt.dom.client.Element e)
           
 
Method Summary
 void add(com.google.gwt.user.client.ui.Widget w)
          Adds a new child widget to the panel.
static SectionTitle generateEmptyTitle()
           
static SectionTitle generateH1Title(String titletext)
           
static SectionTitle generateH2Title(String titletext)
           
static SectionTitle generateH3Title(String titletext)
           
static SectionTitle generateH4Title(String titletext)
           
static SectionTitle generateH5Title(String titletext)
           
static SectionTitle generateH6Title(String titletext)
           
private static SectionTitle generateTitle(com.google.gwt.dom.client.Element header, String styleName)
           
 String getExportFieldValue()
          Returns a text value of the title for the export report.
 void setHTML(String html)
           
 void setText(String text)
           
 
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, insert, insert, iterator, remove, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, onLoad, onUnload, orphan
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addDomHandler, addHandler, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, 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, setElement, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

reportText

private String reportText
Constructor Detail

SectionTitle

private SectionTitle(com.google.gwt.dom.client.Element e)
Method Detail

generateEmptyTitle

public static SectionTitle generateEmptyTitle()

generateH1Title

public static SectionTitle generateH1Title(String titletext)

generateH2Title

public static SectionTitle generateH2Title(String titletext)

generateH3Title

public static SectionTitle generateH3Title(String titletext)

generateH4Title

public static SectionTitle generateH4Title(String titletext)

generateH5Title

public static SectionTitle generateH5Title(String titletext)

generateH6Title

public static SectionTitle generateH6Title(String titletext)

generateTitle

private static SectionTitle generateTitle(com.google.gwt.dom.client.Element header,
                                          String styleName)

setText

public void setText(String text)

setHTML

public void setHTML(String html)

add

public void add(com.google.gwt.user.client.ui.Widget w)
Adds a new child widget to the panel.

Specified by:
add in interface com.google.gwt.user.client.ui.HasWidgets
Overrides:
add in class com.google.gwt.user.client.ui.Panel
Parameters:
w - the widget to be added

getExportFieldValue

public String getExportFieldValue()
Returns a text value of the title for the export report.

Returns:


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.