org.weasis.core.api.service.WProperties.setProperty()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(136)

本文整理了Java中org.weasis.core.api.service.WProperties.setProperty()方法的一些代码示例,展示了WProperties.setProperty()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WProperties.setProperty()方法的具体详情如下:
包路径:org.weasis.core.api.service.WProperties
类名称:WProperties
方法名:setProperty

WProperties.setProperty介绍

暂无

代码示例

代码示例来源:origin: nroduit/Weasis

public static void setProperty(WProperties properties, String key, Preferences prefNode, String defaultValue) {
    if (properties != null && key != null) {
      String val = prefNode.get(key, null);
      if (val == null) {
        val = properties.getProperty(key, defaultValue);
      }
      properties.setProperty(key, val);
    }
  }
}

代码示例来源:origin: nroduit/Weasis

BundleTools.SYSTEM_PREFERENCES.setProperty(AuditLog.LOG_STACKTRACE_LIMIT,
  StringUtil.hasText(limit) ? limit : "-1"); //$NON-NLS-1$
BundleTools.SYSTEM_PREFERENCES.setProperty(AuditLog.LOG_LEVEL, level.toString());
BundleTools.SYSTEM_PREFERENCES.setProperty(AuditLog.LOG_FILE_ACTIVATION,
  String.valueOf(chckbxFileLog.isSelected()));
String logFile =
  chckbxFileLog.isSelected() ? AppProperties.WEASIS_PATH + File.separator + "log" + File.separator //$NON-NLS-1$
    + "default.log" : ""; //$NON-NLS-1$ //$NON-NLS-2$
BundleTools.SYSTEM_PREFERENCES.setProperty(AuditLog.LOG_FILE, logFile);
String fileNb = null;
String fileSize = null;
  fileNb = spinner.getValue().toString();
  fileSize = spinner1.getValue().toString() + "MB"; //$NON-NLS-1$
  BundleTools.SYSTEM_PREFERENCES.setProperty(AuditLog.LOG_FILE_NUMBER, fileNb);
  BundleTools.SYSTEM_PREFERENCES.setProperty(AuditLog.LOG_FILE_SIZE, fileSize);

代码示例来源:origin: nroduit/Weasis

BundleTools.LOCAL_PERSISTENCE.setProperty("last.open.dicom.dir", selectedFiles[0].getParent()); //$NON-NLS-1$

代码示例来源:origin: nroduit/Weasis

Messages.getString("OpenImageAction.open_img"), JOptionPane.WARNING_MESSAGE); //$NON-NLS-1$
BundleTools.LOCAL_PERSISTENCE.setProperty("last.open.image.dir", selectedFiles[0].getParent()); //$NON-NLS-1$

代码示例来源:origin: nroduit/Weasis

WProperties.setProperty(options, WindowOp.P_APPLY_WL_COLOR, prefNode, Boolean.TRUE.toString());
WProperties.setProperty(options, WindowOp.P_INVERSE_LEVEL, prefNode, Boolean.TRUE.toString());
WProperties.setProperty(options, PRManager.PR_APPLY, prefNode, Boolean.FALSE.toString());

相关文章