Class HubServiceMode.SysTrayWindowConfig

    • Field Detail

      • sysTray_

        private final SysTray sysTray_
      • showAct_

        private final javax.swing.Action showAct_
      • hideAct_

        private final javax.swing.Action hideAct_
      • showItem_

        private final java.awt.MenuItem showItem_
      • hideItem_

        private final java.awt.MenuItem hideItem_
      • exitItem_

        private final java.awt.MenuItem exitItem_
      • iconListener_

        private final java.awt.event.ActionListener iconListener_
      • trayIcon_

        private java.lang.Object trayIcon_
    • Constructor Detail

      • SysTrayWindowConfig

        SysTrayWindowConfig​(javax.swing.JFrame frame,
                            HubProfile[] profiles,
                            Hub[] runners,
                            GuiHubService hubService,
                            SysTray sysTray)
        Constructor.
        Parameters:
        frame - hub window
        profiles - hub profiles to run
        runners - 1-element array which will contain an associated hub runner object if one exists
        hubService - object providing hub services
        sysTray - system tray facade object
    • Method Detail

      • configureSysTray

        public void configureSysTray()
                              throws java.awt.AWTException
        Performs configuration.
        Throws:
        java.awt.AWTException
      • setWindowVisible

        private void setWindowVisible​(boolean isVis)
        Sets visibility for the hub control window, adjusting actions as appropriate.
        Parameters:
        isVis - true for visible, false for invisible
      • toMenuItem

        private java.awt.MenuItem toMenuItem​(javax.swing.Action act)
        Turns an action into an AWT menu item.
        Parameters:
        act - action
        Returns:
        MenuItem facade