Beispiel #1
0
  /** Titoli della tabella di sintesi */
  private ArrayList<String> getCaption() {
    ArrayList<String> titoli = new ArrayList<String>();
    String statistiche = "Statistiche";
    Date oldDate = Pref.getDate(CostBio.STAT_DATA_ULTIMA_SINTESI, LibTime.adesso());
    String vecchiaData = LibTime.getGioMeseAnnoLungo(oldDate);
    String nuovaData = LibTime.getGioMeseAnnoLungo(new Date());
    String differenze = "&nbsp;&nbsp;&nbsp;&nbsp;Δ";

    // valore per le preferenze
    mappaSintesi.put(CostBio.STAT_DATA_ULTIMA_SINTESI, new Date());

    statistiche = regolaSpazi(statistiche);
    vecchiaData = regolaSpazi(vecchiaData);
    nuovaData = regolaSpazi(nuovaData);
    differenze = regolaSpazi(differenze);

    titoli.add(statistiche);
    titoli.add(vecchiaData);
    titoli.add(nuovaData);
    titoli.add(differenze);

    return titoli;
  } // fine del metodo
Beispiel #2
0
 /** Retrieves this preference's value as Date */
 public Date getDate() {
   return Pref.getDate(code, null, defaultValue);
 }