public String getMenuDescription(RequestProperties reqState, String parentMenuName) {
   PrivateLabel privLabel = reqState.getPrivateLabel();
   I18N i18n = privLabel.getI18N(ReportMenuDriverPerformance.class);
   return super._getMenuDescription(
       reqState,
       i18n.getString("ReportMenuDriverPerformance.menuDesc", "Driver Performance Reports"));
 }
 public String getMenuHelp(RequestProperties reqState, String parentMenuName) {
   PrivateLabel privLabel = reqState.getPrivateLabel();
   I18N i18n = privLabel.getI18N(ReportMenuDriverPerformance.class);
   return super._getMenuHelp(
       reqState,
       i18n.getString(
           "ReportMenuDriverPerformance.menuHelp", "Display various driver performance reports"));
 }
 public String getNavigationTab(RequestProperties reqState) {
   PrivateLabel privLabel = reqState.getPrivateLabel();
   I18N i18n = privLabel.getI18N(ReportMenuDriverPerformance.class);
   return super._getNavigationTab(
       reqState, i18n.getString("ReportMenuDriverPerformance.navTab", "Performance"));
 }
示例#4
0
 /* table description */
 public static String getTableDescription(Locale loc) {
   I18N i18n = I18N.getI18N(GroupList.class, loc);
   return i18n.getString(
       "GroupList.description",
       "This table defines " + "the authorized Groups that can be accessed by a given User.");
 }
示例#5
0
  public enum EntityType implements EnumTools.StringLocale, EnumTools.IntValue {
    TRAILER(
        0,
        "TRAILER",
        I18N.getString(
            EntityManager.class, "EntityManager.EntityType.trailer", "Trailer")), // default
    DRIVER(
        100,
        "DRIVER",
        I18N.getString(EntityManager.class, "EntityManager.EntityType.driver", "Driver")),
    PERSON(
        200,
        "PERSON",
        I18N.getString(EntityManager.class, "EntityManager.EntityType.person", "Person")),
    ANIMAL(
        300,
        "ANIMAL",
        I18N.getString(EntityManager.class, "EntityManager.EntityType.animal", "Animal")),
    CONTAINER(
        400,
        "CONTAINER",
        I18N.getString(EntityManager.class, "EntityManager.EntityType.container", "Container")),
    PACKAGE(
        500,
        "PACKAGE",
        I18N.getString(EntityManager.class, "EntityManager.EntityType.package", "Package")),
    TOOL(600, "TOOL", I18N.getString(EntityManager.class, "EntityManager.EntityType.tool", "Tool")),
    EQUIPMENT(
        700,
        "EQUIPMENT",
        I18N.getString(EntityManager.class, "EntityManager.EntityType.equipment", "Equipment")),
    RFID_00(
        900,
        "RFID_00",
        I18N.getString(EntityManager.class, "EntityManager.EntityType.rfid_0", "RFID Type 0")),
    RFID_01(
        901,
        "RFID_01",
        I18N.getString(EntityManager.class, "EntityManager.EntityType.rfid_1", "RFID Type 1")),
    RFID_02(
        902,
        "RFID_02",
        I18N.getString(EntityManager.class, "EntityManager.EntityType.rfid_2", "RFID Type 2")),
    RFID_03(
        903,
        "RFID_03",
        I18N.getString(EntityManager.class, "EntityManager.EntityType.rfid_3", "RFID Type 3")),
    RFID_04(
        904,
        "RFID_04",
        I18N.getString(EntityManager.class, "EntityManager.EntityType.rfid_4", "RFID Type 4"));
    // ---
    private int vv = 0;
    private String nn = "";
    private I18N.Text aa = null;

    EntityType(int v, String n, I18N.Text a) {
      vv = v;
      nn = n;
      aa = a;
    }

    public String getName() {
      return nn;
    }

    public int getIntValue() {
      return vv;
    }

    public String toString() {
      return aa.toString();
    }

    public String toString(Locale loc) {
      return aa.toString(loc);
    }

    public boolean isTrailer() {
      return this.equals(TRAILER);
    }

    public boolean isDriver() {
      return this.equals(DRIVER);
    }

    public boolean isType(int type) {
      return this.getIntValue() == type;
    }
  }
示例#6
0
 /* table description */
 public static String getTableDescription(Locale loc) {
   I18N i18n = I18N.getI18N(StatusCode.class, loc);
   return i18n.getString(
       "StatusCode.description",
       "This table defines " + "Device specific StatusCode descriptions.");
 }
示例#7
0
 /* table description */
 public static String getTableDescription(Locale loc) {
   I18N i18n = I18N.getI18N(AccountString.class, loc);
   return i18n.getString(
       "AccountString.description",
       "This table defines " + "Account specific customized String key/values.");
 }
示例#8
0
 /* table description */
 public static String getTableDescription(Locale loc) {
   I18N i18n = I18N.getI18N(RoleAcl.class, loc);
   return i18n.getString(
       "RoleAcl.description", "This table defines " + "Role specific Access Control permissions.");
 }