Package jmri.jmrit.roster.rostergroup
Class RosterGroup
java.lang.Object
jmri.beans.UnboundBean
jmri.beans.Bean
jmri.jmrit.roster.rostergroup.RosterGroup
- All Implemented Interfaces:
BeanInterface,PropertyChangeFirer,PropertyChangeProvider,RosterObject
A RosterGroup object contains information about groupings of entries within
the
Roster.
This object allows groups to be manipulated as Java beans.-
Field Summary
Fields inherited from class jmri.beans.Bean
propertyChangeSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanFlag indicating that the contents of this RosterGroup can be changed by the user.booleancanCopy()Flag indicating that this RosterGroup can be duplicated by the user.booleanFlag indicating that this RosterGroup can be deleted by the user.booleancanEdit()Flag indicating that this RosterGroup can be edited by the user.Get the formatted single-line String for displaying the object.Get the list of entries associated with this group.getName()Get the RosterGroup's name.voidSet the RosterGroup's name, changing it in every entry associated with the roster.Methods inherited from class jmri.beans.Bean
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, isNotifyOnEDT, removePropertyChangeListener, removePropertyChangeListenerMethods inherited from class jmri.beans.UnboundBean
getIndexedProperty, getProperty, getPropertyNames, hasIndexedProperty, hasProperty, setIndexedProperty, setPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jmri.beans.BeanInterface
getIndexedProperty, getProperty, getPropertyNames, hasIndexedProperty, hasProperty, setIndexedProperty, setProperty
-
Constructor Details
-
RosterGroup
Create a roster group. This sets the name without callingsetName(java.lang.String).- Parameters:
name- roster group name.
-
-
Method Details
-
getEntries
Get the list of entries associated with this group.- Returns:
- the list of entries or an empty list.
-
getName
Get the RosterGroup's name. UsegetDisplayName()to get the name to be displayed to a user.- Returns:
- the name
- See Also:
-
setName
Set the RosterGroup's name, changing it in every entry associated with the roster.- Parameters:
newName- the new name
-
getDisplayName
Description copied from interface:RosterObjectGet the formatted single-line String for displaying the object.- Specified by:
getDisplayNamein interfaceRosterObject- Returns:
- a formatted name
-
canEdit
Flag indicating that this RosterGroup can be edited by the user. The default implementation always returns true.- Returns:
- true if the group can be edited.
-
canDelete
Flag indicating that this RosterGroup can be deleted by the user. The default implementation always returns true.- Returns:
- true if the group can be deleted.
-
canCopy
Flag indicating that this RosterGroup can be duplicated by the user. The default implementation always returns true.- Returns:
- true if the group can be copied.
-
canChangeContents
Flag indicating that the contents of this RosterGroup can be changed by the user. The default implementation always returns true.- Returns:
- true if entries in this group can be changed.
-