Beispiel #1
0
  protected void getTTDisplayProperties(List<String[]> dp) {
    addDP(dp, "devices.xcode.working_dir", getWorkingDirectory(false).getAbsolutePath());

    addDP(dp, "devices.xcode.prof_def", getDefaultTranscodeProfile());

    addDP(dp, "devices.xcode.profs", getTranscodeProfiles());

    int tran_req = getTranscodeRequirement();

    String tran_req_str;

    if (tran_req == TranscodeTarget.TRANSCODE_ALWAYS) {

      tran_req_str = "device.xcode.always";

    } else if (tran_req == TranscodeTarget.TRANSCODE_NEVER) {

      tran_req_str = "device.xcode.never";
    } else {

      tran_req_str = "device.xcode.whenreq";
    }

    addDP(dp, "device.xcode", MessageText.getString(tran_req_str));
  }
Beispiel #2
0
  protected void addDP(List<String[]> dp, String name, TranscodeProfile[] values) {
    String[] names = new String[values.length];

    for (int i = 0; i < values.length; i++) {

      names[i] = values[i].getName();
    }

    addDP(dp, name, names);
  }
Beispiel #3
0
  protected void getDisplayProperties(List<String[]> dp) {
    if (!name.equals(classification)) {

      addDP(dp, "TableColumn.header.name", name);
    }

    addDP(dp, "TableColumn.header.class", getClassification().toLowerCase());

    addDP(dp, "!UID!", getID());

    if (!manual) {

      addDP(dp, "azbuddy.ui.table.online", online);

      addDP(
          dp,
          "device.lastseen",
          last_seen == 0 ? "" : new SimpleDateFormat().format(new Date(last_seen)));
    }
  }
Beispiel #4
0
 protected void addDP(List<String[]> dp, String name, TranscodeProfile value) {
   addDP(dp, name, value == null ? "" : value.getName());
 }