Package jmri.util.swing
Interface WindowInterface
-
- All Known Implementing Classes:
AbstractAudioFrame
,AbstractMonFrame
,AbstractPacketGenFrame
,AbstractRouteAddEditFrame
,AcelaMonFrame
,AcelaPacketGenFrame
,ActivateTrainFrame
,AddEditSingleLightControlFrame
,AddEntryExitPairFrame
,AddNodeFrame
,AddSignalMastJFrame
,AlignTableFrame
,AlternateTrackFrame
,AnalogClockFrame
,AppsLaunchFrame
,AssociateFrame
,AudioBufferFrame
,AudioListenerFrame
,AudioSourceFrame
,AudioTableFrame
,AutomationCopyFrame
,AutomationsTableFrame
,AutomationStartupFrame
,AutomationTableFrame
,AutomatTableFrame
,AutoTrainsFrame
,BeanTableFrame
,BlockBossFrame
,BlockPathEditFrame
,BuildReportOptionFrame
,CarAttributeEditFrame
,CarEditFrame
,CarLoadEditFrame
,CarSetFrame
,CarsSetFrame
,CarsTableFrame
,CbusEventHighlightFrame
,CbusFilterFrame
,CbusNodeEditEventFrame
,CbusNodeRestoreFcuFrame
,ChangeDepartureTimesFrame
,ChangeTrackFrame
,ChangeTracksFrame
,CircuitBuilder.CBFrame
,ClipboardEditor
,CMRInetManagerFrame
,CMRInetMetricsFrame
,ConditionalCopyFrame
,ConditionalEditFrame
,ConditionalFrame
,ConditionalNGDebugger
,ConditionalNGEditor
,ConfigBaseStationFrame
,ConsistToolFrame
,ControllerFilterFrame
,ControlPanelEditor
,CoordinateEdit
,DataSource
,DCCppMonFrame
,DebuggerFrame
,DecoderPro3Window
,DiagnosticFrame
,DispatcherFrame
,DisplayFrame
,DivisionEditFrame
,DmiFrame
,DrawCircle
,DrawEllipse
,DrawFrame
,DrawPolygon
,DrawRectangle
,DrawRoundRect
,DualDecoderSelectFrame
,EasyDccMonFrame
,EasyDccPacketGenFrame
,EditCircuitFrame
,EditCircuitPaths
,EditFrame
,EditManifestHeaderTextFrame
,EditManifestTextFrame
,EditNodeFrame
,Editor
,Editor.JFrameItem
,EditorFrame
,EditPortalDirection
,EditPortalFrame
,EditSignalFrame
,EditSwitchListTextFrame
,EngineAttributeEditFrame
,EngineEditFrame
,EngineSetFrame
,EnginesSetFrame
,EnginesTableFrame
,FollowerFrame
,HexFileFrame
,IconDialog
,IgnoreUsedTrackFrame
,ImageIndexEditor
,ImportLogixFrame
,IndicatorTOIconDialog
,InlineLogixNGsFrame
,InterchangeEditFrame
,ItemDialog
,ItemPalette
,JFrameInterface
,JmriJFrame
,JmriJFrameInterface
,JmriJFrameWithPermissions
,JmriJInternalFrameInterface
,JmriServerFrame
,JmriSRCPServerFrame
,LayoutEditor
,LccProFrame
,LccProWindow
,LcdClockFrame
,LearnThrottleFrame
,LI101Frame
,ListedTableFrame
,ListFrame
,ListFrame
,LIUSBConfigFrame
,LnTcpServerFrame
,LoaderFrame
,LocationCopyFrame
,LocationEditFrame
,LocationsByCarLoadFrame
,LocationsByCarTypeFrame
,LocationsTableFrame
,LocationTrackBlockingOrderFrame
,LogFrame
,LogixNGBrowseWindow
,LogixNGInitializationTable
,LV102Frame
,LZ100Frame
,LZV100Frame
,ManageLocationsFrame
,MastBuilderPane
,MdiMainFrame
,MemoryIconCoordinateEdit
,MeterFrame
,ModuleEditor
,MonitorFrame
,MultiPaneWindow
,MultiSensorIconDialog
,MultiSensorIconFrame
,NixieClockFrame
,NodeConfigFrame
,NodeConfigFrame
,NodeConfigFrame
,NodeConfigFrame
,NodeConfigFrame
,NodeConfigFrame
,NodeConfigManagerFrame
,NodeIOListFrame
,NodeSpecificFrame
,NodeTableFrame
,NXFrame
,OBlockTableFrame
,OperationsFrame
,OperationsSettingsFrame
,OptionFrame
,OsIndicatorFrame
,PacketGenFrame
,PacketGenFrame
,PacketGenFrame
,PacketGenFrame
,PacketGenFrame
,PacketGenFrame
,PacketGenFrame
,PacketGenFrame
,PacketTableFrame
,PanedInterface
,PanelEditor
,PanelProFrame
,PaneOpsProgFrame
,PaneProgFrame
,PaneServiceProgFrame
,PickFrame
,PollTableFrame
,PoolTrackFrame
,PortalEditFrame
,PowerPanelFrame
,PragotronClockFrame
,PreferencesFrame
,PrintCarRosterFrame
,PrintEngineRosterFrame
,PrintLocationsFrame
,PrintMoreOptionFrame
,PrintOptionFrame
,PrintTrainsFrame
,ProtocolOptionsFrame
,QsiMonFrame
,RenumberFrame
,ReportFrame
,RollingStockAttributeEditFrame
,RollingStockEditFrame
,RollingStockSetFrame
,RosterFrame
,RosterGroupTableFrame
,RouteAddFrame
,RouteBlockingOrderEditFrame
,RouteCopyFrame
,RouteEditFrame
,RouteEditFrame
,RoutesTableFrame
,RpsMonFrame
,RpsTrackingFrame
,ScheduleCopyFrame
,ScheduleEditFrame
,ScheduleOptionsFrame
,SchedulesAndStagingFrame
,SchedulesByLoadFrame
,SchedulesTableFrame
,SendPacketFrame
,SensorGroupFrame
,SensorTextEdit
,SerialFilterFrame
,SerialMonFrame
,SerialMonFrame
,SerialMonFrame
,SerialMonFrame
,SerialMonFrame
,SerialMonFrame
,SerialPacketGenFrame
,SerialPacketGenFrame
,SerialPacketGenFrame
,SerialPacketGenFrame
,SerialPacketGenFrame
,SerialPacketGenFrame
,SerialPacketGenFrame
,ServerFrame
,SetPhysicalLocationFrame
,SetTrainIconPositionFrame
,SetTrainIconRouteFrame
,SetupExcelProgramFrame
,SetupExcelProgramManifestFrame
,SetupExcelProgramSwitchListFrame
,ShowCarsInTrainFrame
,ShowRoutesServingLocationFrame
,ShowTrainsServingLocationFrame
,SignalEditFrame
,SignalHeadAddEditFrame
,SignalHeadIconDialog
,SignallingFrame
,SignallingSourceFrame
,SignalMastRepeaterJFrame
,SimpleClockFrame
,SimpleLightCtrlFrame
,SimpleProgFrame
,SimpleServerFrame
,SimpleTurnoutCtrlFrame
,SlipTurnoutTextEdit
,SoundSetFrame
,SpeedoConsoleFrame
,SpeedometerFrame
,SpeedProfileFrame
,SpeedProfileTable
,SprogCbusModeSwitcherFrame
,SprogCbusSimpleModeSwitcherFrame
,SprogCbusSprog3PlusModeSwitcherFrame
,SprogConsoleFrame
,SprogHexFile
,SprogIIUpdateFrame
,SprogMonFrame
,SprogPacketGenFrame
,SprogSlotMonFrame
,SprogUpdateFrame
,SprogVersionFrame
,SpurEditFrame
,StackMonFrame
,StagingEditFrame
,StatusFrame
,SwitchboardEditor
,SystemInfoFrame
,TabbedPreferencesFrame
,ThreePaneTLRWindow
,ThrottlesPreferencesWindow
,ThrottleWindow
,TieToolFrame
,TimeTableFrame
,TrackCopyFrame
,TrackDestinationEditFrame
,TrackEditCommentsFrame
,TrackEditFrame
,TrackerTableAction.TableFrame
,TrackLoadEditFrame
,TrackRoadEditFrame
,TrainByCarTypeFrame
,TrainConductorFrame
,TrainCopyFrame
,TrainEditBuildOptionsFrame
,TrainEditFrame
,TrainLoadOptionsFrame
,TrainManifestOptionFrame
,TrainRoadOptionsFrame
,TrainsByCarTypeFrame
,TrainScriptFrame
,TrainsScheduleEditFrame
,TrainsScheduleTableFrame
,TrainsScriptFrame
,TrainsTableFrame
,TrainsTableSetColorFrame
,TrainSwitchListEditFrame
,TrainSwitchListEditFrame.TrainSwitchListCommentFrame
,TreeEditor
,TreeFrame
,TreeViewer
,TwoPaneTBWindow
,UsbBrowserFrame
,UserInterface
,UserInterface
,VirtualLCDFrame
,VSDManagerFrame
,WarrantFrame
,WarrantRoute
,WarrantTableFrame
,WhereUsedFrame
,WhereUsedFrame
,XBeeAddNodeFrame
,XBeeEditNodeFrame
,XBeeNodeConfigFrame
,XpaConfigureFrame
,XpaPacketGenFrame
,YardEditFrame
,YardmasterByTrackFrame
,YardmasterFrame
,Z21ConfigFrame
public interface WindowInterface
Interface for an object that can arrange for aJmriPanel
to be displayed.Typically used by some component that wants to display a pane (for example, in an independent JmriJFrame or as part of a paned interface) to do some more stuff. Rather than have the component build its own window, etc it invokes one of these, so that the position and display of that component can be controlled.
Any
JmriAbstractAction
that uses the show() method will have its dispose() invoked when the associated frame goes away. It should dispose() any cached panes at that time.- Since:
- 2.9.4
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
WindowInterface.Hint
Suggested location for subsequent panels
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
dispose()
java.awt.Frame
getFrame()
Returns the WindowInterface as a Frame or null.boolean
multipleInstances()
Should 2nd and subsequent requests for a panel create a new instance, or provide the 1st one for reuse?void
show(JmriPanel child, JmriAbstractAction action)
Show, in whatever way is appropriate, a specific JmriPanelvoid
show(JmriPanel child, JmriAbstractAction action, WindowInterface.Hint hint)
Show, in whatever way is appropriate, a specific JmriPanel, in a hinted location
-
-
-
Method Detail
-
show
void show(JmriPanel child, JmriAbstractAction action)
Show, in whatever way is appropriate, a specific JmriPanel- Parameters:
child
- new JmriPanel to showaction
- JmriAbstractAction making the request
-
show
void show(JmriPanel child, JmriAbstractAction action, WindowInterface.Hint hint)
Show, in whatever way is appropriate, a specific JmriPanel, in a hinted location- Parameters:
child
- new JmriPanel to showaction
- JmriAbstractAction making the requesthint
- suggestion on where to put the content
-
multipleInstances
boolean multipleInstances()
Should 2nd and subsequent requests for a panel create a new instance, or provide the 1st one for reuse?- Returns:
- true if multiple instances should be provided, false if only one should be provided
-
dispose
void dispose()
-
getFrame
java.awt.Frame getFrame()
Returns the WindowInterface as a Frame or null.- Returns:
- a Frame or null
-
-