public class XBRLTableLayout
extends javax.swing.table.AbstractTableModel
| Constructor and Description |
|---|
XBRLTableLayout(XBRLStructuralTable structuralTable)
Creates a new XBRLTableLayout from a structural table.
|
| Modifier and Type | Method and Description |
|---|---|
Cell |
createCell(int newColNumber,
int newRowNumber,
CellHeader columnHeader,
CellHeader rowHeader,
CellHeader zHeader,
java.util.TreeSet<java.lang.String> sortedTagSelectors)
Creates the cell.
|
void |
createCells(org.jdom.Element tableElement)
Generates all table cells from the table model.
|
void |
createHeaders(org.jdom.Element tableElement)
Generates the table headers for the entire table.
|
void |
createModel(org.jdom.Element tableSet)
Generates the table layout model from the table content.
|
Aspect<?> |
getAspectOnCell(CellHeader och)
Returns the aspect instance for the cell received in the parameter.
|
java.util.Iterator<Axis> |
getAxis()
Returns an iterator on axis defined in this table.
|
Header |
getAxisHeaderInfo(Axis axis)
Returns information about the axis collected while creating cells
this contains all aspects in that axis and the set of distict values
for each aspect.
|
Cell |
getCellAt(int rowIndex,
int columnIndex)
Access to the Cell object for specific rowIndex and columnIndex.
|
int |
getColumnCount() |
EffectiveBreakdown |
getEffectiveBreakdown(Axis axis,
OpenAspectValueResolver externalResolver)
Returns (or computes and returns) the effective breakdown of all breakdowns in an axis
from the structural model to the layout model.
|
FactsListClassifier |
getFactsSelector()
Gets the facts selector.
|
XBRLItem |
getItemAt(int rowIndex,
int columnIndex)
Returns the XBRLItem for a specific cell indicated as a row and column
if the cell contains a tuple, the result value is null.
|
int |
getMissingAspects()
At the end of the table layout process, the table
is explored for missing aspects.
|
int |
getRowCount() |
CompanyKey |
getSelectedCompany()
This method is required by the export to excel process but it shouldn't be here
because a table might contains multiple companies in multiple rows.
|
XBRLStructuralTable |
getStructuralTable()
Access to the table structural model.
|
java.util.Collection<CellHeader> |
getTableHeadersRoots(Axis axis)
Access to the cell headers in the leftmost row or column.
|
java.util.Collection<XBRLFact> |
getValueAt(int rowIndex,
int columnIndex) |
int |
getZLevel()
Access to the current value of the z level.
|
CellHeader |
getZLevelCell(int zLevel)
Returns the CellHeader in the Z axis that corresponds with the
indicated zLevel number.
|
int |
getZLevels()
Returns the maximum ZLevel number for this table layout.
|
boolean |
isAxisDefined(Axis axis)
Returns true if the table contains information for the axis
indicated in the axis parameter.
|
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
boolean |
isOpen(Axis axis)
Returns true when on the axis indicated there is at least one open breakdown.
|
void |
layout(XBRLFactsList factsSource,
EditorSource editorSource,
OpenAspectValueResolver externalResolver)
Prepares the table layout.
|
void |
setZlevel(int zIndex)
Sets the current zLevel to the value indicated in the
zIndex parameter.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, removeTableModelListener, setValueAtpublic XBRLTableLayout(XBRLStructuralTable structuralTable) throws XTValidationException, XFException
structuralTable - the structural tableXTValidationException - the XT validation exceptionXFException - the XF exceptionlayout(XBRLFactsList, EditorSource, OpenAspectValueResolver)public int getMissingAspects()
CommonAspectRulepublic void layout(XBRLFactsList factsSource, EditorSource editorSource, OpenAspectValueResolver externalResolver) throws XFException, XTValidationException
factsSource - the source of facts for this layout. this is the same value used to build up this XBRLTableLayout instanceeditorSource - if this is not null, this must be an instance of the EditorSource interface that might provide extra values to open dimensionsexternalResolver - this this is not null, this class will be used to constrain the values of the selected dimensions in the Z axisXFException - the XF exceptionXTValidationException - the XT validation exceptionpublic XBRLStructuralTable getStructuralTable()
public EffectiveBreakdown getEffectiveBreakdown(Axis axis, OpenAspectValueResolver externalResolver)
axis - the axisexternalResolver - the external resolverpublic java.util.Iterator<Axis> getAxis()
public boolean isAxisDefined(Axis axis)
axis - the axispublic boolean isOpen(Axis axis)
axis - the axispublic Header getAxisHeaderInfo(Axis axis)
axis - the axispublic java.util.Collection<CellHeader> getTableHeadersRoots(Axis axis)
axis - the axispublic void createModel(org.jdom.Element tableSet)
throws XTValidationException
tableSet - this is a jdom Element that must be a tableSetXTValidationException - the XT validation exceptionpublic void createHeaders(org.jdom.Element tableElement)
throws XTValidationException
tableElement - the table elementXTValidationException - the XT validation exceptionpublic void createCells(org.jdom.Element tableElement)
throws XTValidationException
tableElement - the table elementXTValidationException - the XT validation exceptionpublic Cell createCell(int newColNumber, int newRowNumber, CellHeader columnHeader, CellHeader rowHeader, CellHeader zHeader, java.util.TreeSet<java.lang.String> sortedTagSelectors) throws XTValidationException
newColNumber - the new col numbernewRowNumber - the new row numbercolumnHeader - the column headerrowHeader - the row headerzHeader - the z headersortedTagSelectors - the sorted tag selectorsXTValidationException - the XT validation exceptionpublic Aspect<?> getAspectOnCell(CellHeader och)
och - the ochpublic FactsListClassifier getFactsSelector()
public int getZLevels()
getZLevel(),
setZlevel(int)public CellHeader getZLevelCell(int zLevel)
zLevel - the z levelpublic int getZLevel()
getZLevels(),
setZlevel(int)public int getRowCount()
public int getColumnCount()
public boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelpublic void setZlevel(int zIndex)
zIndex - the new zlevelpublic Cell getCellAt(int rowIndex, int columnIndex)
rowIndex - the row indexcolumnIndex - the column indexpublic java.util.Collection<XBRLFact> getValueAt(int rowIndex, int columnIndex)
public XBRLItem getItemAt(int rowIndex, int columnIndex)
rowIndex - the row indexcolumnIndex - the column indexpublic CompanyKey getSelectedCompany()