cage.ui
Interface TextContainer

All Known Implementing Classes:
TextContainer.CageLabel, TextContainer.CageScrollText

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.

Author:
Seth Marinello

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

setText

void setText(java.lang.String text)
Sets the text on the Component to the specified String. The exact meaning of this is up to the implementing class.

Parameters:
text - The String to use.

getText

java.lang.String getText()
Provides access to the last String set on the Component

Returns:
The String contents of the Component.