|
||||||||||
| 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.Composite
org.cafesip.gwtcomp.client.ui.TitleBar
public class TitleBar
A title bar for GWT applications. A title bar displays the page title and, optionally, displays a help icon. When the user clicks on the help icon, a help window is popped up.
Examples:
CSS Style Rules:
Screen-Shots:
| 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 |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
TitleBar()
A constructor for this class. |
|
TitleBar(java.lang.String text,
java.lang.String helpUrl,
int level)
A constructor for this class. |
|
| Method Summary | |
|---|---|
java.lang.String |
getHelpUrl()
Returns the currently-set level. |
int |
getLevel()
Returns the currently-set level. |
java.lang.String |
getText()
Returns the currently-set header text. |
void |
setHelpUrl(java.lang.String helpUrl)
Sets the help URL. |
void |
setLevel(int level)
Sets the current level. |
void |
setText(java.lang.String text)
Sets the heafer text. |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
doAttachChildren, doDetachChildren, getParent, onLoad, onUnload, removeFromParent |
| 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, sinkEvents, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TitleBar()
public TitleBar(java.lang.String text,
java.lang.String helpUrl,
int level)
text - header texthelpUrl - URL of the help page. If set to null, no help icon is
displayed.level - header level - used to set the header level to HTML tags -
<h1>, <h2> ...
| Method Detail |
|---|
public java.lang.String getText()
public void setText(java.lang.String text)
text - The text to set.public java.lang.String getHelpUrl()
public void setHelpUrl(java.lang.String helpUrl)
helpUrl - sets the help icon.public int getLevel()
public void setLevel(int level)
level - The level to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||