org.jminor.framework.client.model
Interface PropertySummaryModel
- All Known Implementing Classes:
- DefaultPropertySummaryModel
public interface PropertySummaryModel
A interface defining a class for providing summaries of numerical table columns: sum, average, minimum, maximum and minimum & maximum.
getProperty
Property getProperty()
- Returns:
- the Property this summary model is based on
setSummaryType
void setSummaryType(PropertySummaryModel.SummaryType summaryType)
- Parameters:
summaryType
- the type of summary to show
getSummaryType
PropertySummaryModel.SummaryType getSummaryType()
- Returns:
- the current summary type
getSummaryTypes
List<PropertySummaryModel.SummaryType> getSummaryTypes()
- Returns:
- a list containing the available summary types
getSummaryText
String getSummaryText()
- Returns:
- a string represting the summary value
addSummaryListener
void addSummaryListener(ActionListener listener)
- Parameters:
listener
- a listener to be notified each time the summary changes
removeSummaryListener
void removeSummaryListener(ActionListener listener)
- Parameters:
listener
- the listener to remove
addSummaryTypeListener
void addSummaryTypeListener(ActionListener listener)
- Parameters:
listener
- a listener to be notified each time the summary type changes
removeSummaryTypeListener
void removeSummaryTypeListener(ActionListener listener)
- Parameters:
listener
- the listener to remove