Class GenericTableTool

java.lang.Object
java.util.Observable
com.nomagic.magicreport.engine.Tool
com.nomagic.reportwizard.tools.GenericTableTool
All Implemented Interfaces:
ITool, IVariable, Serializable, Cloneable

@OpenApiAll public class GenericTableTool extends Tool
A custom tool for accessing Generic Table data to get row elements, column name and cell value.
Since:
Jan 25, 2012
See Also:
  • Constructor Details

    • GenericTableTool

      public GenericTableTool()
  • Method Details

    • getTable

      @CheckForNull public Table getTable(Diagram diagram)
      Get generic table instance from diagram element.
      Parameters:
      diagram - diagram object.
      Returns:
      generic table instance
    • getTable

      @CheckForNull public Table getTable(String diagramName)
      Get generic table instance from diagram name.
      Parameters:
      diagramName - diagram name
      Returns:
      generic table of instance
    • closeTables

      public ITool.Void closeTables()
      Close all diagram tables
    • closeTable

      public ITool.Void closeTable(Diagram diagram)
      Close specific diagram table.
      Parameters:
      diagram - diagram object.
    • closeTable

      public ITool.Void closeTable(String diagramName)
      Close specific diagram name.
      Parameters:
      diagramName - diagram name
    • getDiagramTable

      public com.nomagic.diagramtable.Table getDiagramTable(Diagram diagram)
    • clearTablesCache

      @Deprecated public void clearTablesCache()
      Deprecated.
      Use this method after use generic table.
    • clearTablesCache

      public void clearTablesCache(Project project)
      Use this method after use generic table.
      Parameters:
      project - project which is used to get cache.
    • getRows

      public List<com.nomagic.diagramtable.rows.DiagramTableRow> getRows(com.nomagic.diagramtable.Table table)
    • getRows

      public List<com.nomagic.diagramtable.rows.DiagramTableRow> getRows(Diagram tableDiagram)
    • getColumnNames

      public List<String> getColumnNames(Diagram tableDiagram, List<String> columnIds)
    • getColumnIds

      public List<String> getColumnIds(Diagram tableDiagram)
    • getColumnById

      @CheckForNull public com.nomagic.magicdraw.properties.ui.jideui.PropertyColumn getColumnById(Diagram tableDiagram, String columnId)
    • getStringCellValue

      public String getStringCellValue(Diagram tableDiagram, com.nomagic.diagramtable.rows.DiagramTableRow row, String columnId)
    • filterDiagramTables

      public Collection<Diagram> filterDiagramTables(Collection<Diagram> elements)
    • hasAnnotation

      public boolean hasAnnotation(Diagram tableDiagram, com.nomagic.diagramtable.rows.DiagramTableRow row, String columnId)
    • getLevel

      public int getLevel(com.nomagic.diagramtable.rows.DiagramTableRow row)
    • getCellValue

      @CheckForNull public Object getCellValue(Diagram tableDiagram, com.nomagic.diagramtable.rows.DiagramTableRow row, String columnId)
    • getCellValue

      @CheckForNull public Object getCellValue(Diagram tableDiagram, Element rowElement, String columnId)