JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.datasource.util
Class ColumnDataBinding

java.lang.Object
  |
  +--com.klg.jclass.datasource.util.DataBinding
        |
        +--com.klg.jclass.datasource.util.ColumnDataBinding
All Implemented Interfaces:
DataModelListener, EventListener, ReadOnlyBindingListener, Serializable
Direct Known Subclasses:
FieldDataBinding

public abstract class ColumnDataBinding
extends DataBinding

An extension of DataBinding that further allows binding to a particular column

This is an abstract class and is further extended to either (as of this writing) by FieldDataBinding which allows one to bind to the current of the bound column and ColumnDataBinding which allows you to bind to the whole column of the current table of the particular meta-data level.

See Also:
Serialized Form

Field Summary
protected  String column_name
           
protected  int column_type
           
 
Fields inherited from class com.klg.jclass.datasource.util.DataBinding
binding, component, dataBinding, PATH_DELIMITER, SOURCE_DELIMITER
 
Constructor Summary
ColumnDataBinding(Component component)
           
ColumnDataBinding(Component component, com.klg.jclass.datasource.BindingModel binding, String column_name)
           
 
Method Summary
 String getDataBinding()
          Returns the data binding hierarchy string, starting from a JCTreeData instance name and containing full sequence of MetaDataModel levels starting from the root to the level the table is bound with and further down to the particular column.
 boolean isColumnEditable()
          Determines whether the current column can be edited.
 void setDataBinding(com.klg.jclass.datasource.BindingModel binding, String column_name)
          Bind to a level using a Binding.
 void setDataBinding(com.klg.jclass.datasource.DataModel dataModel, com.klg.jclass.datasource.MetaDataModel metaDataModel, String column_name)
          Sets up parameters to bind the JCDataSource to a MetaDataModel in the given DataModel.
 void setDataBinding(com.klg.jclass.datasource.DataModel dataModel, String meta_description)
          Sets the data source to a DataModel and binds the MetaData and column to the MetaDataModel represented by a "path" of MetaDataModel descriptions separated by '|' (e.g.
 
Methods inherited from class com.klg.jclass.datasource.util.DataBinding
afterChangeOfRowData, afterDeleteRow, afterInsertRow, afterMoveToCurrentRow, afterRequeryRowAndDetails, afterRequeryTable, afterReset, beforeCancelAll, beforeCancelRowChanges, beforeCommitAll, beforeCommitConditional, beforeCommitRow, beforeCurrentRowChange, beforeDeleteRow, beforeDeleteTable, beforeEditCell, beforeInsertRow, beforeMoveToCurrentRow, beforeRequery, beforeReset, beginEvents, cellDataChanged, checkDataTableChanged, checkDataTableChanged, currentRowChanged, dispose, endEvents, finalize, getBinding, getComponent, getCurrentRowIndex, getJavaColumnType, getNativeMetaData, getNumColumns, getNumRows, getTableColumnLabel, handleCancellingBeforeEvents, handleCheckingAfterEvents, initialize, isColumnEditable, isDataAvailable, moveToBestRowAfterDelete, moveToRowIndex, originatorNavigateRow, processException, rowDataChanged, rowDeleted, rowInserted, setDataAvailable, setDataBinding, setDataBinding, setDataBinding, setDataBindingInternalBegin, setDataBindingInternalEnd, tableChanged, toggleDataAvailableState
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

column_type

protected int column_type

column_name

protected String column_name
Constructor Detail

ColumnDataBinding

public ColumnDataBinding(Component component)

ColumnDataBinding

public ColumnDataBinding(Component component,
                         com.klg.jclass.datasource.BindingModel binding,
                         String column_name)
Method Detail

getDataBinding

public String getDataBinding()
Returns the data binding hierarchy string, starting from a JCTreeData instance name and containing full sequence of MetaDataModel levels starting from the root to the level the table is bound with and further down to the particular column.

Overrides:
getDataBinding in class DataBinding
Returns:
the string which indicates the hierarchy for this level.
See Also:
NodeProperties.setDataSource(java.lang.Object), getDataBinding(), JCTreeData, MetaDataModel

setDataBinding

public void setDataBinding(com.klg.jclass.datasource.DataModel dataModel,
                           com.klg.jclass.datasource.MetaDataModel metaDataModel,
                           String column_name)
Sets up parameters to bind the JCDataSource to a MetaDataModel in the given DataModel.


setDataBinding

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

Parameters:
binding - the binding level.

setDataBinding

public void setDataBinding(com.klg.jclass.datasource.DataModel dataModel,
                           String meta_description)
Sets the data source to a DataModel and binds the MetaData and column to the MetaDataModel represented by a "path" of MetaDataModel descriptions separated by '|' (e.g. Orders|Customers|CustomerID).

This overrides the super class version of this which binds only to a particular meta-data level

Overrides:
setDataBinding in class DataBinding

isColumnEditable

public boolean isColumnEditable()
Determines whether the current column can be edited.

Returns:
true if the column can be edited; false otherwise.

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