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()
TableComponent
getFirstComponent()
String
getFirstComponentId()
static TableContext
getInstance(ContentContext ctx, IContentVisualComponent currentComponent)
TableComponent
getLastComponent()
int
getMaxRowSize()
String
getName(TableComponent inComp)
int
getRowSize(TableComponent currentComp)
reutrn the size of the row (the number of cellBreak in the row +1).TableBreak
getTableBreak()
boolean
isCellWidth()
true if there are at least one cell with "width" manually defined.boolean
isFirst(TableComponent comp)
boolean
isFirstComponent(TableComponent comp)
static boolean
isInstance(ContentContext ctx)
boolean
isLast(TableComponent comp)
boolean
isTableOpen()
void
openTable()
void
refresh(ContentContext ctx, IContentVisualComponent currentComponent)
void
resetTable(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:
-
-