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 |
---|---|
void |
clear()
Deprecated.
|
void |
createModel(XMLFragment tableSet)
Generates the table layout model from the table content.
|
Aspect<?> |
getAspectOnCell(java.lang.Object identity,
Cell cell)
Returns the aspect instance for the cell received in the parameter.
|
Aspect<?> |
getAspectOnCell(java.lang.Object identity,
CellHeader och)
Returns the aspect instance for the cell header received in the parameter.
|
java.util.Iterator<Axis> |
getAxis()
Returns an iterator on axis defined in this table.
|
Axis |
getAxisOnCell(java.lang.Object identity,
Cell cell)
Returns the axis for the cell received in the parameter.
|
Cell |
getCellAt(int rowIndex,
int columnIndex)
Access to the Cell object for specific rowIndex and columnIndex.
|
Axis |
getCellAxis(XBRLTableResource node)
Gets the cell axis.
|
int |
getCellColumnIndentation(Cell cell)
Returns the number of top-vertically cell headers.
|
CellHeader |
getCellHeader(XBRLTableResource node)
Find a table resource node in all the axis and returns the CellHeader
where that node is linked with.
|
int |
getCellRowIndentation(Cell cell)
Returns the number of left-horizontally cell headers.
|
int |
getColumnCount()
Gets the column count.
|
java.util.Set<javax.xml.namespace.QName> |
getConcepts()
Returns a set of QNames for all concepts used in table rows
or columns of the ZAxis.
|
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 |
getNumZExcluded()
Internal use only.
|
int |
getNumZMissingCombinationsExcluded()
Internal use only.
|
int |
getRowCount()
Gets the row count.
|
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.
|
int |
getTotZMissingCombinations()
Internal use only.
|
java.util.Collection<XBRLFact> |
getValueAt(int rowIndex,
int columnIndex)
Obtains the value of a table cell.
|
CellHeader |
getXLevelCell(int xLevel)
Gets the x level cell.
|
java.util.Map<java.lang.String,java.lang.Integer> |
getXLevelDefinitionNodeIds()
Gets the x level definition node ids.
|
CellHeader |
getYLevelCell(int yLevel)
Gets the y level cell.
|
java.util.Map<java.lang.String,java.lang.Integer> |
getYLevelDefinitionNodeIds()
Gets the y level definition node ids.
|
int |
getZLevel()
Access to the current value of the zLevel on this table layout.
|
int |
getZLevel(AxisSlice selectedObjects)
Gets the z level.
|
CellHeader |
getZLevelCell(int zLevel)
Returns the CellHeader in the Z axis that corresponds with the
indicated zLevel number.
|
java.util.Map<AxisSlice,java.lang.Integer> |
getZLevelContent()
Gets the axis level content.
|
java.util.Map<java.lang.String,java.lang.Integer> |
getZLevelDefinitionNodeIds()
Gets the z level definition node ids.
|
java.lang.String |
getZLevelLabel(int zCombNumber)
Gets the z level label.
|
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 |
isCellAt(int rowIndex,
int columnIndex)
Checks if there is a cell at the indicated rowIndex and columnIndex and
returns true if the cell exists or false if the cell is out of the table.
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Checks if is cell editable.
|
void |
layout(XBRLFactsList factsSource,
EditorSource editorSource,
OpenAspectValueResolver externalResolver)
Prepares the table layout.
|
void |
setNumZExcluded(int numZExcluded)
Internal use only.
|
void |
setNumZMissingCombinationsExcluded(int numZMissingCombinationsExcluded)
Internal use only.
|
void |
setTotZMissingCombinations(int totZMissingCombinations)
Internal use only.
|
int |
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, setValueAt
public XBRLTableLayout(XBRLStructuralTable structuralTable) throws XTValidationException, XFException
layout(XBRLFactsList, EditorSource, OpenAspectValueResolver)
methodstructuralTable
- the structural tableXTValidationException
- the XT validation exceptionXFException
- the XF exceptionpublic int getMissingAspects()
CommonAspectRule
public 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
- if 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 java.util.Iterator<Axis> getAxis()
public boolean isAxisDefined(Axis axis)
axis
- the axispublic java.util.Collection<CellHeader> getTableHeadersRoots(Axis axis)
axis
- the axispublic void createModel(XMLFragment tableSet) throws XTValidationException
tableSet
- this is a jdom Element that must be a tableSetXTValidationException
- the XT validation exceptionpublic Aspect<?> getAspectOnCell(java.lang.Object identity, Cell cell)
identity
- the aspect identity, this is a code defined for every aspect and a QName for specific dimensionscell
- the cellpublic Aspect<?> getAspectOnCell(java.lang.Object identity, CellHeader och)
identity
- the aspect identity, this is a code defined for every aspect and a QName for specific dimensionsoch
- the ochpublic Axis getAxisOnCell(java.lang.Object identity, Cell cell)
identity
- the aspect identity, this is a code defined for every aspect and a QName for specific dimensionscell
- the cellpublic FactsListClassifier getFactsSelector()
public int getZLevels()
getZLevel()
,
setZlevel(int)
public CellHeader getZLevelCell(int zLevel)
zLevel
- the z levelpublic CellHeader getXLevelCell(int xLevel)
xLevel
- the x levelpublic java.util.Map<java.lang.String,java.lang.Integer> getXLevelDefinitionNodeIds()
public java.util.Map<java.lang.String,java.lang.Integer> getYLevelDefinitionNodeIds()
public java.util.Map<java.lang.String,java.lang.Integer> getZLevelDefinitionNodeIds()
public CellHeader getYLevelCell(int yLevel)
yLevel
- the y levelpublic int getRowCount()
public int getColumnCount()
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
rowIndex
- the row indexcolumnIndex
- the column indexpublic int setZlevel(int zIndex)
zIndex
- the new zlevelpublic int getZLevel()
public Cell getCellAt(int rowIndex, int columnIndex)
rowIndex
- the row indexcolumnIndex
- the column indexpublic boolean isCellAt(int rowIndex, int columnIndex)
rowIndex
- the row indexcolumnIndex
- the column indexpublic java.util.Collection<XBRLFact> getValueAt(int rowIndex, int columnIndex)
rowIndex
- the row indexcolumnIndex
- the column indexTableModel.getValueAt(int, int)
public XBRLItem getItemAt(int rowIndex, int columnIndex)
rowIndex
- the row indexcolumnIndex
- the column indexpublic java.util.Set<javax.xml.namespace.QName> getConcepts()
public CompanyKey getSelectedCompany()
public int getZLevel(AxisSlice selectedObjects)
selectedObjects
- the selected objectspublic java.util.Map<AxisSlice,java.lang.Integer> getZLevelContent()
public java.lang.String getZLevelLabel(int zCombNumber)
zCombNumber
- the z comb number@Deprecated public void clear()
getStructuralTable().resetLayout()instead of calling clear on this class Clear.
public void setNumZExcluded(int numZExcluded)
numZExcluded
- the new num Z excludedpublic int getNumZExcluded()
public void setNumZMissingCombinationsExcluded(int numZMissingCombinationsExcluded)
numZMissingCombinationsExcluded
- the new num Z missing combinations excludedpublic int getNumZMissingCombinationsExcluded()
public int getTotZMissingCombinations()
public void setTotZMissingCombinations(int totZMissingCombinations)
totZMissingCombinations
- the new tot Z missing combinationspublic int getCellColumnIndentation(Cell cell)
cell
- the cellpublic CellHeader getCellHeader(XBRLTableResource node)
node
- the nodepublic int getCellRowIndentation(Cell cell)
cell
- the cellpublic Axis getCellAxis(XBRLTableResource node)
node
- the nodeCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa