Package jmri.util.swing.mdi
Class JmriJInternalFrameInterface
- java.lang.Object
-
- jmri.util.swing.mdi.JmriJInternalFrameInterface
-
- All Implemented Interfaces:
WindowInterface
public class JmriJInternalFrameInterface extends java.lang.Object implements 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 Modifier and Type Field Description (package private) javax.swing.JDesktopPane
desktop
(package private) JmriJFrame
mainFrame
-
Constructor Summary
Constructors Constructor Description JmriJInternalFrameInterface(JmriJFrame mainFrame, javax.swing.JDesktopPane desktop)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
java.awt.Frame
getFrame()
Returns the WindowInterface as a Frame or null.boolean
multipleInstances()
Create new windows on each requestvoid
show(JmriPanel child, JmriAbstractAction act)
Show, in whatever way is appropriate, a specific JmriPanelvoid
show(JmriPanel child, JmriAbstractAction act, WindowInterface.Hint hint)
Show, in whatever way is appropriate, a specific JmriPanel, in a hinted location
-
-
-
Field Detail
-
desktop
javax.swing.JDesktopPane desktop
-
mainFrame
JmriJFrame mainFrame
-
-
Constructor Detail
-
JmriJInternalFrameInterface
public JmriJInternalFrameInterface(JmriJFrame mainFrame, javax.swing.JDesktopPane desktop)
-
-
Method Detail
-
show
public void show(JmriPanel child, JmriAbstractAction act, WindowInterface.Hint hint)
Description copied from interface:WindowInterface
Show, in whatever way is appropriate, a specific JmriPanel, in a hinted location- Specified by:
show
in interfaceWindowInterface
- Parameters:
child
- new JmriPanel to showact
- JmriAbstractAction making the requesthint
- suggestion on where to put the content
-
show
public void show(JmriPanel child, JmriAbstractAction act)
Description copied from interface:WindowInterface
Show, in whatever way is appropriate, a specific JmriPanel- Specified by:
show
in interfaceWindowInterface
- Parameters:
child
- new JmriPanel to showact
- JmriAbstractAction making the request
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceWindowInterface
-
multipleInstances
public boolean multipleInstances()
Create new windows on each request- Specified by:
multipleInstances
in interfaceWindowInterface
- Returns:
- true if multiple instances should be provided, false if only one should be provided
-
getFrame
public java.awt.Frame getFrame()
Description copied from interface:WindowInterface
Returns the WindowInterface as a Frame or null.- Specified by:
getFrame
in interfaceWindowInterface
- Returns:
- a Frame or null
-
-