本文整理了Java中org.weasis.core.api.service.WProperties.resetProperty()
方法的一些代码示例,展示了WProperties.resetProperty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WProperties.resetProperty()
方法的具体详情如下:
包路径:org.weasis.core.api.service.WProperties
类名称:WProperties
方法名:resetProperty
暂无
代码示例来源:origin: nroduit/Weasis
@Override
public void resetoDefaultValues() {
BundleTools.SYSTEM_PREFERENCES.resetProperty(DOWNLOAD_IMMEDIATELY, Boolean.TRUE.toString());
downloadImmediatelyCheckbox
.setSelected(BundleTools.SYSTEM_PREFERENCES.getBooleanProperty(DOWNLOAD_IMMEDIATELY, true));
}
代码示例来源:origin: nroduit/Weasis
@Override
public void resetoDefaultValues() {
BundleTools.SYSTEM_PREFERENCES.resetProperty(BundleTools.CONFIRM_CLOSE, "false");//$NON-NLS-1$
// Reset properties used by OSGI service (Sling Logger)
BundleTools.SYSTEM_PREFERENCES.resetServiceProperty(AuditLog.LOG_STACKTRACE_LIMIT, "3"); //$NON-NLS-1$
BundleTools.SYSTEM_PREFERENCES.resetServiceProperty(AuditLog.LOG_LEVEL, "INFO"); //$NON-NLS-1$
BundleTools.SYSTEM_PREFERENCES.resetServiceProperty(AuditLog.LOG_FILE, ""); //$NON-NLS-1$
BundleTools.SYSTEM_PREFERENCES.resetServiceProperty(AuditLog.LOG_FILE_NUMBER, "5"); //$NON-NLS-1$
BundleTools.SYSTEM_PREFERENCES.resetServiceProperty(AuditLog.LOG_FILE_SIZE, "10MB"); //$NON-NLS-1$
BundleTools.SYSTEM_PREFERENCES.resetProperty("locale.lang.code", "en"); //$NON-NLS-1$ //$NON-NLS-2$
// Reset cache of locale format
LocalUtil.setLocaleFormat(null);
// Reset format to the config.properties value or null (default system value)
BundleTools.SYSTEM_PREFERENCES.resetProperty("locale.format.code", null);//$NON-NLS-1$
BundleTools.SYSTEM_PREFERENCES.resetProperty("weasis.look", null); //$NON-NLS-1$
}
代码示例来源:origin: nroduit/Weasis
@Override
public void resetoDefaultValues() {
sliderWindow.setValue(realValueToslider(1.25));
sliderLevel.setValue(realValueToslider(1.25));
sliderScroll.setValue(realValueToslider(0.1));
sliderRotation.setValue(realValueToslider(0.25));
sliderZoom.setValue(realValueToslider(0.1));
comboBoxInterpolation.setSelectedIndex(1);
// Get the default server configuration and if no value take the default value in parameter.
EventManager eventManager = EventManager.getInstance();
eventManager.getOptions().resetProperty(WindowOp.P_APPLY_WL_COLOR, Boolean.TRUE.toString());
checkBoxWLcolor.setSelected(eventManager.getOptions().getBooleanProperty(WindowOp.P_APPLY_WL_COLOR, true));
checkBoxLevelInverse.setSelected(eventManager.getOptions().getBooleanProperty(WindowOp.P_INVERSE_LEVEL, true));
checkBoxApplyPR.setSelected(eventManager.getOptions().getBooleanProperty(PRManager.PR_APPLY, false));
}
内容来源于网络,如有侵权,请联系作者删除!