Package jmri.jmrit.beantable.signalmast
Class SignalMastAddPane.SignalMastAddPaneProvider
java.lang.Object
jmri.jmrit.beantable.signalmast.SignalMastAddPane.SignalMastAddPaneProvider
- All Implemented Interfaces:
JmriServiceProviderInterface
- Direct Known Subclasses:
BiDiBSignalMastAddPane.SignalMastAddPaneProvider,DccSignalMastAddPane.SignalMastAddPaneProvider,LNCPSignalMastAddPane.SignalMastAddPaneProvider,MatrixSignalMastAddPane.SignalMastAddPaneProvider,MqttSignalMastAddPane.SignalMastAddPaneProvider,OlcbSignalMastAddPane.SignalMastAddPaneProvider,SignalHeadSignalMastAddPane.SignalMastAddPaneProvider,TurnoutSignalMastAddPane.SignalMastAddPaneProvider,VirtualSignalMastAddPane.SignalMastAddPaneProvider
- Enclosing class:
- SignalMastAddPane
public abstract static class SignalMastAddPane.SignalMastAddPaneProvider
extends Object
implements JmriServiceProviderInterface
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static Map<String,SignalMastAddPane.SignalMastAddPaneProvider> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final Collection<SignalMastAddPane.SignalMastAddPaneProvider>Get all available instances as anCollections.unmodifiableCollection(java.util.Collection<? extends T>)between the (localized) name and the pane.static final Map<String,SignalMastAddPane.SignalMastAddPaneProvider> Get all available instances as anCollections.unmodifiableMap(java.util.Map<? extends K, ? extends V>)between the (localized) name and the pane.abstract SignalMastAddPaneabstract StringbooleanIs this pane available, given the current configuration of the program?static final voidLoad all the available instances.
-
Field Details
-
instanceMap
-
-
Constructor Details
-
SignalMastAddPaneProvider
public SignalMastAddPaneProvider()
-
-
Method Details
-
isAvailable
Is this pane available, given the current configuration of the program? In other words, are all necessary managers and other objects present?- Returns:
- always true.
-
getPaneName
- Returns:
- Human-prefered name for type of signal mast, in local language
-
getNewPane
- Returns:
- A new instance of this SignalMastAddPane class
-
getInstancesMap
Get all available instances as anCollections.unmodifiableMap(java.util.Map<? extends K, ? extends V>)between the (localized) name and the pane. Note that this is a SortedMap in name order.- Returns:
- all instance map sorted in name order.
-
getInstancesCollection
public static final Collection<SignalMastAddPane.SignalMastAddPaneProvider> getInstancesCollection()Get all available instances as anCollections.unmodifiableCollection(java.util.Collection<? extends T>)between the (localized) name and the pane.- Returns:
- unmodifiable collection.
-
loadInstances
Load all the available instances. Note this only runs once; there's no reloading once the program is running.
-