|
|||||||||
| 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.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.BoxComponent
com.extjs.gxt.ui.client.widget.Html
public class Html
A component that contains arbitrary HTML text. The wrapping HTML tag can be
configured using setTagName(String).
@code
Html h = new Html(
"<div class=text style='padding:5px'>"
+ "<h1>Heading1</h1>"
+ "<i>Some text</i></br>"
+ "Some more text</br>"
+ " <UL> <LI>item 1 <LI>item 2 </UL></br>"
+ "<u>Final text</u></div>");
RootPanel.get().add(h);
}
| 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 | |
|---|---|
Html()
Creates a new instance. |
|
Html(java.lang.String html)
Creates a new instance with the given html. |
|
| Method Summary | |
|---|---|
java.lang.String |
getHtml()
Returns the component's HTML. |
java.lang.String |
getTagName()
|
void |
setHtml(java.lang.String html)
Sets the components HTML. |
void |
setTagName(java.lang.String tagName)
The HTML tag name that will wrap the text (defaults to 'div'). |
| Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
getBounds, getHeight, getHeight, getPosition, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, isAutoHeight, isAutoWidth, isDeferHeight, isShim, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
fireEvent, getParent, isAttached |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, setStylePrimaryName, setVisible, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Html()
public Html(java.lang.String html)
html - the html| Method Detail |
|---|
public java.lang.String getHtml()
public java.lang.String getTagName()
public void setHtml(java.lang.String html)
html - the htmlpublic void setTagName(java.lang.String tagName)
tagName - the new tag name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||