|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.pivot.impl.SimplePivotField
public class SimplePivotField
A simple pivot field implementation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.zkoss.pivot.PivotField |
|---|
PivotField.Type |
| Field Summary | |
|---|---|
protected Calculator |
DEFAULT_SUMMARY
|
| Constructor Summary | |
|---|---|
SimplePivotField()
|
|
SimplePivotField(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
addFieldDataListener(FieldDataListener f)
Adds a field data listener to the pivot field. |
protected void |
fireEvent(java.lang.String type,
java.lang.Object original,
java.lang.Object current)
|
java.lang.String |
getFieldName()
Returns the field name which indicates the name within the data model |
GroupHandler |
getGroupHandler()
Returns the group handler. |
Calculator[] |
getSubtotals()
Returns a set of subtotal calculator in order. |
Calculator |
getSummary()
Returns the summary calculator |
java.lang.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(java.lang.String fieldName)
Set field name |
void |
setGroupHandler(GroupHandler groupHandler)
Sets the group handler. |
void |
setSubtotals(Calculator[] subtotals)
Sets a set of subtotals in order. |
void |
setSummary(Calculator summary)
Sets the summary calculator, null to use the default calculator. |
void |
setTitle(java.lang.String title)
Sets the title of the field that is used to display on the UI, like Data area type. |
void |
setType(PivotField.Type area)
Sets the area type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Calculator DEFAULT_SUMMARY
| Constructor Detail |
|---|
public SimplePivotField()
public SimplePivotField(java.lang.String name)
| Method Detail |
|---|
public void setTitle(java.lang.String title)
public java.lang.String getTitle()
PivotField
getTitle in interface PivotFieldpublic PivotField.Type getType()
PivotField
getType in interface PivotFieldPivotField.Typepublic void setType(PivotField.Type area)
PivotField.Typepublic java.lang.String getFieldName()
PivotField
getFieldName in interface PivotFieldpublic void setFieldName(java.lang.String fieldName)
public void setGroupHandler(GroupHandler groupHandler)
GroupHandlerpublic GroupHandler getGroupHandler()
PivotField
getGroupHandler in interface PivotFieldpublic void addFieldDataListener(FieldDataListener f)
PivotField
addFieldDataListener in interface PivotFieldpublic void removeFieldDataListener(FieldDataListener f)
PivotField
removeFieldDataListener in interface PivotField
protected void fireEvent(java.lang.String type,
java.lang.Object original,
java.lang.Object current)
public void setSubtotals(Calculator[] subtotals)
Calculatorpublic Calculator[] getSubtotals()
PivotField
getSubtotals in interface PivotFieldpublic void setSummary(Calculator summary)
Calculatorpublic Calculator getSummary()
PivotField
getSummary in interface PivotField
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||