Esempio n. 1
0
  public void update(Observable o, Object param) {
    if (param == configWindow.getOkButton()) {

      config.setValue("miniFrostAutoRefreshMaxBoards", (String) maxBoards.getSelectedItem());

      config.setValue("miniFrostArchiveAfter", extractNumber(archiveAfter));

      config.setValue("miniFrostDeleteAfter", extractNumber(deleteAfter));

      config.setValue("miniFrostView", (gmailView.isSelected() ? "0" : "1"));

      config.setValue("checkbox_miniFrost_seeTree", Boolean.toString(treeCheckBox.isSelected()));

    } else if (param == configWindow.getCancelButton()) {

      selectValues();
    }
  }
Esempio n. 2
0
 public void hide() {
   configWindow.deleteObserver(this);
   configWindow.removeTab(globalPanel);
 }
Esempio n. 3
0
 public void display() {
   configWindow.addObserver(this);
   configWindow.addTab(
       I18n.getMessage("thaw.plugin.miniFrost"), thaw.gui.IconBox.minReadComments, globalPanel);
 }