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 Modifier and Type Field Description static java.lang.String
SELECTED_ROSTER_ENTRIES
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
void
addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
RosterEntry[]
getSelectedRosterEntries()
Get the currently selected roster entries.void
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
void
removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
-
-
-
Field Detail
-
SELECTED_ROSTER_ENTRIES
static final java.lang.String SELECTED_ROSTER_ENTRIES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSelectedRosterEntries
RosterEntry[] 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
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
-
addPropertyChangeListener
void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
-
removePropertyChangeListener
void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
-
removePropertyChangeListener
void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
-
-