|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TextContainer
TextContainer is an interface for GUI components which provides the ability to control text displayed in component. It was created because there was no way to identify Swing or AWT components which have these methods via type. The internal classes CageScrollText and CageLabel wrap Components which had the required methods but were not identified as TextContainers.
Nested Class Summary | |
---|---|
static class |
TextContainer.CageLabel
A JLabel that has been blessed by the type gods as a TextContainer. |
static class |
TextContainer.CageScrollText
A ScrollPane with wrapper methods to provided access to whatever JTextArea it is holding. |
Method Summary | |
---|---|
java.lang.String |
getText()
Provides access to the last String set on the Component |
void |
setText(java.lang.String text)
Sets the text on the Component to the specified String. |
Method Detail |
---|
void setText(java.lang.String text)
text
- The String to use.java.lang.String getText()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |