Пример #1
0
 /**
  * Add help for an item using the item's Label and text from resource info.
  *
  * @param item
  * @param aKey
  * @return final
  * @author Irv Bunton
  */
 public final int appendItemHelpRsc(Item item, String aKey) {
   StringItem si = new StringItem(item.getLabel(), ResourceProviderME.get(aKey));
   // #ifdef DMIDP20
   si.setLayout(Item.LAYOUT_BOTTOM);
   // #endif
   return super.append(si);
 }
Пример #2
0
 /**
  * Add help for a command using the command's Label and text from resource info.
  *
  * @param cmd
  * @param aKey
  * @return final
  * @author Irv Bunton
  */
 public final int appendCmdHelpRsc(Command cmd, String aKey) {
   StringItem si = new StringItem(cmd.getLabel() + ":", ResourceProviderME.get(aKey));
   // #ifdef DMIDP20
   si.setLayout(Item.LAYOUT_BOTTOM);
   // #endif
   return super.append(si);
 }