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()
PivotField
getTitle
in interface PivotField
public PivotField.Type getType()
PivotField
getType
in interface PivotField
PivotField.Type
public String getFieldName()
PivotField
getFieldName
in interface PivotField
public void setFieldName(String fieldName)
public void setGroupHandler(GroupHandler groupHandler)
GroupHandler
public GroupHandler getGroupHandler()
PivotField
getGroupHandler
in interface PivotField
public void addFieldDataListener(FieldDataListener f)
PivotField
addFieldDataListener
in interface PivotField
public void removeFieldDataListener(FieldDataListener f)
PivotField
removeFieldDataListener
in interface PivotField
protected void setSubtotals(Calculator[] subtotals)
public Calculator[] getSubtotals()
PivotField
getSubtotals
in interface PivotField
public Calculator getSubtotal(int index)
PivotField
getSubtotal
in interface PivotField
protected void setSummary(Calculator summary)
public Calculator getSummary()
PivotField
getSummary
in interface PivotField
Copyright © 2017. All rights reserved.