JClass 4.5.0 API
Documentation

com.klg.jclass.field.db.jbuilder
Class DataBinding

java.lang.Object
  |
  +--com.klg.jclass.datasource.util.DataBinding
        |
        +--com.klg.jclass.datasource.util.ColumnDataBinding
              |
              +--com.klg.jclass.datasource.util.FieldDataBinding
                    |
                    +--com.klg.jclass.field.db.jbuilder.DataBinding

public class DataBinding
extends com.klg.jclass.datasource.util.FieldDataBinding

See Also:
Serialized Form

Field Summary
protected  boolean dataSourceUpdating
           
protected  JCFieldComponent fieldComponent
           
 
Fields inherited from class com.klg.jclass.datasource.util.ColumnDataBinding
column_name, column_type
 
Fields inherited from class com.klg.jclass.datasource.util.DataBinding
binding, component, dataBinding, PATH_DELIMITER, SOURCE_DELIMITER
 
Constructor Summary
DataBinding(JCFieldComponent c, com.klg.jclass.util.value.JCValueModel model)
           
 
Method Summary
protected  String convertMetaColumnTypeToClassName(int meta_column_type)
          Converts a Meta column Type to a Class name.
 com.klg.jclass.datasource.ColumnModel getColumnModel()
           
 Class getValueClass()
           
 String getValueClassName()
           
 boolean isCurrency()
           
 boolean isDataSourceUpdating()
           
protected  void refreshCell(Object item)
          Implementation of abstract superclass method that updates the component's data contents when the current row changes or the record is modified.
protected  boolean saveCell()
          Implementation of abstract superclasses method that saves the component's data to the datasource.
 void setDataBinding(com.klg.jclass.datasource.BindingModel binding, String column_name)
          Bind using a Binding
 void setDataBinding(com.klg.jclass.datasource.DataModel data_model, com.klg.jclass.datasource.MetaDataModel meta_data_model, String column_name)
          Sets up parameters to bind the JCDataSource to a MetaDataModel in the given DataModel.
 
Methods inherited from class com.klg.jclass.datasource.util.FieldDataBinding
beforeCurrentRowChange, cellDataChanged, convertAndSaveItem, currentRowChanged, readCurrentCell, rowDataChanged, rowDeleted, rowInserted, saveItem, setDataAvailable, setDataAvailableState, tableChanged, toggleDataAvailableState
 
Methods inherited from class com.klg.jclass.datasource.util.ColumnDataBinding
getDataBinding, isColumnEditable, setDataBinding
 
Methods inherited from class com.klg.jclass.datasource.util.DataBinding
afterChangeOfRowData, afterDeleteRow, afterInsertRow, afterMoveToCurrentRow, afterRequeryRowAndDetails, afterRequeryTable, afterReset, beforeCancelAll, beforeCancelRowChanges, beforeCommitAll, beforeCommitConditional, beforeCommitRow, beforeDeleteRow, beforeDeleteTable, beforeEditCell, beforeInsertRow, beforeMoveToCurrentRow, beforeRequery, beforeReset, beginEvents, checkDataTableChanged, checkDataTableChanged, dispose, endEvents, finalize, getBinding, getComponent, getCurrentRowIndex, getJavaColumnType, getNativeMetaData, getNumColumns, getNumRows, getTableColumnLabel, handleCancellingBeforeEvents, handleCheckingAfterEvents, initialize, isColumnEditable, isDataAvailable, moveToBestRowAfterDelete, moveToRowIndex, originatorNavigateRow, processException, setDataBinding, setDataBinding, setDataBinding, setDataBindingInternalBegin, setDataBindingInternalEnd
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldComponent

protected JCFieldComponent fieldComponent

dataSourceUpdating

protected boolean dataSourceUpdating
Constructor Detail

DataBinding

public DataBinding(JCFieldComponent c,
                   com.klg.jclass.util.value.JCValueModel model)
Method Detail

isDataSourceUpdating

public boolean isDataSourceUpdating()

getColumnModel

public com.klg.jclass.datasource.ColumnModel getColumnModel()

isCurrency

public boolean isCurrency()

getValueClass

public Class getValueClass()

getValueClassName

public String getValueClassName()

convertMetaColumnTypeToClassName

protected String convertMetaColumnTypeToClassName(int meta_column_type)
Converts a Meta column Type to a Class name.

setDataBinding

public void setDataBinding(com.klg.jclass.datasource.DataModel data_model,
                           com.klg.jclass.datasource.MetaDataModel meta_data_model,
                           String column_name)
Sets up parameters to bind the JCDataSource to a MetaDataModel in the given DataModel.
Overrides:
setDataBinding in class com.klg.jclass.datasource.util.ColumnDataBinding

setDataBinding

public void setDataBinding(com.klg.jclass.datasource.BindingModel binding,
                           String column_name)
Bind using a Binding
Overrides:
setDataBinding in class com.klg.jclass.datasource.util.ColumnDataBinding

refreshCell

protected void refreshCell(Object item)
Implementation of abstract superclass method that updates the component's data contents when the current row changes or the record is modified.
Overrides:
refreshCell in class com.klg.jclass.datasource.util.FieldDataBinding

saveCell

protected boolean saveCell()
Implementation of abstract superclasses method that saves the component's data to the datasource.
Overrides:
saveCell in class com.klg.jclass.datasource.util.FieldDataBinding

Copyright© 1999-2000 KL Group Inc.
All rights reserved.