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

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

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

Record.makeScreen介绍

[英]Create a default document for file maintenance or file display. Usually overidden in the file's record class.
[中]创建用于文件维护或文件显示的默认文档。通常在文件的记录类中被过度隐藏。

代码示例

代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed

/**
 * Make a default screen.
 */
public BaseScreen makeScreen(ScreenLocation itsLocation, BasePanel parentScreen, int iDocMode, Map<String,Object> properties)
{
  BaseScreen screen = null;
  if ((iDocMode & ScreenConstants.MAINT_MODE) != 0)
    screen = new PropertiesInputGridScreen(this, itsLocation, parentScreen, null, iDocMode | ScreenConstants.DONT_DISPLAY_FIELD_DESC, properties);
  else if ((iDocMode & ScreenConstants.DISPLAY_MODE) != 0)
    screen = new PropertiesInputGridScreen(this, itsLocation, parentScreen, null, iDocMode | ScreenConstants.DONT_DISPLAY_FIELD_DESC, properties);
  else
    screen = super.makeScreen(itsLocation, parentScreen, iDocMode, properties);
  return screen;
}
/**

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.booking.entry

Record record = this.getMainRecord();
Map<String,Object> properties = null;
record.makeScreen(null, parentScreen, ScreenConstants.SELECT_MODE, true, true, true, true, properties);
return true;

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.acctpay.screen

boolean bLinkGridToQuery = true;
this.finalizeThisScreen();  // Validate current control, update record, get ready to close screen.
ScreenParent screen = recordMain.makeScreen(itsLocation, parentScreen, iDocMode, bCloneThisQuery, bReadCurrentRecord, bUseBaseTable, bLinkGridToQuery, null);
return true;    // Success

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.request.screen

/**
 * Process the command.
 * <br />Step 1 - Process the command if possible and return true if processed.
 * <br />Step 2 - If I can't process, pass to all children (with me as the source).
 * <br />Step 3 - If children didn't process, pass to parent (with me as the source).
 * <br />Note: Never pass to a parent or child that matches the source (to avoid an endless loop).
 * @param strCommand The command to process.
 * @param sourceSField The source screen field (to avoid echos).
 * @param iCommandOptions If this command creates a new screen, create in a new window?
 * @return true if success.
 */
public boolean doCommand(String strCommand, ScreenField sourceSField, int iCommandOptions)
{
  if ("Request Detail".equalsIgnoreCase(strCommand))
  {
    Record recProfile = this.getRecord(Profile.PROFILE_FILE);
    ScreenLocation itsLocation = null;
    int iDocMode = ScreenConstants.DETAIL_MODE;
    boolean bCloneThisQuery = false;
    boolean bReadCurrentRecord = true;
    boolean bUseBaseTable = true;
    boolean bLinkGridToQuery = true;
    BasePanel parentScreen = Screen.makeWindow(this.getTask().getApplication());
    recProfile.makeScreen(itsLocation, parentScreen, iDocMode, bCloneThisQuery, bReadCurrentRecord, bUseBaseTable, bLinkGridToQuery, null);
    return true;
  }
  return super.doCommand(strCommand, sourceSField, iCommandOptions);
}
/**

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.request.screen

/**
 * Process the command.
 * <br />Step 1 - Process the command if possible and return true if processed.
 * <br />Step 2 - If I can't process, pass to all children (with me as the source).
 * <br />Step 3 - If children didn't process, pass to parent (with me as the source).
 * <br />Note: Never pass to a parent or child that matches the source (to avoid an endless loop).
 * @param strCommand The command to process.
 * @param sourceSField The source screen field (to avoid echos).
 * @param iCommandOptions If this command creates a new screen, create in a new window?
 * @return true if success.
 */
public boolean doCommand(String strCommand, ScreenField sourceSField, int iCommandOptions)
{
  if ("Request Detail".equalsIgnoreCase(strCommand))
  {
    Record recProfile = this.getRecord(Profile.PROFILE_FILE);
    ScreenLocation itsLocation = null;
    int iDocMode = ScreenConstants.DETAIL_MODE;
    boolean bCloneThisQuery = false;
    boolean bReadCurrentRecord = true;
    boolean bUseBaseTable = true;
    boolean bLinkGridToQuery = true;
    BasePanel parentScreen = Screen.makeWindow(this.getTask().getApplication());
    recProfile.makeScreen(itsLocation, parentScreen, iDocMode, bCloneThisQuery, bReadCurrentRecord, bUseBaseTable, bLinkGridToQuery, null);
    return true;
  }
  return super.doCommand(strCommand, sourceSField, iCommandOptions);
}
/**

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.product.screen

recRequestType.free();
Record record = ((ReferenceField)this.getMainRecord().getField(TourEventSchedule.ACTION_MESSAGE_PROCESS_INFO_ID)).getReferenceRecord();
GridScreen screen = (GridScreen)record.makeScreen(null, parentScreen, ScreenConstants.SELECT_MODE, true, true, true, true, properties);

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.product.screen

recRequestType.free();
Record record = ((ReferenceField)this.getMainRecord().getField(TourEventSchedule.ACTION_MESSAGE_PROCESS_INFO_ID)).getReferenceRecord();
GridScreen screen = (GridScreen)record.makeScreen(null, parentScreen, ScreenConstants.SELECT_MODE, true, true, true, true, properties);

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.product.screen

recRequestType.free();
Record record = ((ReferenceField)this.getMainRecord().getField(TourEventSchedule.ACTION_MESSAGE_PROCESS_INFO_ID)).getReferenceRecord();
GridScreen screen = (GridScreen)record.makeScreen(null, parentScreen, ScreenConstants.SELECT_MODE, true, true, true, true, properties);

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.product.screen

recRequestType.free();
Record record = ((ReferenceField)this.getMainRecord().getField(TourEventSchedule.ACTION_MESSAGE_PROCESS_INFO_ID)).getReferenceRecord();
GridScreen screen = (GridScreen)record.makeScreen(null, parentScreen, ScreenConstants.SELECT_MODE, true, true, true, true, properties);

代码示例来源:origin: org.jbundle.base.screen/org.jbundle.base.screen.model

/**
 * Process the "Login" toolbar command.
 * @return true if successful.
 */
public boolean onChangePassword()
{
  Record record = Record.makeRecordFromClassName(UserInfoModel.THICK_CLASS, this);
  this.removeRecord(record);
  BasePanel parentScreen = this.getParentScreen();
  ScreenLocation itsLocation = this.getScreenLocation();
  this.finalizeThisScreen();  // Validate current control, update record, get ready to close screen.
  Map<String,Object> properties = null;
  this.free();
  int docMode = record.commandToDocType(UserInfoModel.PASSWORD_CHANGE_SCREEN);
  record.makeScreen(itsLocation, parentScreen, docMode, properties);
  return true;   // Should always be successful
}
/**

代码示例来源:origin: org.jbundle.base.screen/org.jbundle.base.screen.model

/**
 * Process the "Settings" toolbar command.
 * @return true if successful.
 */
public boolean onChangeSettings()
{
  Record record = Record.makeRecordFromClassName(UserInfoModel.THICK_CLASS, this);
  this.removeRecord(record);
  BasePanel parentScreen = this.getParentScreen();
  ScreenLocation itsLocation = this.getScreenLocation();
  this.finalizeThisScreen();  // Validate current control, update record, get ready to close screen.
  Map<String,Object> properties = null;
  this.free();
  int docMode = record.commandToDocType(UserInfoModel.PREFERENCES_SCREEN);
  record.makeScreen(itsLocation, parentScreen, docMode, properties);
  return true;   // Should always be successful
}
/**

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.booking.entry

Map<String,Object> properties = new Hashtable<String,Object>();
properties.put(DBParams.HEADER_OBJECT_ID, strOptionID);
recBookingAirHeader.makeScreen(itsLocation, parent, iDocMode, bCloneThisQuery, bReadCurrentRecord, bUseBaseTable, bLinkGridToQuery, properties);

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.product.screen

Map<String,Object> properties = new Hashtable<String,Object>();
properties.put(DBParams.HEADER_OBJECT_ID, strOptionID);
recTourHeaderAirHeader.makeScreen(itsLocation, parent, iDocMode, bCloneThisQuery, bReadCurrentRecord, bUseBaseTable, bLinkGridToQuery, properties);

代码示例来源:origin: org.jbundle.base.screen/org.jbundle.base.screen.model

if (applet != null)
  oldCursor = applet.setStatus(Constant.WAIT, applet, null);
screen = (BaseScreen)record.makeScreen(itsLocation, (BasePanel)screenParent, iDocMode, properties);
if (applet != null)
  applet.setStatus(0, applet, oldCursor);

代码示例来源:origin: org.jbundle.base.screen/org.jbundle.base.screen.model

/**
 * Display the "Logon" screen.
 * @return true if successful.
 */
public boolean onLogon()
{
  Record record = Record.makeRecordFromClassName(UserInfoModel.THICK_CLASS, this);
  this.removeRecord(record);
  BasePanel parentScreen = this.getParentScreen();
  ScreenLocation itsLocation = this.getScreenLocation();
  parentScreen.popHistory(1, false);
  parentScreen.pushHistory(this.getScreenURL(), false);  // Update the history to my current state.
  this.finalizeThisScreen();  // Validate current control, update record, get ready to close screen.
  Map<String,Object> properties = null;
  this.free();
  int docMode = record.commandToDocType(UserInfoModel.LOGIN_SCREEN);
  record.makeScreen(itsLocation, parentScreen, docMode, properties);
  return true;
}
/**

代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed

if (applet != null)
  oldCursor = applet.setStatus(Cursor.WAIT_CURSOR, applet, null);
screen = record.makeScreen(itsLocation, screenParent, iDocMode, properties);
if (applet != null)
  applet.setStatus(0, applet, oldCursor);

代码示例来源:origin: org.jbundle.base.screen/org.jbundle.base.screen.model

if (applet != null)
  oldCursor = applet.setStatus(Constant.WAIT, applet, null);
screen = (BaseScreen)record.makeScreen(itsLocation, screenParent, iDocMode, properties);
if (applet != null)
  applet.setStatus(0, applet, oldCursor);

代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed

/**
 * MakeScreen Method.
 */
public BaseScreen makeScreen(ScreenLocation itsLocation, BasePanel parentScreen, int iDocMode, Map<String,Object> properties)
{
  BaseScreen screen = null;
  if ((iDocMode & ScreenConstants.MAINT_MODE) == ScreenConstants.MAINT_MODE)
  {   // This is a little weird... can't directly change this table, must edit AnnivMaster
    Record recAnnivMaster = ((ReferenceField)this.getField(Anniversary.kAnnivMasterID)).getReferenceRecord(this.getRecordOwner());
    recAnnivMaster.setOpenMode(recAnnivMaster.getOpenMode() & ~DBConstants.OPEN_READ_ONLY);
    if ((this.getEditMode() == DBConstants.EDIT_CURRENT)
      || (this.getEditMode() == DBConstants.EDIT_IN_PROGRESS))
        recAnnivMaster = ((ReferenceField)this.getField(Anniversary.kAnnivMasterID)).getReference();
    // Disconnect recAnnivMaster and free this
    ((ReferenceField)this.getField(Anniversary.kAnnivMasterID)).setReferenceRecord(null);
    this.free();
    return recAnnivMaster.makeScreen(itsLocation, parentScreen, iDocMode, properties);
  }
  else
    screen = super.makeScreen(itsLocation, parentScreen, iDocMode, properties);
  return screen;
}
/**

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.booking.db

screen = recBookingDetail.makeScreen(itsLocation, parentScreen, ScreenConstants.MAINT_MODE, properties);

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.booking.db

screen = recBookingDetail.makeScreen(itsLocation, parentScreen, ScreenConstants.MAINT_MODE, properties);

相关文章

微信公众号

最新文章

更多

Record类方法