Class StandardBaseColumn
- java.lang.Object
-
- net.sf.jasperreports.components.table.StandardBaseColumn
-
- All Implemented Interfaces:
Serializable
,Cloneable
,BaseColumn
,JRChangeEventsSupport
,JRCloneable
,JRIdentifiable
,JRPropertiesHolder
- Direct Known Subclasses:
StandardColumn
,StandardColumnGroup
public abstract class StandardBaseColumn extends Object implements BaseColumn, Serializable, JRChangeEventsSupport
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_COLUMN_FOOTER
static String
PROPERTY_COLUMN_HEADER
static String
PROPERTY_GROUP_FOOTERS
static String
PROPERTY_GROUP_HEADERS
static String
PROPERTY_PRINT_WHEN_EXPRESSION
static String
PROPERTY_TABLE_FOOTER
static String
PROPERTY_TABLE_HEADER
static String
PROPERTY_WIDTH
-
Constructor Summary
Constructors Constructor Description StandardBaseColumn()
StandardBaseColumn(BaseColumn column, ColumnFactory factory)
-
Method Summary
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.components.table.BaseColumn
visitColumn
-
-
-
-
Field Detail
-
PROPERTY_PRINT_WHEN_EXPRESSION
public static final String PROPERTY_PRINT_WHEN_EXPRESSION
- See Also:
- Constant Field Values
-
PROPERTY_TABLE_HEADER
public static final String PROPERTY_TABLE_HEADER
- See Also:
- Constant Field Values
-
PROPERTY_TABLE_FOOTER
public static final String PROPERTY_TABLE_FOOTER
- See Also:
- Constant Field Values
-
PROPERTY_COLUMN_HEADER
public static final String PROPERTY_COLUMN_HEADER
- See Also:
- Constant Field Values
-
PROPERTY_COLUMN_FOOTER
public static final String PROPERTY_COLUMN_FOOTER
- See Also:
- Constant Field Values
-
PROPERTY_GROUP_HEADERS
public static final String PROPERTY_GROUP_HEADERS
- See Also:
- Constant Field Values
-
PROPERTY_GROUP_FOOTERS
public static final String PROPERTY_GROUP_FOOTERS
- See Also:
- Constant Field Values
-
PROPERTY_WIDTH
public static final String PROPERTY_WIDTH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StandardBaseColumn
public StandardBaseColumn()
-
StandardBaseColumn
public StandardBaseColumn(BaseColumn column, ColumnFactory factory)
-
-
Method Detail
-
getUUID
public UUID getUUID()
- Specified by:
getUUID
in interfaceJRIdentifiable
-
setUUID
public void setUUID(UUID uuid)
-
getColumnHeader
public Cell getColumnHeader()
- Specified by:
getColumnHeader
in interfaceBaseColumn
-
getColumnFooter
public Cell getColumnFooter()
- Specified by:
getColumnFooter
in interfaceBaseColumn
-
getPrintWhenExpression
public JRExpression getPrintWhenExpression()
- Specified by:
getPrintWhenExpression
in interfaceBaseColumn
-
setPrintWhenExpression
public void setPrintWhenExpression(JRExpression printWhenExpression)
-
setColumnHeader
public void setColumnHeader(Cell header)
-
setColumnFooter
public void setColumnFooter(Cell header)
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classObject
-
getTableHeader
public Cell getTableHeader()
- Specified by:
getTableHeader
in interfaceBaseColumn
-
setTableHeader
public void setTableHeader(Cell tableHeader)
-
getTableFooter
public Cell getTableFooter()
- Specified by:
getTableFooter
in interfaceBaseColumn
-
setTableFooter
public void setTableFooter(Cell tableFooter)
-
getWidth
public Integer getWidth()
- Specified by:
getWidth
in interfaceBaseColumn
-
setWidth
public void setWidth(Integer width)
-
getEventSupport
public JRPropertyChangeSupport getEventSupport()
Description copied from interface:JRChangeEventsSupport
Returns the property change support object for this instance.- Specified by:
getEventSupport
in interfaceJRChangeEventsSupport
- Returns:
- the property change support object for this instance
-
getGroupHeaders
public List<GroupCell> getGroupHeaders()
- Specified by:
getGroupHeaders
in interfaceBaseColumn
-
getGroupFooters
public List<GroupCell> getGroupFooters()
- Specified by:
getGroupFooters
in interfaceBaseColumn
-
getGroupFooter
public Cell getGroupFooter(String groupName)
- Specified by:
getGroupFooter
in interfaceBaseColumn
-
getGroupHeader
public Cell getGroupHeader(String groupName)
- Specified by:
getGroupHeader
in interfaceBaseColumn
-
addGroupHeader
public void addGroupHeader(GroupCell groupCell)
-
addGroupFooter
public void addGroupFooter(GroupCell groupCell)
-
removeGroupFooter
public boolean removeGroupFooter(GroupCell groupCell)
-
removeGroupHeader
public boolean removeGroupHeader(GroupCell groupCell)
-
hasProperties
public boolean hasProperties()
Description copied from interface:JRPropertiesHolder
Checks whether the object has any properties.- Specified by:
hasProperties
in interfaceJRPropertiesHolder
- Returns:
- whether the object has any properties
-
getPropertiesMap
public JRPropertiesMap getPropertiesMap()
Description copied from interface:JRPropertiesHolder
Returns this object's properties map.- Specified by:
getPropertiesMap
in interfaceJRPropertiesHolder
- Returns:
- this object's properties map
-
getParentProperties
public JRPropertiesHolder getParentProperties()
Description copied from interface:JRPropertiesHolder
Returns the parent properties holder, whose properties are used as defaults for this object.- Specified by:
getParentProperties
in interfaceJRPropertiesHolder
- Returns:
- the parent properties holder, or
null
if no parent
-
getPropertyExpressions
public JRPropertyExpression[] getPropertyExpressions()
- Specified by:
getPropertyExpressions
in interfaceBaseColumn
-
addPropertyExpression
public void addPropertyExpression(JRPropertyExpression propertyExpression)
Add a dynamic/expression-based property.- Parameters:
propertyExpression
- the property to add- See Also:
getPropertyExpressions()
-
removePropertyExpression
public void removePropertyExpression(JRPropertyExpression propertyExpression)
Remove a property expression.- Parameters:
propertyExpression
- the property expression to remove- See Also:
addPropertyExpression(JRPropertyExpression)
-
removePropertyExpression
public JRPropertyExpression removePropertyExpression(String name)
Remove a property expression.- Parameters:
name
- the name of the property to remove- Returns:
- the removed property expression (if found)
-
getPropertyExpressionsList
public List<JRPropertyExpression> getPropertyExpressionsList()
Returns the list of property expressions.- Returns:
- the list of property expressions (
JRPropertyExpression
instances) - See Also:
addPropertyExpression(JRPropertyExpression)
-
-