|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.model.datatype.DataType
public abstract class DataType
A DataType is the abstract base class of all ColumnDefinition
data types. They store type specific informations like size, precision, ...
It can also used to convert between a standard Java data type and a memory
optimized storage Object.
On the other hand, it stores the ICellRenderer and
ICellEditor. That is because in most cases the GUI control (drawing
and editing) depends on the data type.
| Constructor Summary | |
|---|---|
DataType()
|
|
| Method Summary | |
|---|---|
IDataType |
clone()
Clone an IDataType. |
int |
compareTo(Object pObject1,
Object pObject2)
Compares IDataType objects in the rules of the Comparable interface. |
ICellEditor |
getCellEditor()
Returns the CellEditor for this IDataType. |
ICellRenderer |
getCellRenderer()
Returns the CellRenderer for this IDataType. |
int |
getSize()
Returns the size of the DataType. |
int |
hashCode(Object pObject)
Returns the hash code of the given object or null if the object is null. |
Object |
prepareValue(Object pObject)
Prepares the given value. |
void |
setCellEditor(ICellEditor pCellEditor)
Sets the CellEditor for this IDataType. |
void |
setCellRenderer(ICellRenderer pCellRenderer)
Sets the CellRenderer for this IDataType. |
void |
setSize(int pSize)
Sets the size of the DataType. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.rad.model.datatype.IDataType |
|---|
convertAndCheckToTypeClass, convertToString, convertToTypeClass, getTypeClass, getTypeIdentifier |
| Constructor Detail |
|---|
public DataType()
| Method Detail |
|---|
public int compareTo(Object pObject1,
Object pObject2)
IDataType objects in the rules of the Comparable interface.
Implementations need to take care about to null objects are equal.
compareTo in interface IDataTypepObject1 - a getTypeClass() object of one IDataTypepObject2 - a getTypeClass() object of one IDataType
public int hashCode(Object pObject)
hashCode in interface IDataTypepObject - a getTypeClass() object of one IDataType
public IDataType clone()
IDataType.
clone in interface IDataTypeclone in class ObjectIDataTypeObject.clone()
public Object prepareValue(Object pObject)
throws ModelException
prepareValue in interface IDataTypepObject - the object to prepare.
ModelException - if the preparation failed.public void setCellEditor(ICellEditor pCellEditor)
CellEditor for this IDataType.
setCellEditor in interface IDataTypepCellEditor - the new ICellEditorpublic ICellEditor getCellEditor()
CellEditor for this IDataType.
getCellEditor in interface IDataTypeCellEditor for this IDataType.public void setCellRenderer(ICellRenderer pCellRenderer)
CellRenderer for this IDataType.
setCellRenderer in interface IDataTypepCellRenderer - the new ICellRendererpublic ICellRenderer getCellRenderer()
CellRenderer for this IDataType.
getCellRenderer in interface IDataTypeCellRenderer for this IDataType.public int getSize()
public void setSize(int pSize)
DataType.
pSize - the size of the DataType.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||