/** * Loads the abbreviated text component from the given code reference table entry using the entry's code as the * visible (abbreviated) text and the entry's description as the abbreviation's expanded text toolTip. * * @param entry the CRT entry to use. */ public void setTextWithCode(final Object entry) { setText(TABLE.getCode(null, entry)); setToolTip(TABLE.getDescription(null, entry)); }
/** * Loads the abbreviated text component from the given code reference table entry using the entry's description as * the visible (abbreviated) text and the entry's code as the toolTip (expansion). You probably do not want this: * you probably want {@link #setTextWithCode(java.lang.Object)}. * * @param entry the CRT entry to use */ public void setTextWithDesc(final Object entry) { setText(TABLE.getDescription(null, entry)); setToolTip(TABLE.getCode(null, entry)); }
return opt.getCode() == null ? "" : opt.getCode(); } else { String code = APPLICATION_LOOKUP_TABLE.getCode(getLookupTable(), option);
xml.appendAttribute("value", LOOKUP_TABLE.getCode(table, item)); xml.appendOptionalAttribute("isNull", isNull, "true"); xml.appendClose();