Package jmri.jmrix.loconet.swing
Class LocoNetMenuItem
- java.lang.Object
-
- jmri.jmrix.loconet.swing.LocoNetMenuItem
-
public class LocoNetMenuItem extends java.lang.Object
A LocoNet Menu item.
-
-
Constructor Summary
Constructors Constructor Description LocoNetMenuItem(java.lang.String name, java.lang.Class<T> load, boolean interfaceOnly, boolean hasGui)
Construct a Menu Item for all LocoNet-specific connection menu(s).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getClassToLoad()
java.lang.String
getName()
boolean
hasGui()
boolean
isInterfaceOnly()
-
-
-
Constructor Detail
-
LocoNetMenuItem
public LocoNetMenuItem(java.lang.String name, java.lang.Class<T> load, boolean interfaceOnly, boolean hasGui)
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 Detail
-
isInterfaceOnly
public boolean isInterfaceOnly()
-
getName
public java.lang.String getName()
-
getClassToLoad
public java.lang.Class<?> getClassToLoad()
-
hasGui
public boolean hasGui()
-
-