|
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
public abstract class AbstractHtmlComponent
An abstract super-class for components that display raw HTML text.
| Field Summary | |
|---|---|
static String |
PROPERTY_TARGET
The property for specifying the target for anchor tags in the content. |
static String |
PROPERTY_TEXT
The property for specifying the content displayed in the component. |
| 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 | |
|---|---|
AbstractHtmlComponent()
Default constructor. |
|
AbstractHtmlComponent(String text)
Create a new instance enclosing the specified HTML text. |
|
| Method Summary | |
|---|---|
void |
append(String text)
A convenience method to append the given string to the end of the existing content of this component. |
String |
getTarget()
Return the target attribute for anchor tags embedded in the content displayed in the component. |
String |
getText()
Return the HTML text displayed within this component. |
boolean |
isValidChild(Component component)
Over-ridden to return false always as this component does
not support child components. |
void |
setTarget(String target)
Set the value for the target attribute to be applied to all anchor tags embedded in the content displayed in the component. |
void |
setText(String text)
Set the value of the HTML displayed within this component. |
| 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 |
| Field Detail |
|---|
public static final String PROPERTY_TEXT
public static final String PROPERTY_TARGET
| Constructor Detail |
|---|
public AbstractHtmlComponent()
public AbstractHtmlComponent(String text)
text - The HTML text that is to be displayed in this component.| Method Detail |
|---|
public boolean isValidChild(Component component)
false always as this component does
not support child components.
isValidChild in class Componentpublic void append(String text)
text has been associated with this component.
text - The additional text to add. Note that no line breaks etc.
are added to the existing content.getText(),
setText(java.lang.String)public String getText()
public void setText(String text)
text - The value to set.public String getTarget()
public void setTarget(String target)
target - The value to set.
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||