public class SimplePivotField extends Object implements PivotField
PivotField.Type| Modifier and Type | Field and Description |
|---|---|
protected GroupHandler |
_groupHandler |
protected String |
_name |
protected Calculator[] |
_subtotals |
protected Calculator |
_summary |
protected String |
_title |
protected PivotField.Type |
_type |
| Constructor and Description |
|---|
SimplePivotField() |
SimplePivotField(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFieldDataListener(FieldDataListener f)
Adds a field data listener to the pivot field.
|
protected void |
fireEvent(String type,
Object original,
Object current) |
String |
getFieldName()
Returns the field name which indicates the name within the data model
|
GroupHandler |
getGroupHandler()
Returns the group handler.
|
Calculator |
getSubtotal(int index)
Returns the ith subtotal calculator on the field.
|
Calculator[] |
getSubtotals()
Returns a set of subtotal calculator in order.
|
Calculator |
getSummary()
Returns the summary calculator
|
String |
getTitle()
Returns the title of the field.
|
PivotField.Type |
getType()
Returns the area type.
|
void |
removeFieldDataListener(FieldDataListener f)
Removes the specified field data listener from the pivot field.
|
void |
setFieldName(String fieldName)
Set field name
|
void |
setGroupHandler(GroupHandler groupHandler)
Sets the group handler.
|
protected void |
setSubtotals(Calculator[] subtotals) |
protected void |
setSummary(Calculator summary) |
void |
setTitle(String title)
Sets the title of the field that is used to display on the UI, like Data
area type.
|
protected String _name
protected String _title
protected PivotField.Type _type
protected GroupHandler _groupHandler
protected Calculator[] _subtotals
protected Calculator _summary
public SimplePivotField()
public SimplePivotField(String name)
public void setTitle(String title)
public String getTitle()
PivotFieldgetTitle in interface PivotFieldpublic PivotField.Type getType()
PivotFieldgetType in interface PivotFieldPivotField.Typepublic String getFieldName()
PivotFieldgetFieldName in interface PivotFieldpublic void setFieldName(String fieldName)
public void setGroupHandler(GroupHandler groupHandler)
GroupHandlerpublic GroupHandler getGroupHandler()
PivotFieldgetGroupHandler in interface PivotFieldpublic void addFieldDataListener(FieldDataListener f)
PivotFieldaddFieldDataListener in interface PivotFieldpublic void removeFieldDataListener(FieldDataListener f)
PivotFieldremoveFieldDataListener in interface PivotFieldprotected void setSubtotals(Calculator[] subtotals)
public Calculator[] getSubtotals()
PivotFieldgetSubtotals in interface PivotFieldpublic Calculator getSubtotal(int index)
PivotFieldgetSubtotal in interface PivotFieldprotected void setSummary(Calculator summary)
public Calculator getSummary()
PivotFieldgetSummary in interface PivotFieldCopyright © 2023. All rights reserved.