Class FrmTUL

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class FrmTUL extends JFrame
See Also:
  • Constructor Details

  • Method Details

    • closedNormally

      public boolean closedNormally()
    • dialogCodeButtonHandlerDataValid

      public static boolean dialogCodeButtonHandlerDataValid(CheckJMRIObject checkJMRIObject, CodeButtonHandlerData codeButtonHandlerData)
    • populateJComboBox

      public void populateJComboBox(JComboBox<String> jComboBox, HashSet<String> populateWith, String currentSelection)
      This is a DIRECT plagiarization of Dave Sands CommonSubs.populateJComboBoxWithBeans, repurposed to support what is needed specifically by Turnout Locking. It does not have the flexibility of the original routine, since thats not needed. (see "_mIgnoreActionEvent", since I don't know of another way to do it). Populate a combo box with bean names using getDisplayName().

      If a panel xml file has not been loaded, the combo box will behave as a text field (editable), otherwise it will behave as standard combo box (not editable).

      Parameters:
      jComboBox - The string based combo box to be populated.
      populateWith - A hash set that needs to be sorted first, to populate the drop down list with.
      currentSelection - The current item to be selected, none if null.