Package jmri.util.swing.mdi
Class JmriJInternalFrameInterface
java.lang.Object
jmri.util.swing.mdi.JmriJInternalFrameInterface
- All Implemented Interfaces:
WindowInterface
Display a JmriPanel in a JInternalFrame of its own.
Dispose() of the panel is invoked when the containing window is fully closed
via a listener installed here.
- Since:
- 2.9.4
-
Nested Class Summary
Nested classes/interfaces inherited from interface jmri.util.swing.WindowInterface
WindowInterface.Hint -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()getFrame()Returns the WindowInterface as a Frame or null.booleanCreate new windows on each requestvoidshow(JmriPanel child, JmriAbstractAction act) Show, in whatever way is appropriate, a specific JmriPanelvoidshow(JmriPanel child, JmriAbstractAction act, WindowInterface.Hint hint) Show, in whatever way is appropriate, a specific JmriPanel, in a hinted location
-
Field Details
-
desktop
-
mainFrame
-
-
Constructor Details
-
JmriJInternalFrameInterface
-
-
Method Details
-
show
Description copied from interface:WindowInterfaceShow, in whatever way is appropriate, a specific JmriPanel, in a hinted location- Specified by:
showin interfaceWindowInterface- Parameters:
child- new JmriPanel to showact- JmriAbstractAction making the requesthint- suggestion on where to put the content
-
show
Description copied from interface:WindowInterfaceShow, in whatever way is appropriate, a specific JmriPanel- Specified by:
showin interfaceWindowInterface- Parameters:
child- new JmriPanel to showact- JmriAbstractAction making the request
-
dispose
- Specified by:
disposein interfaceWindowInterface
-
multipleInstances
Create new windows on each request- Specified by:
multipleInstancesin interfaceWindowInterface- Returns:
- true if multiple instances should be provided, false if only one should be provided
-
getFrame
Description copied from interface:WindowInterfaceReturns the WindowInterface as a Frame or null.- Specified by:
getFramein interfaceWindowInterface- Returns:
- a Frame or null
-