|
||||||||||
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 GroupHandler |
_groupHandler
|
protected java.lang.String |
_name
|
protected Calculator[] |
_subtotals
|
protected Calculator |
_summary
|
protected java.lang.String |
_title
|
protected PivotField.Type |
_type
|
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 |
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 |
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. |
protected void |
setSubtotals(Calculator[] subtotals)
|
protected void |
setSummary(Calculator summary)
|
void |
setTitle(java.lang.String title)
Sets the title of the field that is used to display on the UI, like Data area type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String _name
protected java.lang.String _title
protected PivotField.Type _type
protected GroupHandler _groupHandler
protected Calculator[] _subtotals
protected Calculator _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 PivotField
public PivotField.Type getType()
PivotField
getType
in interface PivotField
PivotField.Type
public java.lang.String getFieldName()
PivotField
getFieldName
in interface PivotField
public void setFieldName(java.lang.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 fireEvent(java.lang.String type, java.lang.Object original, java.lang.Object current)
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |