|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.groiss.gui.AbstractComponent com.groiss.gui.component.Text
public class Text
A HTML span element.
Field Summary |
---|
Fields inherited from class com.groiss.gui.AbstractComponent |
---|
actions, ACTIVE, browserMode, DEFAULT, ID, IE, INVISIBLE, isSensitive, label, NS, ON_BLUR, ON_CHANGE, ON_CLICK, ON_DBLCLICK, ON_FOCUS, ON_KEY_DOWN, ON_KEY_PRESS, ON_KEY_UP, ON_LOAD, ON_MOUSE_DOWN, ON_MOUSE_MOVE, ON_MOUSE_OUT, ON_MOUSE_UP, ON_RESET, ON_SELECT, ON_SUBMIT, ON_UNLOAD, outputter, parent, parentElem, READONLY, root, viewMode |
Constructor Summary | |
---|---|
Text()
Constructs a new empty text component |
|
Text(java.lang.String text)
Constructs a new empty text component |
|
Text(java.lang.String id,
java.lang.String text)
Constructor with id and containing text |
|
Text(java.lang.String id,
java.lang.String text,
java.lang.String styleClass)
Constructor with id and containing text |
Method Summary | |
---|---|
java.lang.Object |
getContent()
|
java.lang.String |
getText()
|
void |
setContent(java.lang.Object o)
sets the content of the component |
void |
setText(java.lang.String text)
sets the text |
Methods inherited from class com.groiss.gui.AbstractComponent |
---|
clone, create, getActionListener, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, init, removeAttribute, setActionListener, setAttribute, setBrowserMode, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setName, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, show, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Text()
public Text(java.lang.String text)
public Text(java.lang.String id, java.lang.String text)
text
- - the text of the paragraphpublic Text(java.lang.String id, java.lang.String text, java.lang.String styleClass)
text
- - the text of the paragraphstyleClass
- the name of a CSS classMethod Detail |
---|
public void setText(java.lang.String text)
text
- - the text Stringpublic java.lang.String getText()
public void setContent(java.lang.Object o)
setContent
in interface Component
setContent
in class AbstractComponent
o
- any object where the string representation is used for renderingpublic java.lang.Object getContent()
getContent
in interface Component
getContent
in class AbstractComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |