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 StringPROPERTY_COLUMN_FOOTERstatic StringPROPERTY_COLUMN_HEADERstatic StringPROPERTY_GROUP_FOOTERSstatic StringPROPERTY_GROUP_HEADERSstatic StringPROPERTY_PRINT_WHEN_EXPRESSIONstatic StringPROPERTY_TABLE_FOOTERstatic StringPROPERTY_TABLE_HEADERstatic StringPROPERTY_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:
getUUIDin interfaceJRIdentifiable
-
setUUID
public void setUUID(UUID uuid)
-
getColumnHeader
public Cell getColumnHeader()
- Specified by:
getColumnHeaderin interfaceBaseColumn
-
getColumnFooter
public Cell getColumnFooter()
- Specified by:
getColumnFooterin interfaceBaseColumn
-
getPrintWhenExpression
public JRExpression getPrintWhenExpression()
- Specified by:
getPrintWhenExpressionin 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:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-
getTableHeader
public Cell getTableHeader()
- Specified by:
getTableHeaderin interfaceBaseColumn
-
setTableHeader
public void setTableHeader(Cell tableHeader)
-
getTableFooter
public Cell getTableFooter()
- Specified by:
getTableFooterin interfaceBaseColumn
-
setTableFooter
public void setTableFooter(Cell tableFooter)
-
getWidth
public Integer getWidth()
- Specified by:
getWidthin interfaceBaseColumn
-
setWidth
public void setWidth(Integer width)
-
getEventSupport
public JRPropertyChangeSupport getEventSupport()
Description copied from interface:JRChangeEventsSupportReturns the property change support object for this instance.- Specified by:
getEventSupportin interfaceJRChangeEventsSupport- Returns:
- the property change support object for this instance
-
getGroupHeaders
public List<GroupCell> getGroupHeaders()
- Specified by:
getGroupHeadersin interfaceBaseColumn
-
getGroupFooters
public List<GroupCell> getGroupFooters()
- Specified by:
getGroupFootersin interfaceBaseColumn
-
getGroupFooter
public Cell getGroupFooter(String groupName)
- Specified by:
getGroupFooterin interfaceBaseColumn
-
getGroupHeader
public Cell getGroupHeader(String groupName)
- Specified by:
getGroupHeaderin 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:JRPropertiesHolderChecks whether the object has any properties.- Specified by:
hasPropertiesin interfaceJRPropertiesHolder- Returns:
- whether the object has any properties
-
getPropertiesMap
public JRPropertiesMap getPropertiesMap()
Description copied from interface:JRPropertiesHolderReturns this object's properties map.- Specified by:
getPropertiesMapin interfaceJRPropertiesHolder- Returns:
- this object's properties map
-
getParentProperties
public JRPropertiesHolder getParentProperties()
Description copied from interface:JRPropertiesHolderReturns the parent properties holder, whose properties are used as defaults for this object.- Specified by:
getParentPropertiesin interfaceJRPropertiesHolder- Returns:
- the parent properties holder, or
nullif no parent
-
getPropertyExpressions
public JRPropertyExpression[] getPropertyExpressions()
- Specified by:
getPropertyExpressionsin 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 (
JRPropertyExpressioninstances) - See Also:
addPropertyExpression(JRPropertyExpression)
-
-