com.groiss.gui.table
Class CellValue

java.lang.Object
  extended by com.groiss.gui.table.CellValue
All Implemented Interfaces:
Comparable<CellValue>

public class CellValue
extends Object
implements Comparable<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

CellValue

public CellValue(Object value,
                 List<Pair<String,String>> attributes)
Construct a new cell value.

Parameters:
value - the cell content
attributes - a lists of cell properties, pairs of name and value, for example: new Pair("style","color:red")
Method Detail

getAttributes

public List<Pair<String,String>> getAttributes()
Get the attribute list.


getValue

public Object getValue()
Get the value.


equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(CellValue o)
Specified by:
compareTo in interface Comparable<CellValue>

toString

public String toString()
Overrides:
toString in class Object


@enterprise 8.0.10078 Copyright © 2001-2011 Groiss Informatics GmbH. All Rights Reserved.