本文整理了Java中org.jbundle.base.db.Record.handleNewRecord
方法的一些代码示例,展示了Record.handleNewRecord
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Record.handleNewRecord
方法的具体详情如下:
包路径:org.jbundle.base.db.Record
类名称:Record
方法名:handleNewRecord
[英]Called when a new blank record is required for the table/query. Set this field back to the original value.
[中]当表/查询需要新的空白记录时调用。将此字段设置回原始值。
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* Clear all the fields and leave record in an indeterminate state.
* This method is frequently used to prepare a record for a seek command. This prevents
* the Edit command from being called because the record was changed. (Edit usually called the database).
* @param bDisplayOption Display the new field values.
*/
public void initRecord(boolean bDisplayOption) //, boolean bDisplayOption)
{
this.handleNewRecord(bDisplayOption);
this.setEditMode(Constants.EDIT_NONE); // No Status
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Clear all the fields and leave record in an indeterminate state.
* This method is frequently used to prepare a record for a seek command. This prevents
* the Edit command from being called because the record was changed. (Edit usually called the database).
* @param bDisplayOption Display the new field values.
*/
public void initRecord(boolean bDisplayOption) //, boolean bDisplayOption)
{
this.handleNewRecord(bDisplayOption);
this.setEditMode(Constants.EDIT_NONE); // No Status
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Called when a new blank record is required for the table/query.
* Set this field back to the original value.
*/
public void handleNewRecord() // init this field override for other value
{
this.handleNewRecord(this.getDisplayOption());
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* Called when a new blank record is required for the table/query.
* Set this field back to the original value.
*/
public void handleNewRecord() // init this field override for other value
{
this.handleNewRecord(this.getDisplayOption());
}
/**
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
/**
* Called when a new blank record is required for the table/query.
* Set this field back to the original value.
*/
public void handleNewRecord() // init this field override for other value
{
this.handleNewRecord(this.getDisplayOption());
}
/**
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
/**
* Clear all the fields and leave record in an indeterminate state.
* This method is frequently used to prepare a record for a seek command. This prevents
* the Edit command from being called because the record was changed. (Edit usually called the database).
* @param bDisplayOption Display the new field values.
*/
public void initRecord(boolean bDisplayOption) //, boolean bDisplayOption)
{
this.handleNewRecord(bDisplayOption);
this.setEditMode(Constants.EDIT_NONE); // No Status
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* Create/Clear the current object (Always called from the record class).
* @exception DBException File exception.
*/
public void addNew() throws DBException
{
this.getRecord().setEditMode(Constants.EDIT_NONE);
m_objectID = null;
m_dataSource = null;
try {
this.doAddNew();
m_iRecordStatus = DBConstants.RECORD_NEW;
} catch (DBException ex) {
throw ex;
}
this.getRecord().setEditMode(Constants.EDIT_ADD); // I do this before the handleNewRecord behaviors do anything
this.getRecord().handleNewRecord(); // Display Fields
}
/**
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
/**
* Create/Clear the current object (Always called from the record class).
* @exception DBException File exception.
*/
public void addNew() throws DBException
{
this.getRecord().setEditMode(Constants.EDIT_NONE);
m_objectID = null;
m_dataSource = null;
try {
this.doAddNew();
m_iRecordStatus = DBConstants.RECORD_NEW;
} catch (DBException ex) {
throw ex;
}
this.getRecord().setEditMode(Constants.EDIT_ADD); // I do this before the handleNewRecord behaviors do anything
this.getRecord().handleNewRecord(); // Display Fields
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Create/Clear the current object (Always called from the record class).
* @exception DBException File exception.
*/
public void addNew() throws DBException
{
this.getRecord().setEditMode(Constants.EDIT_NONE);
m_objectID = null;
m_dataSource = null;
try {
this.doAddNew();
m_iRecordStatus = DBConstants.RECORD_NEW;
} catch (DBException ex) {
throw ex;
}
this.getRecord().setEditMode(Constants.EDIT_ADD); // I do this before the handleNewRecord behaviors do anything
this.getRecord().handleNewRecord(); // Display Fields
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Sync the current record's contents and status to the base record
*/
public void syncRecordToBase(Record recBase, Record recAlt)
{
if ((recAlt != null) && (recBase != null))
{
recBase.moveFields(recAlt, null, true, DBConstants.READ_MOVE, false, false, true);
recBase.setEditMode(recAlt.getEditMode());
}
if ((recBase.getEditMode() == DBConstants.EDIT_CURRENT) || (recBase.getEditMode() == DBConstants.EDIT_IN_PROGRESS))
recBase.handleValidRecord(); // Do listeners, Display Fields
else if (recBase.getEditMode() == DBConstants.EDIT_ADD)
recBase.handleNewRecord(); // Do listeners, Display Fields
}
}
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
/**
* Sync the current record's contents and status to the base record
*/
public void syncRecordToBase(Record recBase, Record recAlt)
{
if ((recAlt != null) && (recBase != null))
{
recBase.moveFields(recAlt, null, true, DBConstants.READ_MOVE, false, false, true);
recBase.setEditMode(recAlt.getEditMode());
}
if ((recBase.getEditMode() == DBConstants.EDIT_CURRENT) || (recBase.getEditMode() == DBConstants.EDIT_IN_PROGRESS))
recBase.handleValidRecord(); // Do listeners, Display Fields
else if (recBase.getEditMode() == DBConstants.EDIT_ADD)
recBase.handleNewRecord(); // Do listeners, Display Fields
}
}
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* Sync the current record's contents and status to the base record
* @param syncSelection Sync selected fields?
*/
public void syncRecordToBase(Record recBase, Record recAlt, boolean syncSelection)
{
if ((recAlt != null) && (recBase != null))
{
recBase.moveFields(recAlt, null, true, DBConstants.READ_MOVE, false, false, true, syncSelection);
recBase.setEditMode(recAlt.getEditMode());
}
if ((recBase.getEditMode() == DBConstants.EDIT_CURRENT) || (recBase.getEditMode() == DBConstants.EDIT_IN_PROGRESS))
recBase.handleValidRecord(); // Do listeners, Display Fields
else if (recBase.getEditMode() == DBConstants.EDIT_ADD)
recBase.handleNewRecord(); // Do listeners, Display Fields
//?recBase.setKeyArea(recAlt.getDefaultOrder());
}
}
代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.product.screen
recProductVars.handleNewRecord(); // Init the fields without changing the status (no table).
if (properties.get(MODIFIED_PARAM) != null)
properties.remove(MODIFIED_PARAM);
代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.product.screen
recProductVars.handleNewRecord(); // Init the fields without changing the status (no table).
if (properties.get(MODIFIED_PARAM) != null)
properties.remove(MODIFIED_PARAM);
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* Create/Clear the current object (Always called from the record class).
* @exception DBException File exception.
*/
public void addNew() throws DBException
{
super.addNew();
Record recCurrent = this.moveToCurrentRecord(null); // Perhaps, they supplied a default record type and this will switch it.
if ((recCurrent != null) && (this.getBaseRecord() != recCurrent))
recCurrent.handleNewRecord(); // Display Fields and do Add behaviors on correct record
else if ((this.getCurrentRecord() != null) && (this.getCurrentRecord() != this.getBaseRecord()))
{
this.getBaseRecord().matchListeners(this.getCurrentRecord(), false, true, true, true, true); // Clone the listeners that are not there already.
this.getCurrentRecord().addNew();
}
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Create/Clear the current object (Always called from the record class).
* @exception DBException File exception.
*/
public void addNew() throws DBException
{
super.addNew();
Record recCurrent = this.moveToCurrentRecord(null); // Perhaps, they supplied a default record type and this will switch it.
if ((recCurrent != null) && (this.getBaseRecord() != recCurrent))
recCurrent.handleNewRecord(); // Display Fields and do Add behaviors on correct record
else if ((this.getCurrentRecord() != null) && (this.getCurrentRecord() != this.getBaseRecord()))
{
this.getBaseRecord().matchListeners(this.getCurrentRecord(), false, true, true, true, true); // Clone the listeners that are not there already.
this.getCurrentRecord().addNew();
}
}
/**
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
/**
* Create/Clear the current object (Always called from the record class).
* @exception DBException File exception.
*/
public void addNew() throws DBException
{
super.addNew();
Record recCurrent = this.moveToCurrentRecord(null); // Perhaps, they supplied a default record type and this will switch it.
if ((recCurrent != null) && (this.getBaseRecord() != recCurrent))
recCurrent.handleNewRecord(); // Display Fields and do Add behaviors on correct record
else if ((this.getCurrentRecord() != null) && (this.getCurrentRecord() != this.getBaseRecord()))
{
this.getBaseRecord().matchListeners(this.getCurrentRecord(), false, true, true, true, true); // Clone the listeners that are not there already.
this.getCurrentRecord().addNew();
}
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
this.getRecord().handleNewRecord(); //? Display Fields (Should leave record in an indeterminate state!)
this.getRecord().setEditMode(Constants.EDIT_NONE); // Unknown status
代码示例来源:origin: org.jbundle.base/org.jbundle.base
this.getRecord().handleNewRecord(); //? Display Fields (Should leave record in an indeterminate state!)
this.getRecord().setEditMode(Constants.EDIT_NONE); // Unknown status
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
this.getRecord().handleNewRecord(); //? Display Fields (Should leave record in an indeterminate state!)
this.getRecord().setEditMode(Constants.EDIT_NONE); // Unknown status
内容来源于网络,如有侵权,请联系作者删除!