|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.app.Component
echopoint.internal.AbstractContainer
echopoint.internal.AbstractHtmlComponent
echopoint.HtmlLabel
public class HtmlLabel
HtmlLabel is a very lightweight component that will insert HTML text
directly onto the client. The inserted text is contained within a parent
<span>
element.
Note: Be careful of your use of id attributes in the HTML text as they may clash with Echo3 generated ones. Also note that this component does not support child components.
The following shows sample use of this component:
import nextapp.echo.app.Column; import echopoint.HtmlLabel; ... final Column column = new Column(); final String text = "<b>My</b> <i>new</i> <code>label</code> <sup>*</sup>" + final HtmlLabel html = new HtmlLabel( text ); html.setStyleName( "Default.HtmlLabel" ); column.add( html );
Field Summary |
---|
Fields inherited from class echopoint.internal.AbstractHtmlComponent |
---|
PROPERTY_TARGET, PROPERTY_TEXT |
Fields inherited from class echopoint.internal.AbstractContainer |
---|
ACTION_COMMAND_PROPERTY, ACTION_LISTENERS_CHANGED_PROPERTY, INPUT_ACTION, PROPERTY_ALIGNMENT, PROPERTY_BACKGROUND_IMAGE, PROPERTY_BORDER, PROPERTY_HEIGHT, PROPERTY_INSETS, PROPERTY_WIDTH |
Constructor Summary | |
---|---|
HtmlLabel()
Default constructor. |
|
HtmlLabel(String text)
Create a new instance enclosing the specified HTML text. |
Method Summary |
---|
Methods inherited from class echopoint.internal.AbstractHtmlComponent |
---|
append, getTarget, getText, isValidChild, setTarget, setText |
Methods inherited from class echopoint.internal.AbstractContainer |
---|
addActionListener, fireActionPerformed, getAlignment, getBackgroundImage, getBorder, getHeight, getInsets, getWidth, hasActionListeners, removeActionListener, setAlignment, setBackgroundImage, setBorder, setHeight, setInsets, setWidth |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HtmlLabel()
public HtmlLabel(String text)
text
- The HTML text that is to be displayed in this component.
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |