Package jmri.jmrit.roster
Interface RosterEntrySelector
- All Known Implementing Classes:
DecoderPro3Window,EcosLocoTableAction.RosterBoxRenderer,GlobalRosterEntryComboBox,RosterEntryComboBox,RosterEntrySelectorPanel,RosterFrame,RosterTable
public interface RosterEntrySelector
The getter method for a roster entry selection.
Classes that implement this interface will be able to provide a source for getting a roster entry or entries to other objects that manipulate roster entries.
Note: Classes implementing this interface must fire a propertyChangeEvent for the selectedRosterEntries property whenever the selected roster entries change.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener) Get the currently selected roster entries.voidvoidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener)
-
Field Details
-
SELECTED_ROSTER_ENTRIES
- See Also:
-
-
Method Details
-
getSelectedRosterEntries
Get the currently selected roster entries. Since the selection could contain multiple roster entries, this returns an array of RosterEntry instead of a single RosterEntry.- Returns:
- an array of RosterEntries
-
addPropertyChangeListener
-
addPropertyChangeListener
-
removePropertyChangeListener
-
removePropertyChangeListener
-