示例#1
0
  /**
   * Save values from the dialog to the config file
   *
   * @param config
   */
  public void saveValues() {
    // get values

    boolean checkVersion = checkCheckUpdates.isSelected();
    int updateShows = this.getSelectedButton(updateShowsGroup);
    int syncShows = this.getSelectedButton(syncShowsGroup);

    TedConfig.getInstance().setCheckVersion(checkVersion);
    TedConfig.getInstance().setAutoUpdateFeedList(updateShows);
    TedConfig.getInstance().setAutoAdjustFeeds(syncShows);
  }
示例#2
0
 /** Set the values of the current config in the fields */
 public void setValues() {
   // set values
   this.setSelectedButton(updateShowsGroup, TedConfig.getInstance().getAutoUpdateFeedList());
   this.setSelectedButton(syncShowsGroup, TedConfig.getInstance().getAutoAdjustFeeds());
   this.checkCheckUpdates.setSelected(TedConfig.getInstance().isCheckVersion());
 }