Java UpdateContainer Example

说明

java updatecontainer示例是从最受好评的开源项目中提取的实现代码,你可以参考下面示例的使用方式。

编程语言: Java

类/类型: UpdateContainer

示例#1
文件: WorksheetUpdateFactory.java项目: fekaputra/Web-Karma

 public static UpdateContainer createRegenerateWorksheetUpdates(
     String worksheetId, SuperSelection sel) {
   UpdateContainer c = new UpdateContainer();
   c.add(new RegenerateWorksheetUpdate(worksheetId));
   createWorksheetHierarchicalAndCleaningResultsUpdates(worksheetId, c, sel);
   return c;
 }

示例#2
文件: WorksheetUpdateFactory.java项目: fekaputra/Web-Karma

 public static UpdateContainer createSemanticTypesAndSVGAlignmentUpdates(
     String worksheetId, Workspace workspace, Alignment alignment) {
   Worksheet worksheet = workspace.getWorksheet(worksheetId);
   UpdateContainer c = new UpdateContainer();
   c.add(new SemanticTypesUpdate(worksheet, worksheetId, alignment));
   c.add(new AlignmentSVGVisualizationUpdate(worksheetId, alignment));
   return c;
 }

示例#3
文件: WorksheetUpdateFactory.java项目: fekaputra/Web-Karma

 public static UpdateContainer createWorksheetHierarchicalUpdates(
     String worksheetId, SuperSelection sel) {
   UpdateContainer c = new UpdateContainer();
   boolean showCleaningCharts = UIConfiguration.Instance().isD3ChartsEnabled();
   if (showCleaningCharts) c.add(new WorksheetCleaningUpdate(worksheetId, false, sel));
   createWorksheetHierarchicalUpdates(worksheetId, c, sel);
   return c;
 }

示例#4
文件: WorksheetUpdateFactory.java项目: fekaputra/Web-Karma

 private static void createWorksheetHierarchicalUpdates(
     String worksheetId, UpdateContainer c, SuperSelection sel) {
   c.add(new WorksheetHeadersUpdate(worksheetId));
   c.add(new WorksheetDataUpdate(worksheetId, sel));
   c.add(new WorksheetSuperSelectionListUpdate(worksheetId));
 }

示例#5
文件: WorksheetUpdateFactory.java项目: fekaputra/Web-Karma

 private static void createWorksheetHierarchicalAndCleaningResultsUpdates(
     String worksheetId, UpdateContainer c, SuperSelection sel) {
   boolean showCleaningCharts = UIConfiguration.Instance().isD3ChartsEnabled();
   if (showCleaningCharts) c.add(new WorksheetCleaningUpdate(worksheetId, true, sel));
   createWorksheetHierarchicalUpdates(worksheetId, c, sel);
 }

展开阅读全文