本文整理汇总了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);
}
}
示例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);
}
}
示例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);
}
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
示例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);
}
示例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);
}
}
示例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);
}
示例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);
}
}
示例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);
}
示例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>();
}
示例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);
}
}
示例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);
}
示例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);
}
}