org.jbundle.base.db.Record.getScreen()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(67)

本文整理了Java中org.jbundle.base.db.Record.getScreen方法的一些代码示例,展示了Record.getScreen的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Record.getScreen方法的具体详情如下:
包路径:org.jbundle.base.db.Record
类名称:Record
方法名:getScreen

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.

相关文章

微信公众号

最新文章

更多

Record类方法