Package org.zkoss.pivot.impl
Class SimplePivotField
java.lang.Object
org.zkoss.pivot.impl.SimplePivotField
- All Implemented Interfaces:
PivotField
- Direct Known Subclasses:
TabularPivotField
A simple pivot field implementation.
- Author:
- jumperchen, dennischen
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.zkoss.pivot.PivotField
PivotField.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GroupHandlerprotected Stringprotected Calculator[]protected Calculatorprotected Stringprotected PivotField.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a field data listener to the pivot field.protected voidReturns the field name which indicates the name within the data modelReturns the group handler.getSubtotal(int index) Returns the ith subtotal calculator on the field.Returns a set of subtotal calculator in order.Returns the summary calculatorgetTitle()Returns the title of the field.getType()Returns the area type.voidRemoves the specified field data listener from the pivot field.voidsetFieldName(String fieldName) Set field namevoidsetGroupHandler(GroupHandler groupHandler) Sets the group handler.protected voidsetSubtotals(Calculator[] subtotals) protected voidsetSummary(Calculator summary) voidSets the title of the field that is used to display on the UI, like Data area type.
-
Field Details
-
_name
-
_title
-
_type
-
_groupHandler
-
_subtotals
-
_summary
-
-
Constructor Details
-
SimplePivotField
public SimplePivotField() -
SimplePivotField
-
-
Method Details
-
setTitle
Sets the title of the field that is used to display on the UI, like Data area type. -
getTitle
Description copied from interface:PivotFieldReturns the title of the field.- Specified by:
getTitlein interfacePivotField
-
getType
Description copied from interface:PivotFieldReturns the area type.- Specified by:
getTypein interfacePivotField- See Also:
-
getFieldName
Description copied from interface:PivotFieldReturns the field name which indicates the name within the data model- Specified by:
getFieldNamein interfacePivotField
-
setFieldName
Set field name -
setGroupHandler
Sets the group handler.- See Also:
-
getGroupHandler
Description copied from interface:PivotFieldReturns the group handler.- Specified by:
getGroupHandlerin interfacePivotField
-
addFieldDataListener
Description copied from interface:PivotFieldAdds a field data listener to the pivot field.- Specified by:
addFieldDataListenerin interfacePivotField
-
removeFieldDataListener
Description copied from interface:PivotFieldRemoves the specified field data listener from the pivot field.- Specified by:
removeFieldDataListenerin interfacePivotField
-
fireEvent
-
setSubtotals
-
getSubtotals
Description copied from interface:PivotFieldReturns a set of subtotal calculator in order.- Specified by:
getSubtotalsin interfacePivotField
-
getSubtotal
Description copied from interface:PivotFieldReturns the ith subtotal calculator on the field.- Specified by:
getSubtotalin interfacePivotField
-
setSummary
-
getSummary
Description copied from interface:PivotFieldReturns the summary calculator- Specified by:
getSummaryin interfacePivotField
-