JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.field.db.datasource
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.datasource.DataBinding
All Implemented Interfaces:
DataModelListener, EventListener, ReadOnlyBindingListener, Serializable

public class DataBinding
extends FieldDataBinding

The DataBinding class.

See Also:
Serialized Form

Field Summary
protected  boolean dataSourceUpdating
           
protected  com.klg.jclass.field.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(com.klg.jclass.field.JCFieldComponent c, com.klg.jclass.util.value.JCValueModel model)
          Constructs a data binding object.
 
Method Summary
protected  String convertMetaColumnTypeToClassName(int meta_column_type)
          Converts a Meta column Type to a Class name.
 com.klg.jclass.datasource.ColumnModel getColumnModel()
          Retrieves the column model.
 Class getValueClass()
          Retrieves the value class for the column.
 String getValueClassName()
          Retrieves the value class name.
 boolean isCurrency()
          Tests to see if the column stores currency values.
 boolean isDataSourceUpdating()
          Tests to see if the data source is updating.
protected  void refreshCell(Object item)
          Implementation of an 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 an abstract superclasses method that saves the component's data to the datasource.
 void setDataBinding(com.klg.jclass.datasource.BindingModel binding, String column_name)
          Binds 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 com.klg.jclass.field.JCFieldComponent fieldComponent

dataSourceUpdating

protected boolean dataSourceUpdating
Constructor Detail

DataBinding

public DataBinding(com.klg.jclass.field.JCFieldComponent c,
                   com.klg.jclass.util.value.JCValueModel model)
Constructs a data binding object.

Method Detail

isDataSourceUpdating

public boolean isDataSourceUpdating()
Tests to see if the data source is updating.


getColumnModel

public com.klg.jclass.datasource.ColumnModel getColumnModel()
Retrieves the column model.


isCurrency

public boolean isCurrency()
Tests to see if the column stores currency values.


getValueClass

public Class getValueClass()
Retrieves the value class for the column.


getValueClassName

public String getValueClassName()
Retrieves the value class name.


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 ColumnDataBinding

setDataBinding

public void setDataBinding(com.klg.jclass.datasource.BindingModel binding,
                           String column_name)
Binds using a Binding

Overrides:
setDataBinding in class ColumnDataBinding
Parameters:
binding - the binding level.

refreshCell

protected void refreshCell(Object item)
Implementation of an abstract superclass method that updates the component's data contents when the current row changes or the record is modified.

Specified by:
refreshCell in class FieldDataBinding

saveCell

protected boolean saveCell()
Implementation of an abstract superclasses method that saves the component's data to the datasource.

Specified by:
saveCell in class FieldDataBinding

Copyright © 2004 Quest Software Inc..
All rights reserved.