|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.dacf.util.InfoBusMemberHelper
oracle.dacf.control.ConsumerSupport
oracle.dacf.control.DataItemAccessHelper
oracle.dacf.control.swing.find.FindItemModelImpl
FindItemModelImpl implements the FindItemModel interface. It binds to a dataitem representing a column value and retrives the SQL type, value and display label.
FindItemModel
,
FindAction
Field Summary | |
static java.lang.String |
_defaultDateFormatString
date format string used in date formatter |
static java.lang.String |
_defaultSQLDateFormatString
SQL date format |
static java.lang.String |
_defaultSQLTimeFormatString
SQL time format |
Fields inherited from class oracle.dacf.util.InfoBusMemberHelper |
m_infoBus, m_propListeners, m_sourceRef, m_syncLock, m_vetoListeners |
Constructor Summary | |
FindItemModelImpl()
Constructor |
Method Summary | |
protected java.lang.String |
_getColumnDisplayName(ColumnInfo attrInfo)
get column display name |
protected java.lang.String |
_getColumnName(ColumnInfo attrInfo)
get the column name |
protected java.lang.String |
_getColumnName(javax.infobus.DataItem di)
|
protected ColumnInfo |
_getInfoObject()
get the data object associated with the data item |
protected ColumnInfo |
_getInfoObjectFromParent()
If the dataitem corresponding to column object is revoked because the result set has zero rows, attempt to get the dataitem from the parent rowset. |
protected java.lang.Object |
_getItemValue()
get the item value |
protected java.lang.String |
_getLOVForeignKeyName(ColumnInfo colInfo)
get the LOV Foriegn key name |
protected java.lang.String |
_getName(ColumnInfo attrInfo)
|
protected int |
_getSQLType(ColumnInfo attrInfo)
get SQL type for this column |
protected void |
_init()
|
protected void |
dataItemPublished()
override the derived class method inorder to initialize |
java.lang.String |
getColumnDisplayName()
get column display name |
java.lang.String |
getColumnName()
get the column name |
java.lang.String |
getFormatString()
return the format string used. |
java.lang.Object |
getItemValue()
get the column value |
java.lang.String |
getSQLFormatString()
get the SQL format string |
int |
getSQLType()
get SQL type for this column |
void |
setDataItemName(java.lang.String dataItemName)
Sets the name of the InfoBus DataItem this object is bound to. |
void |
setInfoBusName(java.lang.String infoBusName)
Sets the name of the InfoBus this transaction monitor is connected to. |
void |
setItemValue(java.lang.Object value)
set the column value |
Methods inherited from class oracle.dacf.control.DataItemAccessHelper |
_setDataItem, dataItemAvailable, dataItemRevoked, getDataItem, getDataItemName, getInfoBusName, propertyChange |
Methods inherited from class oracle.dacf.control.ConsumerSupport |
available, revoked |
Methods inherited from class oracle.dacf.util.InfoBusMemberHelper |
addInfoBusPropertyListener, addInfoBusVetoableListener, clearRef, getInfoBus, joinInfoBus, joinInfoBus, leaveInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.lang.String _defaultSQLDateFormatString
public static java.lang.String _defaultSQLTimeFormatString
public static java.lang.String _defaultDateFormatString
Constructor Detail |
public FindItemModelImpl()
Method Detail |
public java.lang.Object getItemValue()
getItemValue
in interface FindItemModel
public void setItemValue(java.lang.Object value)
setItemValue
in interface FindItemModel
value
- value for the columnpublic java.lang.String getColumnName()
getColumnName
in interface FindItemModel
public int getSQLType()
getSQLType
in interface FindItemModel
public java.lang.String getColumnDisplayName()
getColumnDisplayName
in interface FindItemModel
public java.lang.String getFormatString()
getFormatString
in interface FindItemModel
public java.lang.String getSQLFormatString()
getSQLFormatString
in interface FindItemModel
public void setDataItemName(java.lang.String dataItemName)
The DataItem with the given name is searched for on the InfoBus, and if found, is bound to this object.
If the object is already bound to a DataItem, it is unbound first.
setDataItemName
in class DataItemAccessHelper
dataItemName
- The name of the DataItem to bind to.DataItemAccessHelper.getDataItem()
public void setInfoBusName(java.lang.String infoBusName)
By default, the it is connected to the default InfoBus, named Control.DEFAULT_INFOBUS_NAME.
If the named InfoBus does not exist, it is created automatically.
setInfoBusName
in class DataItemAccessHelper
infoBusName
- The name of the InfoBus to connect to.protected void dataItemPublished()
dataItemPublished
in class DataItemAccessHelper
dataItemAvailable()
,
FindItemModelImpl
protected void _init()
protected java.lang.Object _getItemValue()
protected java.lang.String _getName(ColumnInfo attrInfo)
protected java.lang.String _getColumnName(ColumnInfo attrInfo)
protected java.lang.String _getColumnName(javax.infobus.DataItem di)
protected java.lang.String _getLOVForeignKeyName(ColumnInfo colInfo)
protected int _getSQLType(ColumnInfo attrInfo)
protected java.lang.String _getColumnDisplayName(ColumnInfo attrInfo)
protected ColumnInfo _getInfoObject()
protected ColumnInfo _getInfoObjectFromParent()
|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2003, Oracle. All rights reserved.