| java.lang.Object net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.BaseDataTypeComponent
All known Subclasses: net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.DataTypeUnknown, net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.DataTypeTimestamp, net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.DataTypeBinary, net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.DataTypeByte, net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.FloatingPointBase, net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.DataTypeInteger, net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.DataTypeJavaObject, net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.DataTypeBlob, net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.DataTypeOther, net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.DataTypeShort, net.sourceforge.squirrel_sql.plugins.oracle.types.OracleXmlTypeDataTypeComponent, net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.DataTypeLong, net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.DataTypeString, net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.DataTypeBoolean, net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.DataTypeTime, net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.DataTypeClob, net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.DataTypeDate,
BaseDataTypeComponent | public class BaseDataTypeComponent (Code) | | A base class for DataTypeComponents with common behavior.
author: manningr |
NULL_VALUE_PATTERN | final public static String NULL_VALUE_PATTERN(Code) | | The text value that is placed in the cell to indicate a null value
|
_table | protected JTable _table(Code) | | table of which we are part (needed for creating popup dialog)
|
getJTextArea | public JTextArea getJTextArea(Object value)(Code) | | Return a JTextArea usable in the CellPopupDialog. This will use the
renderer to render the value as text and set this as the text for the
JTextArea that is returned.
Parameters: value - the value to set as text in the JTextArea. |
getJTextField | public JTextField getJTextField()(Code) | | Return a JTextField usable in a CellEditor.
|
getKeyListener | protected KeyListener getKeyListener()(Code) | | If any custom key handling behavior is required, this can be set by
sub-class implementations
|
importObject | public String importObject(FileInputStream inStream) throws IOException(Code) | | Read a file and construct a valid object from its contents.
Errors are returned by throwing an IOException containing the
cause of the problem as its message.
DataType is responsible for validating that the imported
data can be converted to an object, and then must return
a text string that can be used in the Popup window text area.
This object-to-text conversion is the same as is done by
the DataType object internally in the getJTextArea() method.
File is assumed to be and ASCII string of digits
representing a value of this data type.
|
renderObject | public String renderObject(Object value)(Code) | | Render a value into text for this DataType.
|
setColumnDisplayDefinition | public void setColumnDisplayDefinition(ColumnDisplayDefinition def)(Code) | | Sets the display definition of the Column being operated upon.
Parameters: def - the ColumnDisplayDefinition that describes the column in the db table. |
setTable | public void setTable(JTable table)(Code) | | Sets the JTable of which holds data rendered by this DataTypeComponent.
Parameters: table - a JTable component |
validateAndConvert | public Object validateAndConvert(String value, Object originalValue, StringBuffer messageBuffer)(Code) | | Implement the interface for validating and converting to internal object.
Null is a valid successful return, so errors are indicated only by
existance or not of a message in the messageBuffer.
|
validateAndConvertInPopup | public Object validateAndConvertInPopup(String value, Object originalValue, StringBuffer messageBuffer)(Code) | | Validating and converting in Popup is identical to cell-related operation.
|
|
|