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


Java ObjectModel类代码示例

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


ObjectModel类属于org.insightech.er.editor.model包,在下文中一共展示了ObjectModel类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: generate

import org.insightech.er.editor.model.ObjectModel; //导入依赖的package包/类
@Override
public void generate(final ProgressMonitor monitor, final HSSFWorkbook workbook, final int sheetNo, final boolean useLogicalNameAsSheetName, final Map<String, Integer> sheetNameMap, final Map<String, ObjectModel> sheetObjectMap, final ERDiagram diagram, final Map<String, LoopDefinition> loopDefinitionMap) throws InterruptedException {

    for (final Trigger trigger : diagram.getDiagramContents().getTriggerSet()) {
        final String name = trigger.getName();
        final HSSFSheet newSheet = createNewSheet(workbook, sheetNo, name, sheetNameMap);

        final String sheetName = workbook.getSheetName(workbook.getSheetIndex(newSheet));
        monitor.subTaskWithCounter("[Trigger] " + sheetName);

        sheetObjectMap.put(sheetName, trigger);

        setTriggerData(workbook, newSheet, trigger);
        monitor.worked(1);
    }
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:17,代码来源:TriggerSheetGenerator.java

示例2: generate

import org.insightech.er.editor.model.ObjectModel; //导入依赖的package包/类
@Override
public void generate(final ProgressMonitor monitor, final HSSFWorkbook workbook, final int sheetNo, final boolean useLogicalNameAsSheetName, final Map<String, Integer> sheetNameMap, final Map<String, ObjectModel> sheetObjectMap, final ERDiagram diagram, final Map<String, LoopDefinition> loopDefinitionMap) throws InterruptedException {

    for (final Sequence sequence : diagram.getDiagramContents().getSequenceSet()) {
        final String name = sequence.getName();

        final HSSFSheet newSheet = createNewSheet(workbook, sheetNo, name, sheetNameMap);

        final String sheetName = workbook.getSheetName(workbook.getSheetIndex(newSheet));
        monitor.subTaskWithCounter("[Sequence] " + sheetName);

        sheetObjectMap.put(sheetName, sequence);

        setSequenceData(workbook, newSheet, sequence, diagram);
        monitor.worked(1);
    }
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:18,代码来源:SequenceSheetGenerator.java

示例3: generate

import org.insightech.er.editor.model.ObjectModel; //导入依赖的package包/类
@Override
public void generate(final ProgressMonitor monitor, final HSSFWorkbook workbook, final int sheetNo, final boolean useLogicalNameAsSheetName, final Map<String, Integer> sheetNameMap, final Map<String, ObjectModel> sheetObjectMap, final ERDiagram diagram, final Map<String, LoopDefinition> loopDefinitionMap) throws InterruptedException {
    clear();

    for (final ERTable table : diagram.getDiagramContents().getContents().getTableSet()) {
        if (diagram.getCurrentCategory() != null && !diagram.getCurrentCategory().contains(table)) {
            continue;
        }

        for (final Index index : table.getIndexes()) {
            final String name = index.getName();

            final HSSFSheet newSheet = createNewSheet(workbook, sheetNo, name, sheetNameMap);

            final String sheetName = workbook.getSheetName(workbook.getSheetIndex(newSheet));
            monitor.subTaskWithCounter("[Index] " + sheetName);

            sheetObjectMap.put(sheetName, index);

            setIndexData(workbook, newSheet, index);
            monitor.worked(1);
        }
    }
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:25,代码来源:IndexSheetGenerator.java

示例4: generate

import org.insightech.er.editor.model.ObjectModel; //导入依赖的package包/类
@Override
public void generate(ProgressMonitor monitor, HSSFWorkbook workbook,
		int sheetNo, boolean useLogicalNameAsSheetName,
		Map<String, Integer> sheetNameMap,
		Map<String, ObjectModel> sheetObjectMap, ERDiagram diagram,
		Map<String, LoopDefinition> loopDefinitionMap)
		throws InterruptedException {

	for (Trigger trigger : diagram.getDiagramContents().getTriggerSet()) {
		String name = trigger.getName();
		HSSFSheet newSheet = createNewSheet(workbook, sheetNo, name,
				sheetNameMap);

		String sheetName = workbook.getSheetName(workbook
				.getSheetIndex(newSheet));
		monitor.subTaskWithCounter("[Trigger] " + sheetName);

		sheetObjectMap.put(sheetName, trigger);

		this.setTriggerData(workbook, newSheet, trigger);
		monitor.worked(1);
	}
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:24,代码来源:TriggerSheetGenerator.java

示例5: generate

import org.insightech.er.editor.model.ObjectModel; //导入依赖的package包/类
@Override
public void generate(ProgressMonitor monitor, HSSFWorkbook workbook,
		int sheetNo, boolean useLogicalNameAsSheetName,
		Map<String, Integer> sheetNameMap,
		Map<String, ObjectModel> sheetObjectMap, ERDiagram diagram,
		Map<String, LoopDefinition> loopDefinitionMap)
		throws InterruptedException {

	for (Sequence sequence : diagram.getDiagramContents().getSequenceSet()) {
		String name = sequence.getName();

		HSSFSheet newSheet = createNewSheet(workbook, sheetNo, name,
				sheetNameMap);

		String sheetName = workbook.getSheetName(workbook
				.getSheetIndex(newSheet));
		monitor.subTaskWithCounter("[Sequence] " + sheetName);

		sheetObjectMap.put(sheetName, sequence);

		this.setSequenceData(workbook, newSheet, sequence, diagram);
		monitor.worked(1);
	}
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:25,代码来源:SequenceSheetGenerator.java

示例6: generate

import org.insightech.er.editor.model.ObjectModel; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void generate(ProgressMonitor monitor, HSSFWorkbook workbook,
		int sheetNo, boolean useLogicalNameAsSheetName,
		Map<String, Integer> sheetNameMap,
		Map<String, ObjectModel> sheetObjectMap, ERDiagram diagram,
		Map<String, LoopDefinition> loopDefinitionMap)
		throws InterruptedException {

	String sheetName = this.getSheetName();

	HSSFSheet newSheet = createNewSheet(workbook, sheetNo, sheetName,
			sheetNameMap);

	sheetName = workbook.getSheetName(workbook.getSheetIndex(newSheet));
	monitor.subTaskWithCounter(sheetName);

	sheetObjectMap.put(sheetName, new StringObjectModel(sheetName));

	this.setHistoryListData(workbook, newSheet, sheetObjectMap, diagram);
	monitor.worked(1);
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:25,代码来源:HistorySheetGenerator.java

示例7: generate

import org.insightech.er.editor.model.ObjectModel; //导入依赖的package包/类
@Override
public void generate(ProgressMonitor monitor, HSSFWorkbook workbook,
		int sheetNo, boolean useLogicalNameAsSheetName,
		Map<String, Integer> sheetNameMap,
		Map<String, ObjectModel> sheetObjectMap, ERDiagram diagram,
		Map<String, LoopDefinition> loopDefinitionMap)
		throws InterruptedException {
	String name = this.getSheetName();
	HSSFSheet newSheet = createNewSheet(workbook, sheetNo, name,
			sheetNameMap);

	String sheetName = workbook.getSheetName(workbook
			.getSheetIndex(newSheet));

	sheetObjectMap.put(sheetName, new ColumnSet());

	this.setAllColumnsData(monitor, workbook, newSheet, diagram);
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:19,代码来源:ColumnSheetGenerator.java

示例8: generate

import org.insightech.er.editor.model.ObjectModel; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void generate(final ProgressMonitor monitor, final HSSFWorkbook workbook, final int sheetNo, final boolean useLogicalNameAsSheetName, final Map<String, Integer> sheetNameMap, final Map<String, ObjectModel> sheetObjectMap, final ERDiagram diagram, final Map<String, LoopDefinition> loopDefinitionMap) throws InterruptedException {
    clear();

    List<ERTable> nodeSet = null;

    if (diagram.getCurrentCategory() != null) {
        nodeSet = diagram.getCurrentCategory().getTableContents();
    } else {
        nodeSet = diagram.getDiagramContents().getContents().getTableSet().getList();
    }

    for (final ERTable table : nodeSet) {
        String name = null;
        if (useLogicalNameAsSheetName) {
            name = table.getLogicalName();
        } else {
            name = table.getPhysicalName();
        }

        final HSSFSheet newSheet = createNewSheet(workbook, sheetNo, name, sheetNameMap);

        final String sheetName = workbook.getSheetName(workbook.getSheetIndex(newSheet));
        monitor.subTaskWithCounter("[Table] " + sheetName);

        sheetObjectMap.put(sheetName, table);

        setTableData(workbook, newSheet, table);

        monitor.worked(1);
    }
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:36,代码来源:TableSheetGenerator.java

示例9: generate

import org.insightech.er.editor.model.ObjectModel; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void generate(final ProgressMonitor monitor, final HSSFWorkbook workbook, final int sheetNo, final boolean useLogicalNameAsSheetName, final Map<String, Integer> sheetNameMap, final Map<String, ObjectModel> sheetObjectMap, final ERDiagram diagram, final Map<String, LoopDefinition> loopDefinitionMap) throws InterruptedException {

    final HSSFSheet sheet = workbook.getSheetAt(sheetNo);

    setSheetListData(workbook, sheet, sheetObjectMap, diagram);
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:11,代码来源:SheetIndexSheetGenerator.java

示例10: generate

import org.insightech.er.editor.model.ObjectModel; //导入依赖的package包/类
@Override
public void generate(final ProgressMonitor monitor, final HSSFWorkbook workbook, final int sheetNo, final boolean useLogicalNameAsSheetName, final Map<String, Integer> sheetNameMap, final Map<String, ObjectModel> sheetObjectMap, final ERDiagram diagram, final Map<String, LoopDefinition> loopDefinitionMap) throws InterruptedException {
    clear();

    List<View> nodeSet = null;

    if (diagram.getCurrentCategory() != null) {
        nodeSet = diagram.getCurrentCategory().getViewContents();
    } else {
        nodeSet = diagram.getDiagramContents().getContents().getViewSet().getList();
    }

    for (final View view : nodeSet) {
        String name = null;
        if (useLogicalNameAsSheetName) {
            name = view.getLogicalName();
        } else {
            name = view.getPhysicalName();
        }

        final HSSFSheet newSheet = createNewSheet(workbook, sheetNo, name, sheetNameMap);

        final String sheetName = workbook.getSheetName(workbook.getSheetIndex(newSheet));
        monitor.subTaskWithCounter("[View] " + sheetName);

        sheetObjectMap.put(sheetName, view);

        setViewData(workbook, newSheet, view);

        monitor.worked(1);
    }
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:33,代码来源:ViewSheetGenerator.java

示例11: generate

import org.insightech.er.editor.model.ObjectModel; //导入依赖的package包/类
@Override
public void generate(final ProgressMonitor monitor, final HSSFWorkbook workbook, final int sheetNo, final boolean useLogicalNameAsSheetName, final Map<String, Integer> sheetNameMap, final Map<String, ObjectModel> sheetObjectMap, final ERDiagram diagram, final Map<String, LoopDefinition> loopDefinitionMap) throws InterruptedException {
    final String name = getSheetName();
    final HSSFSheet newSheet = createNewSheet(workbook, sheetNo, name, sheetNameMap);

    final String sheetName = workbook.getSheetName(workbook.getSheetIndex(newSheet));

    sheetObjectMap.put(sheetName, new ColumnSet());

    setAllColumnsData(monitor, workbook, newSheet, diagram);
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:12,代码来源:ColumnSheetGenerator.java

示例12: ExportToExcelManager

import org.insightech.er.editor.model.ObjectModel; //导入依赖的package包/类
public ExportToExcelManager(ExportExcelSetting exportExcelSetting)
		throws FileNotFoundException {
	super("dialog.message.export.excel");

	this.exportExcelSetting = exportExcelSetting;

	this.sheetNameMap = new HashMap<String, Integer>();
	this.sheetObjectMap = new LinkedHashMap<String, ObjectModel>();

	this.loopDefinitionMap = new HashMap<String, LoopDefinition>();
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:12,代码来源:ExportToExcelManager.java

示例13: generate

import org.insightech.er.editor.model.ObjectModel; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void generate(ProgressMonitor monitor, HSSFWorkbook workbook,
		int sheetNo, boolean useLogicalNameAsSheetName,
		Map<String, Integer> sheetNameMap,
		Map<String, ObjectModel> sheetObjectMap, ERDiagram diagram,
		Map<String, LoopDefinition> loopDefinitionMap)
		throws InterruptedException {
	this.clear();

	List<ERTable> nodeSet = null;

	if (diagram.getCurrentCategory() != null) {
		nodeSet = diagram.getCurrentCategory().getTableContents();
	} else {
		nodeSet = diagram.getDiagramContents().getContents().getTableSet()
				.getList();
	}

	for (ERTable table : nodeSet) {
		String name = null;
		if (useLogicalNameAsSheetName) {
			name = table.getLogicalName();
		} else {
			name = table.getPhysicalName();
		}

		HSSFSheet newSheet = createNewSheet(workbook, sheetNo, name,
				sheetNameMap);

		String sheetName = workbook.getSheetName(workbook
				.getSheetIndex(newSheet));
		monitor.subTaskWithCounter("[Table] " + sheetName);

		sheetObjectMap.put(sheetName, table);

		this.setTableData(workbook, newSheet, table);

		monitor.worked(1);
	}
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:44,代码来源:TableSheetGenerator.java

示例14: generate

import org.insightech.er.editor.model.ObjectModel; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void generate(ProgressMonitor monitor, HSSFWorkbook workbook,
		int sheetNo, boolean useLogicalNameAsSheetName,
		Map<String, Integer> sheetNameMap,
		Map<String, ObjectModel> sheetObjectMap, ERDiagram diagram,
		Map<String, LoopDefinition> loopDefinitionMap)
		throws InterruptedException {

	HSSFSheet sheet = workbook.getSheetAt(sheetNo);

	this.setSheetListData(workbook, sheet, sheetObjectMap, diagram);
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:16,代码来源:SheetIndexSheetGenerator.java

示例15: generate

import org.insightech.er.editor.model.ObjectModel; //导入依赖的package包/类
@Override
public void generate(ProgressMonitor monitor, HSSFWorkbook workbook,
		int sheetNo, boolean useLogicalNameAsSheetName,
		Map<String, Integer> sheetNameMap,
		Map<String, ObjectModel> sheetObjectMap, ERDiagram diagram,
		Map<String, LoopDefinition> loopDefinitionMap)
		throws InterruptedException {
	this.clear();

	List<View> nodeSet = null;

	if (diagram.getCurrentCategory() != null) {
		nodeSet = diagram.getCurrentCategory().getViewContents();
	} else {
		nodeSet = diagram.getDiagramContents().getContents().getViewSet()
				.getList();
	}

	for (View view : nodeSet) {
		String name = null;
		if (useLogicalNameAsSheetName) {
			name = view.getLogicalName();
		} else {
			name = view.getPhysicalName();
		}

		HSSFSheet newSheet = createNewSheet(workbook, sheetNo, name,
				sheetNameMap);

		String sheetName = workbook.getSheetName(workbook
				.getSheetIndex(newSheet));
		monitor.subTaskWithCounter("[View] " + sheetName);

		sheetObjectMap.put(sheetName, view);

		this.setViewData(workbook, newSheet, view);

		monitor.worked(1);
	}
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:41,代码来源:ViewSheetGenerator.java


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