Class 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).
    • 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 item
        load - class to be constructed upon selection of the menu item
        interfaceOnly - true if menu item is to be shown only for JMRI connections having a physical interface, else false
        hasGui - true if the menu item has a GUI object which must be associated with the main JMRI Window Interface, else false