|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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(java.lang.Object value,
java.lang.Comparable sort,
java.lang.Object filter)
|
|
CellValue(java.lang.Object value,
java.util.List<Pair<java.lang.String,java.lang.String>> attributes)
Construct a new cell value. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
int |
compareTo(CellValue o)
|
boolean |
equals(java.lang.Object obj)
|
java.util.List<Pair<java.lang.String,java.lang.String>> |
getAttributes()
Get the attribute list. |
java.lang.Object |
getFilterVal()
|
java.lang.Comparable |
getSortVal()
|
java.lang.Object |
getValue()
Get the value. |
int |
hashCode()
|
void |
setAttributes(java.util.List<Pair<java.lang.String,java.lang.String>> attributes)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CellValue(java.lang.Object value, java.util.List<Pair<java.lang.String,java.lang.String>> attributes)
value
- the cell contentattributes
- a lists of cell properties, pairs of name and value, for example: new Pair("style","color:red")public CellValue(java.lang.Object value, java.lang.Comparable sort, java.lang.Object filter)
Method Detail |
---|
public java.util.List<Pair<java.lang.String,java.lang.String>> getAttributes()
public java.lang.Object clone()
clone
in class java.lang.Object
public void setAttributes(java.util.List<Pair<java.lang.String,java.lang.String>> attributes)
public java.lang.Object getValue()
public final java.lang.Comparable getSortVal()
public final java.lang.Object getFilterVal()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(CellValue o)
compareTo
in interface java.lang.Comparable<CellValue>
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |