Package com.nomagic.reportwizard.tools
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
A custom tool for accessing Generic Table data to get row elements, column name and cell value.
- Since:
- Jan 25, 2012
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.nomagic.magicreport.engine.ITool
ITool.HTMLString, ITool.RetainedString, ITool.Void -
Field Summary
Fields inherited from class com.nomagic.magicreport.engine.Tool
context, properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.voidclearTablesCache(Project project) Use this method after use generic table.closeTable(Diagram diagram) Close specific diagram table.closeTable(String diagramName) Close specific diagram name.Close all diagram tablesfilterDiagramTables(Collection<Diagram> elements) getCellValue(Diagram tableDiagram, com.nomagic.diagramtable.rows.DiagramTableRow row, String columnId) getCellValue(Diagram tableDiagram, Element rowElement, String columnId) com.nomagic.magicdraw.properties.ui.jideui.PropertyColumngetColumnById(Diagram tableDiagram, String columnId) getColumnIds(Diagram tableDiagram) getColumnNames(Diagram tableDiagram, List<String> columnIds) com.nomagic.diagramtable.TablegetDiagramTable(Diagram diagram) intgetLevel(com.nomagic.diagramtable.rows.DiagramTableRow row) List<com.nomagic.diagramtable.rows.DiagramTableRow> getRows(com.nomagic.diagramtable.Table table) List<com.nomagic.diagramtable.rows.DiagramTableRow> getStringCellValue(Diagram tableDiagram, com.nomagic.diagramtable.rows.DiagramTableRow row, String columnId) Get generic table instance from diagram element.Get generic table instance from diagram name.booleanhasAnnotation(Diagram tableDiagram, com.nomagic.diagramtable.rows.DiagramTableRow row, String columnId) Methods inherited from class com.nomagic.magicreport.engine.Tool
clone, getContext, getProperties, getProperty, getProperty, notifyObservers, setContext, setPropertiesMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChanged
-
Constructor Details
-
GenericTableTool
public GenericTableTool()
-
-
Method Details
-
getTable
Get generic table instance from diagram element.- Parameters:
diagram- diagram object.- Returns:
- generic table instance
-
getTable
Get generic table instance from diagram name.- Parameters:
diagramName- diagram name- Returns:
- generic table of instance
-
closeTables
Close all diagram tables -
closeTable
Close specific diagram table.- Parameters:
diagram- diagram object.
-
closeTable
Close specific diagram name.- Parameters:
diagramName- diagram name
-
getDiagramTable
-
clearTablesCache
Deprecated.useclearTablesCache(Project)instead.Use this method after use generic table. -
clearTablesCache
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
-
getColumnNames
-
getColumnIds
-
getColumnById
-
getStringCellValue
-
filterDiagramTables
-
hasAnnotation
-
getLevel
public int getLevel(com.nomagic.diagramtable.rows.DiagramTableRow row) -
getCellValue
-
getCellValue
-
clearTablesCache(Project)instead.