Package jmri.jmrix.loconet.swing
Class LocoNetMenuItem
java.lang.Object
jmri.jmrix.loconet.swing.LocoNetMenuItem
A LocoNet Menu item.
-
Constructor Summary
ConstructorsConstructorDescriptionLocoNetMenuItem(String name, Class<T> load, boolean interfaceOnly, boolean hasGui) Construct a Menu Item for all LocoNet-specific connection menu(s). -
Method Summary
-
Constructor Details
-
LocoNetMenuItem
Construct a Menu Item for all LocoNet-specific connection menu(s).- Type Parameters:
T- Type of class to be executed upon activation of the menu item- Parameters:
name- Text to be shown in the menu itemload- class to be constructed upon selection of the menu iteminterfaceOnly- true if menu item is to be shown only for JMRI connections having a physical interface, else falsehasGui- true if the menu item has a GUI object which must be associated with the main JMRI Window Interface, else false
-
-
Method Details
-
isInterfaceOnly
-
getName
-
getClassToLoad
-
hasGui
-