Package org.astrogrid.samp.hub
Class HubServiceMode.BasicWindowConfig
- java.lang.Object
-
- org.astrogrid.samp.hub.HubServiceMode.BasicWindowConfig
-
- All Implemented Interfaces:
HubServiceMode.Tidier
- Direct Known Subclasses:
HubServiceMode.SysTrayWindowConfig
- Enclosing class:
- HubServiceMode
private static class HubServiceMode.BasicWindowConfig extends java.lang.Object implements HubServiceMode.Tidier
Class to configure a window for use as a hub control.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ConfigHubProfile[]configProfiles_(package private) javax.swing.ActionexitAct_(package private) javax.swing.JFrameframe_(package private) GuiHubServicehubService_(package private) HubServiceMode.ProfileToggler[]profileTogglers_(package private) Hub[]runners_
-
Constructor Summary
Constructors Constructor Description BasicWindowConfig(javax.swing.JFrame frame, HubProfile[] profiles, Hub[] runners, GuiHubService hubService)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureMenus()Configures menus on the window.voidconfigureWindow()Perform configuration of window.voidtidyGui()Performs any required tidying operations.
-
-
-
Field Detail
-
frame_
final javax.swing.JFrame frame_
-
runners_
final Hub[] runners_
-
hubService_
final GuiHubService hubService_
-
profileTogglers_
final HubServiceMode.ProfileToggler[] profileTogglers_
-
configProfiles_
final ConfigHubProfile[] configProfiles_
-
exitAct_
final javax.swing.Action exitAct_
-
-
Constructor Detail
-
BasicWindowConfig
BasicWindowConfig(javax.swing.JFrame frame, HubProfile[] profiles, Hub[] runners, GuiHubService hubService)Constructor.- Parameters:
frame- hub windowprofiles- hub profiles to runrunners- 1-element array which will contain an associated hub runner object if one existshubService- object providing hub services
-
-
Method Detail
-
configureWindow
public void configureWindow()
Perform configuration of window.
-
configureMenus
protected void configureMenus()
Configures menus on the window. Invoked by configureWindow.
-
tidyGui
public void tidyGui()
Description copied from interface:HubServiceMode.TidierPerforms any required tidying operations. May be assumed to be called on the AWT Event Dispatch Thread.- Specified by:
tidyGuiin interfaceHubServiceMode.Tidier
-
-