Package jmri.jmrit.throttle
Class ThrottleFrameManager
- java.lang.Object
- 
- jmri.jmrit.throttle.ThrottleFrameManager
 
- 
- All Implemented Interfaces:
- InstanceManagerAutoDefault
 
 public class ThrottleFrameManager extends java.lang.Object implements InstanceManagerAutoDefault Interface for allocating and deallocating throttles frames. Not to be confused with ThrottleManager.
- 
- 
Constructor SummaryConstructors Constructor Description ThrottleFrameManager()Constructor for the ThrottleFrameManager object.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyPreferences()ThrottleFramecreateThrottleFrame()Tell this manager that a new ThrottleFrame was created.ThrottleFramecreateThrottleFrame(ConnectionConfig connectionConfig)Tell this manager that a new ThrottleFrame was created.ThrottleWindowcreateThrottleWindow()Tell this manager that a new ThrottleWindow was created.ThrottleWindowcreateThrottleWindow(ConnectionConfig connectionConfig)Tell this manager that a new ThrottleWindow was created.ThrottleWindowcreateThrottleWindow(org.jdom2.Element e)Tell this manager that a new ThrottleWindow was created.ThrottleWindowgetCurrentThrottleFrame()intgetNumberThrottleWindows()ThrottlesListPanelgetThrottlesListPanel()java.util.Iterator<ThrottleWindow>getThrottleWindows()Retrieve an Iterator over all the ThrottleFrames in existence.voidrequestAllThrottleWindowsDestroyed()voidrequestFocusForNextThrottleWindow()voidrequestFocusForPreviousThrottleWindow()voidrequestThrottleWindowDestruction(ThrottleWindow frame)Request that this manager destroy a throttle frame.voidshowThrottlesList()voidshowThrottlesPreferences()
 
- 
- 
- 
Constructor Detail- 
ThrottleFrameManagerpublic ThrottleFrameManager() Constructor for the ThrottleFrameManager object.
 
- 
 - 
Method Detail- 
createThrottleWindowpublic ThrottleWindow createThrottleWindow() Tell this manager that a new ThrottleWindow was created.- Returns:
- The newly created ThrottleWindow
 
 - 
createThrottleWindowpublic ThrottleWindow createThrottleWindow(ConnectionConfig connectionConfig) Tell this manager that a new ThrottleWindow was created.- Parameters:
- connectionConfig- the connection config
- Returns:
- The newly created ThrottleWindow
 
 - 
createThrottleWindowpublic ThrottleWindow createThrottleWindow(org.jdom2.Element e) Tell this manager that a new ThrottleWindow was created.- Parameters:
- e- the xml element for the throttle window
- Returns:
- The newly created ThrottleWindow
 
 - 
createThrottleFramepublic ThrottleFrame createThrottleFrame() Tell this manager that a new ThrottleFrame was created.- Returns:
- The newly created ThrottleFrame
 
 - 
createThrottleFramepublic ThrottleFrame createThrottleFrame(ConnectionConfig connectionConfig) Tell this manager that a new ThrottleFrame was created.- Parameters:
- connectionConfig- the connection config
- Returns:
- The newly created ThrottleFrame
 
 - 
requestThrottleWindowDestructionpublic void requestThrottleWindowDestruction(ThrottleWindow frame) Request that this manager destroy a throttle frame.- Parameters:
- frame- The to-be-destroyed ThrottleFrame
 
 - 
requestAllThrottleWindowsDestroyedpublic void requestAllThrottleWindowsDestroyed() 
 - 
getThrottleWindowspublic java.util.Iterator<ThrottleWindow> getThrottleWindows() Retrieve an Iterator over all the ThrottleFrames in existence.- Returns:
- The Iterator on the list of ThrottleFrames.
 
 - 
getNumberThrottleWindowspublic int getNumberThrottleWindows() 
 - 
requestFocusForNextThrottleWindowpublic void requestFocusForNextThrottleWindow() 
 - 
requestFocusForPreviousThrottleWindowpublic void requestFocusForPreviousThrottleWindow() 
 - 
getCurrentThrottleFramepublic ThrottleWindow getCurrentThrottleFrame() 
 - 
getThrottlesListPanelpublic ThrottlesListPanel getThrottlesListPanel() 
 - 
showThrottlesListpublic void showThrottlesList() 
 - 
showThrottlesPreferencespublic void showThrottlesPreferences() 
 - 
applyPreferencespublic void applyPreferences() 
 
- 
 
-