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(); } }
public void hide() { configWindow.deleteObserver(this); configWindow.removeTab(globalPanel); }
public void display() { configWindow.addObserver(this); configWindow.addTab( I18n.getMessage("thaw.plugin.miniFrost"), thaw.gui.IconBox.minReadComments, globalPanel); }