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

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

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

Record.getField介绍

[英]Get this field in the record. Same as getFieldInfo, but casts the field to BaseField.
[中]把这个字段记录下来。与getFieldInfo相同,但将字段强制转换为BaseField。

代码示例

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

/**
 * Get menu type.
 * @param recMenu The menu record.
 * @return The menu type.
 */
public String getMenuType(Record recMenu)
{
  return recMenu.getField(Menus.kType).getString();
}
/**

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

/**
 * Get menu icon.
 * @param recMenu The menu record.
 * @return The icon name.
 */
public String getMenuIcon(Record recMenu)
{
  return recMenu.getField(Menus.kIconResource).getString();
}
/**

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

/**
 *  Output this screen using HTML..
 */
public void printHtmlTitle(PrintWriter out, String strTag, String strParams, String strData)
{
  out.print(m_recDetail.getField(Menus.kName).toString());
}
/**

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

/**
 * Get the transaction date.
 * @return The transaction date for this type of transaction.
 */
public BaseField getTrxDate()
{
  return this.getOwner().getField(ApTrx.DEPARTURE_DATE);
}
/**

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

/**
 * Get menu name.
 * @param recMenu The menu record.
 * @return The menu name.
 */
public String getMenuName(Record recMenu)
{
  return recMenu.getField(MenusModel.NAME).getString();
}
/**

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

/**
 *  Output this screen using HTML.
 */
public void printHtmlMenuDesc(PrintWriter out, String strTag, String strParams, String strData)
{
  String strText = m_recDetail.getField(Menus.kComment).toString();
  strText = MenuParser.stripHtmlOverhead(strText);
  out.print(strText);
}
/**

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

/**
 * Set the properties.
 * @param strProperties The properties to set.
 */
public void setProperties(Map<String, Object> properties)
{
  Record recUserRegistration = this.getUserRegistration();
  ((PropertiesField)recUserRegistration.getField(UserRegistrationModel.PROPERTIES)).setProperties(properties);
}
/**

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

/**
 * Set this property.
 * @param strProperty The property key.
 * @param strValue The property value.
 */
public void setProperty(String strName, String strData)
{
  Record recUserRegistration = this.getUserRegistration();
  ((PropertiesField)recUserRegistration.getField(UserRegistration.kProperties)).setProperty(strName, strData);
}
/**

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

/**
 * Set the properties.
 * @param strProperties The properties to set.
 */
public Map<String, Object> getProperties()
{
  Record recUserRegistration = this.getUserRegistration();
  return ((PropertiesField)recUserRegistration.getField(UserRegistration.kProperties)).getProperties();
}
/**

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

/**
 * Add all the screen listeners.
 */
public void addListeners()
{
  super.addListeners();
  this.getMainRecord().getField(Appointment.kCalendarCategoryID).addListener(new InitFieldHandler(this.getRecord(CalendarControl.kCalendarControlFile).getField(CalendarControl.kAppointmentCategoryID)));
}
/**

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

/**
 * Add all the screen listeners.
 */
public void addListeners()
{
  super.addListeners();
  this.getMainRecord().getField(AnnivMaster.kCalendarCategoryID).addListener(new InitFieldHandler(this.getRecord(CalendarControl.kCalendarControlFile).getField(CalendarControl.kAnniversaryCategoryID)));
}

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

/**
 * Add button(s) to the toolbar.
 */
public void addToolbarButtons(ToolScreen toolScreen)
{
  toolScreen.getScreenRecord().getField(UserScreenRecord.kNameSort).setupDefaultView(toolScreen.getNextLocation(ScreenConstants.RIGHT_WITH_DESC, ScreenConstants.SET_ANCHOR), toolScreen, ScreenConstants.DEFAULT_DISPLAY);
  toolScreen.getScreenRecord().getField(UserScreenRecord.kUserGroupID).setupDefaultView(toolScreen.getNextLocation(ScreenConstants.RIGHT_WITH_DESC, ScreenConstants.SET_ANCHOR), toolScreen, ScreenConstants.DEFAULT_DISPLAY);
}
/**

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

/**
 * SetupSFields Method.
 */
public void setupSFields()
{
  this.getRecord(MessageProcessInfo.kMessageProcessInfoFile).getField(MessageProcessInfo.kCode).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY);
  this.getRecord(MessageProcessInfo.kMessageProcessInfoFile).getField(MessageProcessInfo.kDescription).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY);
  this.getRecord(MessageProcessInfo.kMessageProcessInfoFile).getField(MessageProcessInfo.kQueueNameID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY);
  this.getRecord(MessageProcessInfo.kMessageProcessInfoFile).getField(MessageProcessInfo.kProcessorClass).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY);
}

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

/**
 * Sync the contact type record to the main value.
 */
public void syncContactTypeToMain()
{
  ReferenceField fldContactType = (ReferenceField)this.getMainRecord().getField(MessageDetail.kContactTypeID);
  String strContactTypeParam = fldContactType.getFieldName();
  this.syncRecordToMainField(fldContactType, null, strContactTypeParam);
}
/**

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

/**
 * SetupSFields Method.
 */
public void setupSFields()
{
  this.getRecord(MessageLog.kMessageLogFile).getField(MessageLog.kMessageStatusID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY);
  this.getRecord(MessageLog.kMessageLogFile).getField(MessageLog.kMessageTime).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY);
  this.getRecord(MessageLog.kMessageLogFile).getField(MessageLog.kDescription).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY);
  this.getRecord(MessageLog.kMessageLogFile).getField(MessageLog.kMessageProcessInfoID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY);
  this.getRecord(MessageLog.kMessageLogFile).getField(MessageLog.kMessageTransportID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY);
}

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

/**
 * Set up all the screen fields.
 */
public void setupSFields()
{
  this.getRecord(UserInfo.kUserInfoFile).getField(UserInfo.kUserName).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY);
}

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

/**
 * Override this to open the other files in the query.
 */
public void openOtherRecords()
{
  super.openOtherRecords();
  Record recContactType = ((ReferenceField)this.getMainRecord().getField(MessageDetail.kContactTypeID)).getReferenceRecord(this);
}
/**

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

/**
 * Get the command string to restore screen.
 */
public String getScreenURL()
{
  String strURL = super.getScreenURL();
  ReferenceField fldContactType = (ReferenceField)this.getMainRecord().getField(MessageDetail.kContactTypeID);
  strURL = Utility.addFieldParam(strURL, fldContactType);
  return strURL;
}
/**

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

/**
 * Code to display a Menu.
 */
public void preSetupGrid(String strMenu)
{
  if (strMenu == null)    // Always
    strMenu = m_recDetail.getField(Menus.kID).toString();
  m_recDetail.setKeyArea(Menus.kParentFolderIDKey);
  m_recDetail.addListener(new StringSubFileFilter(strMenu, Menus.kParentFolderID, null, -1, null, -1));
}
/**

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

/**
 * Set the field that owns this listener.
 * @owner The field that this listener is being added to (if null, this listener is being removed).
 */
public void setOwner(ListenerOwner owner)
{
  super.setOwner(owner);
  if (this.getOwner() != null)
    this.syncBehaviorToRecord(this.getOwner().getRecord().getField(m_iMainFilesFieldSeq));  // Init now
}
/**

相关文章

微信公众号

最新文章

更多

Record类方法