本文整理了Java中org.jbundle.base.db.Record.getScreen
方法的一些代码示例,展示了Record.getScreen
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Record.getScreen
方法的具体详情如下:
包路径:org.jbundle.base.db.Record
类名称:Record
方法名:getScreen
[英]Get the screen.
[中]拿到屏幕。
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
/**
* Get the owner of this property key.
* The registration key is the screen's key.
* The property key is the field name.
* @return The owner of this property key.
*/
public PropertyOwner retrieveUserProperties()
{
Record record = this.getOwner().getRecord();
BasePanel screen = record.getScreen();
if (screen != null)
return screen.retrieveUserProperties(); // Return the registration key
else
return null; // Must have a screen for this to work
}
}
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Get the owner of this property key.
* The registration key is the screen's key.
* The property key is the field name.
* @return The owner of this property key.
*/
public PropertyOwner retrieveUserProperties()
{
Record record = this.getOwner().getRecord();
BasePanel screen = record.getScreen();
if (screen != null)
return screen.retrieveUserProperties(); // Return the registration key
else
return null; // Must have a screen for this to work
}
}
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
public int fieldChanged(boolean bDisplayOption, int iMoveMode)
{
Record recDefault = this.getOwner().getRecord();
BasePanel screen = recDefault.getScreen();
screen = screen.getRootScreen();
String strScreenTitle = Constants.BLANK;
if (m_bSetTitleToThisString)
strScreenTitle = this.getOwner().getString();
if (strScreenTitle.length() == 0)
strScreenTitle = this.getTitle(screen);
if (strScreenTitle.length() > 0)
{
Component pWnd = screen.getScreenFieldView().getControl();
JFrame pWndFrame = null;
if (pWndFrame == null)
pWndFrame = (JFrame)pWnd;
if (pWndFrame != null)
pWndFrame.setTitle(strScreenTitle);
}
return DBConstants.NORMAL_RETURN;
}
/**
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
public int fieldChanged(boolean bDisplayOption, int iMoveMode)
{
Record recDefault = this.getOwner().getRecord();
BasePanel screen = recDefault.getScreen();
screen = screen.getRootScreen();
String strScreenTitle = Constants.BLANK;
if (m_bSetTitleToThisString)
strScreenTitle = this.getOwner().getString();
if (strScreenTitle.length() == 0)
strScreenTitle = this.getTitle(screen);
if (strScreenTitle.length() > 0)
{
Component pWnd = screen.getScreenFieldView().getControl();
JFrame pWndFrame = null;
if (pWndFrame == null)
pWndFrame = (JFrame)pWnd;
if (pWndFrame != null)
pWndFrame.setTitle(strScreenTitle);
}
return DBConstants.NORMAL_RETURN;
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
if (fldContactType == null)
return null;
if (this.getRecord().getScreen() != null)
recordOwner = this.getRecord().getScreen();
ContactType recContactType = (ContactType)fldContactType.getReferenceRecord();
recContactType = (ContactType)fldContactType.getReference();
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
boolean bRefreshIfChanged = true;
if (parent != null)
if (this.getScreen() != null)
if (this.getScreen().getParentScreen() == parent)
bRefreshIfChanged = false; // Since the screen (and record) will be closed, only need to write record
recordNew.readSameRecord(recordCurrent, true, bRefreshIfChanged); // Write if it is changed
if (this.getScreen() != null)
if (this.getScreen().getParentScreen() == parent)
this.getScreen().free(); // Warning, this also closes "this" record.
bLinkGridToQuery = false; // Can't link to a closed query.
BaseScreen screenCurrent = this.getScreen();
if (screenCurrent == null)
bLinkGridToQuery = false;
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
boolean bRefreshIfChanged = true;
if (parent != null)
if (this.getScreen() != null)
if (this.getScreen().getParentScreen() == parent)
bRefreshIfChanged = false; // Since the screen (and record) will be closed, only need to write record
recordNew.readSameRecord(recordCurrent, true, bRefreshIfChanged); // Write if it is changed
if (this.getScreen() != null)
if (this.getScreen().getParentScreen() == parent)
this.getScreen().free(); // Warning, this also closes "this" record.
bLinkGridToQuery = false; // Can't link to a closed query.
BaseScreen screenCurrent = this.getScreen();
if (screenCurrent == null)
bLinkGridToQuery = false;
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
if (this.getRecord().getScreen() == null)
screen.setSelectQuery(this.getRecord(), false); // Since this record isn't linked to the screen, manually link it.
内容来源于网络,如有侵权,请联系作者删除!