Class TableUtil
- java.lang.Object
-
- net.sf.jasperreports.components.table.util.TableUtil
-
public class TableUtil extends Object
- Author:
- Veaceslav Chicu (schicu@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static int
COLUMN_DETAIL
static int
COLUMN_FOOTER
static int
COLUMN_GROUP_FOOTER
static int
COLUMN_GROUP_HEADER
static int
COLUMN_HEADER
static int
TABLE_FOOTER
static int
TABLE_HEADER
-
Constructor Summary
Constructors Constructor Description TableUtil(TableComponent table, JRReport report)
-
Method Summary
-
-
-
Field Detail
-
TABLE_HEADER
public static final int TABLE_HEADER
- See Also:
- Constant Field Values
-
TABLE_FOOTER
public static final int TABLE_FOOTER
- See Also:
- Constant Field Values
-
COLUMN_HEADER
public static final int COLUMN_HEADER
- See Also:
- Constant Field Values
-
COLUMN_FOOTER
public static final int COLUMN_FOOTER
- See Also:
- Constant Field Values
-
COLUMN_DETAIL
public static final int COLUMN_DETAIL
- See Also:
- Constant Field Values
-
COLUMN_GROUP_HEADER
public static final int COLUMN_GROUP_HEADER
- See Also:
- Constant Field Values
-
COLUMN_GROUP_FOOTER
public static final int COLUMN_GROUP_FOOTER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TableUtil
public TableUtil(TableComponent table, JRReport report)
-
-
Method Detail
-
refresh
public void refresh()
-
init
public void init(TableComponent table)
-
getAllColumns
public static List<BaseColumn> getAllColumns(TableComponent table)
-
getAllColumns
public static List<BaseColumn> getAllColumns(List<BaseColumn> cols)
-
getBounds
public Rectangle getBounds(int width, Cell cell, BaseColumn col)
-
getGroupList
public List<?> getGroupList()
-
getGroupList
public static List<?> getGroupList(TableComponent table, JRReport report)
-
getCell
public static Cell getCell(BaseColumn bc, int type, String grName)
-
getColumnGroupForColumn
public static ColumnGroup getColumnGroupForColumn(BaseColumn column, List<BaseColumn> columns)
-
getCellElement
public static <T extends JRElement> T getCellElement(Class<T> type, Cell cell, boolean oneElementPerCell)
-
isFilterable
public static boolean isFilterable(JRTextField textField)
-
hasSingleChunkExpression
public static boolean hasSingleChunkExpression(JRTextField textField)
-
getColumnIndex
public static int getColumnIndex(Column column, TableComponent table)
-
getHierarchicalColumnGroupsForColumn
public static List<ColumnGroup> getHierarchicalColumnGroupsForColumn(BaseColumn column, List<BaseColumn> columns, TableComponent table)
-
getCellElement
public static <T extends JRElement> T getCellElement(Class<T> type, BaseColumn column, int sectionType, String groupName, TableComponent table)
-
-