tppt.gui
Class ListItem
java.lang.Object
|
+--tppt.gui.ListItem
- public class ListItem
- extends java.lang.Object
This class is the object that define the froeground color, background color
and the value of the word that passed to the logger.
- Version:
- 2.0
- Author:
- Jodie Wu
- See Also:
TwoPhaseLogger
Field Summary |
private java.awt.Color |
bgcolor
The background color |
private java.awt.Color |
fgcolor
The foreground color |
private java.lang.String |
value
The value of the word |
Constructor Summary |
ListItem(java.awt.Color b,
java.awt.Color f,
java.lang.String s)
Constructs with the foreground, background color and the initial word. |
ListItem(java.lang.String s)
Constructs with the initial word. |
Method Summary |
java.awt.Color |
getBgColor()
Get the background color object |
java.awt.Color |
getFgColor()
Get the foreground color object |
java.lang.String |
getValue()
Get the log value string |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
bgcolor
private java.awt.Color bgcolor
- The background color
fgcolor
private java.awt.Color fgcolor
- The foreground color
value
private java.lang.String value
- The value of the word
ListItem
public ListItem(java.lang.String s)
- Constructs with the initial word.
- Parameters:
s
- the word string
ListItem
public ListItem(java.awt.Color b,
java.awt.Color f,
java.lang.String s)
- Constructs with the foreground, background color and the initial word.
- Parameters:
b
- the background Color objectf
- the foreground Color objects
- the value string
getBgColor
public java.awt.Color getBgColor()
- Get the background color object
- Returns:
- The Color object
getFgColor
public java.awt.Color getFgColor()
- Get the foreground color object
- Returns:
- the Color object
getValue
public java.lang.String getValue()
- Get the log value string
- Returns:
- return the value string