/** * Defines the abstract method in <tt>AbstractPaneItem</tt>. * * <p>Applies the options currently set in this window, displaying an error message to the user if * a setting could not be applied. * * @throws IOException if the options could not be applied for some reason */ public boolean applyOptions() throws IOException { Vector model = RESULTS_LIST.getModel(); String[] bannedResults = new String[model.size()]; model.copyInto(bannedResults); FilterSettings.BANNED_WORDS.setValue(bannedResults); RouterService.adjustSpamFilters(); return false; }
public boolean isDirty() { List model = Arrays.asList(FilterSettings.BANNED_WORDS.getValue()); return !model.equals(RESULTS_LIST.getModel()); }