Пример #1
0
  public FormDisplayer() {
    UIHelper.adjustUIDefaults();

    setBaseFont((createLabel("")).getFont()); // $NON-NLS-1$

    Specify.setUpSystemProperties();

    AppPreferences localPrefs = AppPreferences.getLocalPrefs();
    localPrefs.setDirPath(getAppDataDir());

    UIFieldFormatterMgr.setDoingLocal(true);
    DataObjFieldFormatMgr.setDoingLocal(true);
    TypeSearchForQueryFactory.setDoingLocal(true);
  }
Пример #2
0
 /* (non-Javadoc)
  * @see edu.ku.brc.specify.datamodel.DataModelObjBase#toString()
  */
 @Override
 public String toString() {
   String str = DataObjFieldFormatMgr.getInstance().format(this, getDataClass());
   return StringUtils.isNotEmpty(str) ? str : "1";
 }