Generic Environment GUI Class Library

Class TextCell

java.lang.Object
  |
  +--TextCell
All Implemented Interfaces:
Locatable

public class TextCell
extends java.lang.Object
implements Locatable

Environment-Based Applications:
A TextCell object encapsulates text to go in a cell in an environment.

Version:
1 January 2003
See Also:
Environment, Location

Constructor Summary
TextCell(java.lang.String text, Environment env, Location loc)
          Constructs a text cell with the specified text.
 
Method Summary
 Location location()
          Gets text cell's location.
 java.lang.String text()
          Gets text in this text cell.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextCell

public TextCell(java.lang.String text,
                Environment env,
                Location loc)
Constructs a text cell with the specified text.
Parameters:
text - the text to go in this cell
env - the environment holding this text cell
loc - the location of the text cell in env
Method Detail

text

public java.lang.String text()
Gets text in this text cell.

location

public Location location()
Gets text cell's location.
Specified by:
location in interface Locatable
Returns:
the location of this text cell in the environment

Generic Environment GUI Class Library

Copyright© 2003 Alyce Brady