A text component contains a sequence of characters that represent a message. This sequence, together with the font and color information, determines what to display to the user.
This class defines various methods to set and retrieve the sequence of characters, as well as the font and color information. @author Raghu
TextComponent
class is the superclass of any component that allows the editing of some text. A text component embodies a string of text. The TextComponent
class defines a set of methods that determine whether or not this text is editable. If the component is editable, it defines another set of methods that supports a text insertion caret.
In addition, the class defines methods that are used to maintain a current selection from the text. The text selection, a substring of the component's text, is the target of editing operations. It is also referred to as the selected text. @version 1.90, 07/11/06 @author Sami Shaio @author Arthur van Hoff @since JDK1.0
By default, the text component renders in a span tag. If you want this span to be changed to a div tag, use the setSpanAsDomReplaceable() method.
Initial Date: 10.11.2009
@author gnaegi
|
|
|
|