public class DefaultColumnSummaryModel extends java.lang.Object implements ColumnSummaryModel
ColumnSummaryModel.ColumnValueProvider, ColumnSummaryModel.Summary
Constructor and Description |
---|
DefaultColumnSummaryModel(ColumnSummaryModel.ColumnValueProvider valueProvider)
Instantiates a new DefaultColumnSummaryModel
|
Modifier and Type | Method and Description |
---|---|
void |
addSummaryListener(EventDataListener<ColumnSummaryModel.Summary> listener) |
void |
addSummaryValueListener(EventListener listener) |
java.util.List<ColumnSummaryModel.Summary> |
getAvailableSummaries() |
ColumnSummaryModel.Summary |
getSummary() |
java.lang.String |
getSummaryText() |
boolean |
isLocked() |
void |
removeSummaryListener(EventDataListener listener) |
void |
removeSummaryValueListener(EventListener listener) |
void |
setLocked(boolean value) |
void |
setSummary(ColumnSummaryModel.Summary summary) |
public DefaultColumnSummaryModel(ColumnSummaryModel.ColumnValueProvider valueProvider)
valueProvider
- the property value providerpublic boolean isLocked()
isLocked
in interface ColumnSummaryModel
public void setLocked(boolean value)
setLocked
in interface ColumnSummaryModel
value
- if true then changing summary type is disablepublic final void setSummary(ColumnSummaryModel.Summary summary)
setSummary
in interface ColumnSummaryModel
summary
- the type of summary to showpublic final ColumnSummaryModel.Summary getSummary()
getSummary
in interface ColumnSummaryModel
public final java.util.List<ColumnSummaryModel.Summary> getAvailableSummaries()
getAvailableSummaries
in interface ColumnSummaryModel
public final java.lang.String getSummaryText()
getSummaryText
in interface ColumnSummaryModel
public final void addSummaryValueListener(EventListener listener)
addSummaryValueListener
in interface ColumnSummaryModel
listener
- a listener to be notified each time the summary value changespublic final void removeSummaryValueListener(EventListener listener)
removeSummaryValueListener
in interface ColumnSummaryModel
listener
- the listener to removepublic final void addSummaryListener(EventDataListener<ColumnSummaryModel.Summary> listener)
addSummaryListener
in interface ColumnSummaryModel
listener
- a listener to be notified each time the summary type changespublic final void removeSummaryListener(EventDataListener listener)
removeSummaryListener
in interface ColumnSummaryModel
listener
- the listener to remove