Package jmri.util.swing.sdi
Class JmriJFrameInterface
- java.lang.Object
- 
- jmri.util.swing.sdi.JmriJFrameInterface
 
- 
- All Implemented Interfaces:
- WindowInterface
 
 public class JmriJFrameInterface extends java.lang.Object implements WindowInterface Display a JmriPanel in a JFrame of its own. Dispose() of a multi-instance panel is invoked when the containing window is fully closed via a listener installed here. Single instance (non-multi-instance) panels are cached and never disposed.- Since:
- 2.9.4
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface jmri.util.swing.WindowInterfaceWindowInterface.Hint
 
- 
 - 
Field SummaryFields Modifier and Type Field Description (package private) java.util.HashMap<JmriPanel,JmriJFrame>frames
 - 
Constructor SummaryConstructors Constructor Description JmriJFrameInterface()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()java.awt.FramegetFrame()Returns the WindowInterface as a Frame or null.booleanmultipleInstances()Create 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 Detail- 
framesjava.util.HashMap<JmriPanel,JmriJFrame> frames 
 
- 
 - 
Constructor Detail- 
JmriJFrameInterfacepublic JmriJFrameInterface() 
 
- 
 - 
Method Detail- 
showpublic void show(JmriPanel child, JmriAbstractAction act, WindowInterface.Hint hint) Description copied from interface:WindowInterfaceShow, in whatever way is appropriate, a specific JmriPanel, in a hinted location- Specified by:
- showin interface- WindowInterface
- Parameters:
- child- new JmriPanel to show
- act- JmriAbstractAction making the request
- hint- suggestion on where to put the content
 
 - 
showpublic void show(JmriPanel child, JmriAbstractAction act) Description copied from interface:WindowInterfaceShow, in whatever way is appropriate, a specific JmriPanel- Specified by:
- showin interface- WindowInterface
- Parameters:
- child- new JmriPanel to show
- act- JmriAbstractAction making the request
 
 - 
multipleInstancespublic boolean multipleInstances() Create new windows on each request- Specified by:
- multipleInstancesin interface- WindowInterface
- Returns:
- true if multiple instances should be provided, false if only one should be provided
 
 - 
disposepublic void dispose() - Specified by:
- disposein interface- WindowInterface
 
 - 
getFramepublic java.awt.Frame getFrame() Description copied from interface:WindowInterfaceReturns the WindowInterface as a Frame or null.- Specified by:
- getFramein interface- WindowInterface
- Returns:
- a Frame or null
 
 
- 
 
-