当前位置: 首页>>代码示例>>Java>>正文


Java Settings.setSuspendValidator方法代码示例

本文整理汇总了Java中org.insightech.er.editor.model.settings.Settings.setSuspendValidator方法的典型用法代码示例。如果您正苦于以下问题:Java Settings.setSuspendValidator方法的具体用法?Java Settings.setSuspendValidator怎么用?Java Settings.setSuspendValidator使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.insightech.er.editor.model.settings.Settings的用法示例。


在下文中一共展示了Settings.setSuspendValidator方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: loadSettings

import org.insightech.er.editor.model.settings.Settings; //导入方法依赖的package包/类
private void loadSettings(final Settings settings, final Element parent, final LoadContext context) {
    final Element element = getElement(parent, "settings");

    if (element != null) {
        settings.setDatabase(loadDatabase(element));
        settings.setCapital(this.getBooleanValue(element, "capital"));
        settings.setTableStyle(Format.null2blank(getStringValue(element, "table_style")));

        settings.setNotation(getStringValue(element, "notation"));
        settings.setNotationLevel(this.getIntValue(element, "notation_level"));
        settings.setNotationExpandGroup(this.getBooleanValue(element, "notation_expand_group", false));

        settings.setViewMode(this.getIntValue(element, "view_mode"));
        settings.setOutlineViewMode(this.getIntValue(element, "outline_view_mode"));
        settings.setViewOrderBy(this.getIntValue(element, "view_order_by"));

        settings.setAutoImeChange(this.getBooleanValue(element, "auto_ime_change", false));
        settings.setValidatePhysicalName(this.getBooleanValue(element, "validate_physical_name", true));
        settings.setUseBezierCurve(this.getBooleanValue(element, "use_bezier_curve", false));
        settings.setSuspendValidator(this.getBooleanValue(element, "suspend_validator", false));

        final CategorySetting categorySetting = settings.getCategorySetting();
        loadCategorySetting(categorySetting, element, context);

        // must load categorySetting before exportSetting
        final ExportSetting exportSetting = settings.getExportSetting();
        loadExportSetting(exportSetting, element, context);

        final TranslationSetting translationSetting = settings.getTranslationSetting();
        loadTranslationSetting(translationSetting, element, context);

        final ModelProperties modelProperties = settings.getModelProperties();
        loadModelProperties(modelProperties, element, context);

        loadTableProperties((TableProperties) settings.getTableViewProperties(), element, context);

    }
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:39,代码来源:XMLLoader.java

示例2: loadSettings

import org.insightech.er.editor.model.settings.Settings; //导入方法依赖的package包/类
private void loadSettings(Settings settings, Element parent,
		LoadContext context) {
	Element element = this.getElement(parent, "settings");

	if (element != null) {
		settings.setDatabase(this.loadDatabase(element));
		settings.setCapital(this.getBooleanValue(element, "capital"));
		settings.setTableStyle(Format.null2blank(this.getStringValue(
				element, "table_style")));

		settings.setNotation(this.getStringValue(element, "notation"));
		settings.setNotationLevel(this.getIntValue(element,
				"notation_level"));
		settings.setNotationExpandGroup(this.getBooleanValue(element,
				"notation_expand_group", false));

		settings.setViewMode(this.getIntValue(element, "view_mode"));
		settings.setOutlineViewMode(this.getIntValue(element,
				"outline_view_mode"));
		settings.setViewOrderBy(this.getIntValue(element, "view_order_by"));

		settings.setAutoImeChange(this.getBooleanValue(element,
				"auto_ime_change", false));
		settings.setValidatePhysicalName(this.getBooleanValue(element,
				"validate_physical_name", true));
		settings.setUseBezierCurve(this.getBooleanValue(element,
				"use_bezier_curve", false));
		settings.setSuspendValidator(this.getBooleanValue(element,
				"suspend_validator", false));

		CategorySetting categorySetting = settings.getCategorySetting();
		this.loadCategorySetting(categorySetting, element, context);

		// must load categorySetting before exportSetting
		ExportSetting exportSetting = settings.getExportSetting();
		this.loadExportSetting(exportSetting, element, context);

		TranslationSetting translationSetting = settings
				.getTranslationSetting();
		this.loadTranslationSetting(translationSetting, element, context);

		ModelProperties modelProperties = settings.getModelProperties();
		this.loadModelProperties(modelProperties, element);

		this.loadTableProperties(
				(TableProperties) settings.getTableViewProperties(),
				element, context);

	}
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:51,代码来源:XMLLoader.java


注:本文中的org.insightech.er.editor.model.settings.Settings.setSuspendValidator方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。