JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.field.db.datasource
Class AbstractBindingValueModel

java.lang.Object
  |
  +--com.klg.jclass.util.value.AbstractValueModel
        |
        +--com.klg.jclass.field.db.datasource.AbstractBindingValueModel
All Implemented Interfaces:
JCValueModel, Serializable
Direct Known Subclasses:
DataSourceValueModel, JBuilderValueModel

public class AbstractBindingValueModel
extends AbstractValueModel

Abstract binding value model.

See Also:
Serialized Form

Field Summary
protected  com.klg.jclass.field.db.datasource.DataBinding dataBinding
           
 
Fields inherited from class com.klg.jclass.util.value.AbstractValueModel
listeners, value
 
Constructor Summary
AbstractBindingValueModel(com.klg.jclass.field.JCFieldComponent c)
          Constructs an AbstractBindingValueModel.
 
Method Summary
 Class getValueClass()
          Returns the type of the core value.
 boolean isCurrency()
          Tests to see if column stores currency values.
 void setValue(Object item)
          Sets the value.
 
Methods inherited from class com.klg.jclass.util.value.AbstractValueModel
addValueListener, getValue, removeValueListener, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataBinding

protected com.klg.jclass.field.db.datasource.DataBinding dataBinding
Constructor Detail

AbstractBindingValueModel

public AbstractBindingValueModel(com.klg.jclass.field.JCFieldComponent c)
Constructs an AbstractBindingValueModel.

Method Detail

isCurrency

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


setValue

public void setValue(Object item)
Sets the value.

Specified by:
setValue in interface JCValueModel
Overrides:
setValue in class AbstractValueModel
Parameters:
item - The new value

getValueClass

public Class getValueClass()
Returns the type of the core value. It is necessary to store the class of the value separate from the object since if the value object is null then the class information is lost.

Specified by:
getValueClass in interface JCValueModel
Specified by:
getValueClass in class AbstractValueModel
Returns:
The class of the value for this value model

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