/**
   * 对控件设置值
   *
   * @param blnIsApplyDefault ;
   */
  private void setInitValues(boolean blnIsApplyDefault) {
    int intAutoUpdate;
    int intLanguage;
    String strSystemUser;
    String strEditorFontName;
    int intEdutorFontSize;
    String strMatchViewFontName;
    int intMatchViewFontSize;
    if (blnIsApplyDefault) {
      intAutoUpdate = preferenceStore.getDefaultInt(IPreferenceConstants.SYSTEM_AUTO_UPDATE);
      intLanguage = preferenceStore.getDefaultInt(IPreferenceConstants.SYSTEM_LANGUAGE);
      strSystemUser = preferenceStore.getDefaultString(IPreferenceConstants.SYSTEM_USER);
      strEditorFontName =
          preferenceStore.getDefaultString(IPreferenceConstants.XLIFF_EDITOR_FONT_NAME);
      intEdutorFontSize =
          preferenceStore.getDefaultInt(IPreferenceConstants.XLIFF_EDITOR_FONT_SIZE);
      strMatchViewFontName =
          preferenceStore.getDefaultString(IPreferenceConstants.MATCH_VIEW_FONT_NAME);
      intMatchViewFontSize =
          preferenceStore.getDefaultInt(IPreferenceConstants.MATCH_VIEW_FONT_SIZE);
    } else {
      intAutoUpdate = preferenceStore.getInt(IPreferenceConstants.SYSTEM_AUTO_UPDATE);
      intLanguage = preferenceStore.getInt(IPreferenceConstants.SYSTEM_LANGUAGE);
      initLang = intLanguage;
      strSystemUser = preferenceStore.getString(IPreferenceConstants.SYSTEM_USER);
      strEditorFontName = preferenceStore.getString(IPreferenceConstants.XLIFF_EDITOR_FONT_NAME);
      intEdutorFontSize = preferenceStore.getInt(IPreferenceConstants.XLIFF_EDITOR_FONT_SIZE);
      strMatchViewFontName = preferenceStore.getString(IPreferenceConstants.MATCH_VIEW_FONT_NAME);
      intMatchViewFontSize = preferenceStore.getInt(IPreferenceConstants.MATCH_VIEW_FONT_SIZE);
    }
    if (intAutoUpdate == IPreferenceConstants.SYSTEM_CHECK_UPDATE_WITH_STARTUP) {
      btnCheckUpdateWithStartup.setSelection(true);
      btnCheckUpdateWithMonthly.setSelection(false);
      selectDateSpi.setEnabled(false);
      selectDateSpi.setSelection(1);
      btnCheckUpdateWithWeekly.setSelection(false);
      cmbSelectWeek.setEnabled(false);
      cmbSelectWeek.select(0);
      btnCheckUpdateWithNever.setSelection(false);
    } else if (intAutoUpdate == IPreferenceConstants.SYSTEM_CHECK_UPDATE_WITH_MONTHLY) {
      btnCheckUpdateWithStartup.setSelection(false);
      btnCheckUpdateWithMonthly.setSelection(true);
      btnCheckUpdateWithWeekly.setSelection(false);
      cmbSelectWeek.setEnabled(false);
      cmbSelectWeek.select(0);
      btnCheckUpdateWithNever.setSelection(false);
      int selDate;
      if (blnIsApplyDefault) {
        selDate =
            preferenceStore.getDefaultInt(
                IPreferenceConstants.SYSTEM_CHECK_UPDATE_WITH_MONTHLY_DATE);
      } else {
        selDate =
            preferenceStore.getInt(IPreferenceConstants.SYSTEM_CHECK_UPDATE_WITH_MONTHLY_DATE);
      }
      selectDateSpi.setEnabled(true);
      selectDateSpi.setSelection(selDate);
    } else if (intAutoUpdate == IPreferenceConstants.SYSTEM_CHECK_UPDATE_WITH_WEEKLY) {
      btnCheckUpdateWithStartup.setSelection(false);
      btnCheckUpdateWithMonthly.setSelection(false);
      selectDateSpi.setEnabled(false);
      selectDateSpi.setSelection(1);
      btnCheckUpdateWithWeekly.setSelection(true);
      btnCheckUpdateWithNever.setSelection(false);
      int selWeek;
      if (blnIsApplyDefault) {
        selWeek =
            preferenceStore.getDefaultInt(
                IPreferenceConstants.SYSTEM_CHECK_UPDATE_WITH_WEEKLY_DATE);
      } else {
        selWeek = preferenceStore.getInt(IPreferenceConstants.SYSTEM_CHECK_UPDATE_WITH_WEEKLY_DATE);
      }
      cmbSelectWeek.setEnabled(true);
      // ArrayList<String> list = new ArrayList<String>(Arrays.asList(arrWeek));
      cmbSelectWeek.select(selWeek - 1);
    } else if (intAutoUpdate == IPreferenceConstants.SYSTEM_CHECK_UPDATE_WITH_NEVER) {
      btnCheckUpdateWithStartup.setSelection(false);
      btnCheckUpdateWithMonthly.setSelection(false);
      selectDateSpi.setEnabled(false);
      btnCheckUpdateWithWeekly.setSelection(false);
      cmbSelectWeek.setEnabled(false);
      cmbSelectWeek.select(0);
      btnCheckUpdateWithNever.setSelection(true);
    }

    if (intLanguage == IPreferenceConstants.SYSTEM_LANGUAGE_WITH_EN) {
      btnLanguageWithEN.setSelection(true);
      btnLanguageWithZHCN.setSelection(false);
    } else if (intLanguage == IPreferenceConstants.SYSTEM_LANGUAGE_WITH_ZH_CN) {
      btnLanguageWithEN.setSelection(false);
      btnLanguageWithZHCN.setSelection(true);
    }
    txtSystemUser.setText(strSystemUser);
    editorFontSetting.initFont(strEditorFontName, intEdutorFontSize);
    matchViewFontSetting.initFont(strMatchViewFontName, intMatchViewFontSize);
  }