Class LocoNetMenuItem

java.lang.Object
jmri.jmrix.loconet.swing.LocoNetMenuItem

public class LocoNetMenuItem extends Object
A LocoNet Menu item.
  • Constructor Details

    • LocoNetMenuItem

      public LocoNetMenuItem(String name, 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
  • Method Details