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 java.lang.Object implements JmriServiceProviderInterface
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.util.Map<java.lang.String,SignalMastAddPane.SignalMastAddPaneProvider>
instanceMap
-
Constructor Summary
Constructors Constructor Description SignalMastAddPaneProvider()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static java.util.Collection<SignalMastAddPane.SignalMastAddPaneProvider>
getInstancesCollection()
Get all available instances as anCollections.unmodifiableCollection(java.util.Collection<? extends T>)
between the (localized) name and the pane.static java.util.Map<java.lang.String,SignalMastAddPane.SignalMastAddPaneProvider>
getInstancesMap()
Get all available instances as anCollections.unmodifiableMap(java.util.Map<? extends K, ? extends V>)
between the (localized) name and the pane.abstract SignalMastAddPane
getNewPane()
abstract java.lang.String
getPaneName()
boolean
isAvailable()
Is this pane available, given the current configuration of the program?static void
loadInstances()
Load all the available instances.
-
-
-
Field Detail
-
instanceMap
static volatile java.util.Map<java.lang.String,SignalMastAddPane.SignalMastAddPaneProvider> instanceMap
-
-
Constructor Detail
-
SignalMastAddPaneProvider
public SignalMastAddPaneProvider()
-
-
Method Detail
-
isAvailable
public boolean 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
@Nonnull public abstract java.lang.String getPaneName()
- Returns:
- Human-prefered name for type of signal mast, in local language
-
getNewPane
@Nonnull public abstract SignalMastAddPane getNewPane()
- Returns:
- A new instance of this SignalMastAddPane class
-
getInstancesMap
public static final java.util.Map<java.lang.String,SignalMastAddPane.SignalMastAddPaneProvider> 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 java.util.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
public static final void loadInstances()
Load all the available instances. Note this only runs once; there's no reloading once the program is running.
-
-