|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.gui.table.CellValue
public class CellValue
Use this object for writing a cell value into a table model if you need cell attributes.
| Constructor Summary | |
|---|---|
CellValue(Object value,
List<Pair<String,String>> attributes)
Construct a new cell value. |
|
| Method Summary | |
|---|---|
int |
compareTo(CellValue o)
|
boolean |
equals(Object obj)
|
List<Pair<String,String>> |
getAttributes()
Get the attribute list. |
Object |
getValue()
Get the value. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CellValue(Object value,
List<Pair<String,String>> attributes)
value - the cell contentattributes - a lists of cell properties, pairs of name and value, for example: new Pair("style","color:red")| Method Detail |
|---|
public List<Pair<String,String>> getAttributes()
public Object getValue()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(CellValue o)
compareTo in interface Comparable<CellValue>public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||