/** * 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 { UpdateManagerSettings.SHOW_PROMOTION_OVERLAYS.setValue(CHECK_BOX.isSelected()); return false; }
public boolean isDirty() { return UpdateManagerSettings.SHOW_PROMOTION_OVERLAYS.getValue() != CHECK_BOX.isSelected(); }
/** * Defines the abstract method in <tt>AbstractPaneItem</tt>. * * <p>Sets the options for the fields in this <tt>PaneItem</tt> when the window is shown. */ public void initOptions() { CHECK_BOX.setSelected(UpdateManagerSettings.SHOW_PROMOTION_OVERLAYS.getValue()); }