|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sos.reports.AbstractReportSelectionModel
A partial implementation of ReportSelectionModel
that handles the
registering, unregistering, and notification of listeners.
Subclasses must implement the following methods:
ReportSelectionModel
Constructor Summary | |
protected |
AbstractReportSelectionModel()
Creates an instance of AbstractReportSelectionModel . |
Method Summary | |
void |
addReportSelectionListener(ReportSelectionListener listener)
Registers the specified listener so that it is notified when the selection changes. |
protected void |
fireSelectionChanged(boolean isAdjusting)
Notifies all registered listeners that a series of changes has started or ended. |
protected void |
fireSelectionChanged(ReportSelectionEvent event)
Notifies all registered listeners of the specified event. |
protected void |
fireSelectionChanged(java.util.Set elementsChanged)
Notifies all registered listeners that the selection state of the specified elements may have changed. |
boolean |
getValueIsAdjusting()
Returns true if the selection is undergoing a series of changes. |
void |
removeReportSelectionListener(ReportSelectionListener listener)
Unregisters the specified listener so that it is not notified when the selection changes. |
void |
reportChanged(ReportEvent event)
Updates itself (if necessary) as a result of a report modification. |
void |
setValueIsAdjusting(boolean isAdjusting)
Sets whether or not the selection is about to undergo changes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface sos.reports.ReportSelectionModel |
canSelect, clearSelection, getAnchorSelectionElement, getLeadSelectionElement, getSelectedElements, isSelected, select, setAnchorSelectionElement, setLeadSelectionElement, setSelectedElements |
Constructor Detail |
protected AbstractReportSelectionModel()
AbstractReportSelectionModel
.
Method Detail |
public void addReportSelectionListener(ReportSelectionListener listener)
ReportSelectionModel
addReportSelectionListener
in interface ReportSelectionModel
listener
- object to be notified when a change in the selection occursprotected void fireSelectionChanged(boolean isAdjusting)
isAdjusting
- usually false
to indicate that a series
of selection changes has finishedprotected void fireSelectionChanged(ReportSelectionEvent event)
event
- event to send to listenersprotected void fireSelectionChanged(java.util.Set elementsChanged)
elementsChanged
- set of report elements whose selection state
may have changedpublic boolean getValueIsAdjusting()
ReportSelectionModel
true
if the selection is undergoing a series of changes.
getValueIsAdjusting
in interface ReportSelectionModel
true
if the selection is currently adjustingReportSelectionModel.setValueIsAdjusting(boolean)
public void removeReportSelectionListener(ReportSelectionListener listener)
ReportSelectionModel
removeReportSelectionListener
in interface ReportSelectionModel
listener
- object that does not wish to be notified
when a change in the selection occurspublic void reportChanged(ReportEvent event)
ReportSelectionModel
reportChanged
in interface ReportSelectionModel
event
- the event describing how the report has changedpublic void setValueIsAdjusting(boolean isAdjusting)
ReportSelectionModel
setValueIsAdjusting
in interface ReportSelectionModel
isAdjusting
- true if a series of changes is about to take placeReportSelectionModel.getValueIsAdjusting()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |