Package jmri.util.swing.multipane
Class PanedInterface
- java.lang.Object
-
- jmri.util.swing.multipane.PanedInterface
-
- All Implemented Interfaces:
WindowInterface
public class PanedInterface extends java.lang.Object implements WindowInterface
Display a JComponent in a specific paned window.- 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) java.util.HashSet<JmriAbstractAction>
actions
(package private) MultiPaneWindow
frame
-
Constructor Summary
Constructors Constructor Description PanedInterface(MultiPaneWindow frame)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Dispose when associated window is completejava.awt.Frame
getFrame()
Returns the WindowInterface as a Frame or null.boolean
multipleInstances()
Return the same instance for multiple requestsvoid
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
-
frame
MultiPaneWindow frame
-
actions
java.util.HashSet<JmriAbstractAction> actions
-
-
Constructor Detail
-
PanedInterface
public PanedInterface(MultiPaneWindow frame)
-
-
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
-
multipleInstances
public boolean multipleInstances()
Return the same instance for multiple requests- Specified by:
multipleInstances
in interfaceWindowInterface
- Returns:
- true if multiple instances should be provided, false if only one should be provided
-
dispose
public void dispose()
Dispose when associated window is complete- Specified by:
dispose
in interfaceWindowInterface
-
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
-
-