Package org.javlo.component.column
Class TableContext
- java.lang.Object
-
- org.javlo.component.column.TableContext
-
public class TableContext extends Object
-
-
Constructor Summary
Constructors Constructor Description TableContext()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TableComponent>getComponents()TableComponentgetFirstComponent()StringgetFirstComponentId()static TableContextgetInstance(ContentContext ctx, IContentVisualComponent currentComponent)TableComponentgetLastComponent()intgetMaxRowSize()StringgetName(TableComponent inComp)intgetRowSize(TableComponent currentComp)reutrn the size of the row (the number of cellBreak in the row +1).TableBreakgetTableBreak()booleanisCellWidth()true if there are at least one cell with "width" manually defined.booleanisFirst(TableComponent comp)booleanisFirstComponent(TableComponent comp)static booleanisInstance(ContentContext ctx)booleanisLast(TableComponent comp)booleanisTableOpen()voidopenTable()voidrefresh(ContentContext ctx, IContentVisualComponent currentComponent)voidresetTable(ContentContext ctx)
-
-
-
Method Detail
-
getInstance
public static TableContext getInstance(ContentContext ctx, IContentVisualComponent currentComponent) throws Exception
- Throws:
Exception
-
refresh
public void refresh(ContentContext ctx, IContentVisualComponent currentComponent) throws Exception
- Throws:
Exception
-
isFirst
public boolean isFirst(TableComponent comp)
-
isLast
public boolean isLast(TableComponent comp)
-
getName
public String getName(TableComponent inComp)
-
isInstance
public static boolean isInstance(ContentContext ctx) throws Exception
- Throws:
Exception
-
getRowSize
public int getRowSize(TableComponent currentComp)
reutrn the size of the row (the number of cellBreak in the row +1).- Parameters:
comp-- Returns:
- -1 if currentComp not found in table context or found as last element.
-
isTableOpen
public boolean isTableOpen()
-
openTable
public void openTable()
-
resetTable
public void resetTable(ContentContext ctx)
-
getComponents
public List<TableComponent> getComponents()
-
getFirstComponent
public TableComponent getFirstComponent()
-
getFirstComponentId
public String getFirstComponentId()
-
isFirstComponent
public boolean isFirstComponent(TableComponent comp)
-
getLastComponent
public TableComponent getLastComponent()
-
getTableBreak
public TableBreak getTableBreak()
-
getMaxRowSize
public int getMaxRowSize()
-
isCellWidth
public boolean isCellWidth()
true if there are at least one cell with "width" manually defined.- Returns:
-
-