|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.terminal.Cell
public class Cell
Represents screen cell. Contains char value with attributes and boolean flag
which shows if this object has tabstop.
May be used for further screen rendering.
This class uses shared attributes represented by
CellAttributes
class to reduce memory usage
(pattern "Flyweight" [Gamma94]).
Constructor Summary | |
---|---|
Cell()
Creates Cell object having '\000' value
with default attributes. |
|
Cell(Cell cell)
Copy constructor. |
|
Cell(char value)
Creates Cell object giving it's value. |
|
Cell(char value,
CellAttributes attributes)
Creates Cell object giving value and attributes. |
Method Summary | |
---|---|
CellAttributes |
getAttributes()
Returns current attributes of Cell object. |
char |
getValue()
Returns current value of Cell object. |
boolean |
isTabstop()
Checks if this Cell object has tabstop. |
void |
reset()
Resets value and attributes to default. |
void |
setAttributes(CellAttributes attributes)
Sets current Cell object attributes. |
void |
setTabstop(boolean tabstop)
Sets tabstop to this Cell object. |
void |
setValue(char value)
Sets value of Cell object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Cell(char value, CellAttributes attributes)
Cell
object giving value and attributes.
value
- char value of created Cell
object.attributes
- Cell
object attributes.public Cell(char value)
Cell
object giving it's value.
value
- char value of created Cell
object.public Cell()
Cell
object having '\000' value
with default attributes.
public Cell(Cell cell)
cell
- Cell
object to be copied.Method Detail |
---|
public void reset()
public char getValue()
Cell
object.
public void setValue(char value)
Cell
object.
value
- new char value.public CellAttributes getAttributes()
Cell
object.
CellAttributes
object that represent current
Cell
object attributes.public void setAttributes(CellAttributes attributes)
Cell
object attributes.
attributes
- CellAttributes
object that must be used.public boolean isTabstop()
Cell
object has tabstop.
Cell
object has tabstop.public void setTabstop(boolean tabstop)
Cell
object.
tabstop
- true if this Cell
object must have tabstop.
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |