|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDataType
A IDataType is the data type of the ColumnDefinition.
It stores type specific informations like size, precision, ...
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.
| Method Summary | |
|---|---|
IDataType |
clone()
Clone an IDataType. |
int |
compareTo(Object pObject1,
Object pObject2)
Compares IDataType objects in the rules of the Comparable interface. |
Object |
convertAndCheckToTypeClass(Object pObject)
Converts the oObject to an Object which is an instance of the class
which is handled by IDataType. |
String |
convertToString(Object pObject)
Converts the oObject into a String which represents the
Object. |
Object |
convertToTypeClass(Object pObject)
Converts the oObject to an Object which is an instance of
the class which is handled by IDataType. |
ICellEditor |
getCellEditor()
Returns the CellEditor for this IDataType. |
ICellRenderer |
getCellRenderer()
Returns the CellRenderer for this IDataType. |
Class |
getTypeClass()
Returns the class of the Object's handled by IDataType. |
int |
getTypeIdentifier()
Gets the data type identifier. |
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. |
| Method Detail |
|---|
int getTypeIdentifier()
IDataType clone()
IDataType.
IDataTypeObject.clone()Class getTypeClass()
Object's handled by IDataType.
Object's handled by IDataType.int hashCode(Object pObject)
pObject - a getTypeClass() object of one IDataType
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.
pObject1 - a getTypeClass() object of one IDataTypepObject2 - a getTypeClass() object of one IDataType
Object convertToTypeClass(Object pObject)
throws ModelException
Object which is an instance of
the class which is handled by IDataType.
pObject - the source Object to convert
Object that is instance of the class which is
handled by IDataType.
ModelException - if the class/type of oObject is not supported
Object convertAndCheckToTypeClass(Object pObject)
throws ModelException
Object which is an instance of the class
which is handled by IDataType. The resulting Object is
also checked against the type attributes like size, precision,...
pObject - the source Object to convert
Object that is instance of the class which is
handled by IDataType.
ModelException - if the Object is outside the limits of the
DataType attributesString convertToString(Object pObject)
String which represents the
Object.
pObject - the source Object to convert
String representation of the source Object
Object prepareValue(Object pObject)
throws ModelException
pObject - the object to prepare.
ModelException - if the preparation failed.void setCellEditor(ICellEditor pCellEditor)
CellEditor for this IDataType.
pCellEditor - the new ICellEditorICellEditor getCellEditor()
CellEditor for this IDataType.
CellEditor for this IDataType.void setCellRenderer(ICellRenderer pCellRenderer)
CellRenderer for this IDataType.
pCellRenderer - the new ICellRendererICellRenderer getCellRenderer()
CellRenderer for this IDataType.
CellRenderer for this IDataType.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||