Package de.xima.fc.gui.common.model.data
Class SheetCell<T extends Comparable<T>>
- java.lang.Object
-
- de.xima.fc.gui.common.model.data.SheetCell<T>
-
- All Implemented Interfaces:
Serializable
,Comparable<SheetCell<T>>
public class SheetCell<T extends Comparable<T>> extends Object implements Comparable<SheetCell<T>>, Serializable
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(SheetCell<T> o)
boolean
equals(Object obj)
T
getReference()
The reference or original value of the sheet cell.T
getValue()
int
hashCode()
boolean
isReadOnly()
boolean
isReferenceEqual()
Check if thevalue
object and thereference
object are equalvoid
resetToReference()
Set the value to the reference valuevoid
setReadOnly(boolean readOnly)
void
setReference(T reference)
void
setValue(T value)
String
toString()
-
-
-
Constructor Detail
-
SheetCell
public SheetCell(T value)
-
-
Method Detail
-
getValue
public T getValue()
- Returns:
- the value
-
setValue
public void setValue(T value)
- Parameters:
value
- the value to set
-
getReference
public T getReference()
The reference or original value of the sheet cell. May be used to check if the value of this cell is the default value or was changed manually.- Returns:
- the reference
-
setReference
public void setReference(T reference)
- Parameters:
reference
- the reference to set
-
isReferenceEqual
public boolean isReferenceEqual()
Check if thevalue
object and thereference
object are equal- Returns:
true
if the value and the reference object are equal, otherwisefalse
-
isReadOnly
public boolean isReadOnly()
-
setReadOnly
public void setReadOnly(boolean readOnly)
-
resetToReference
public void resetToReference()
Set the value to the reference value
-
compareTo
public int compareTo(SheetCell<T> o)
- Specified by:
compareTo
in interfaceComparable<T extends Comparable<T>>
-
-