|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WindowInterface
Interface for an object that can arrange for a
JmriPanel to be displayed.
Typically used by some component that wants to display a pane (e.g. in an independent JmriJFrame or as part of a paned interface) to do some more stuff. Rather than have the component build it's own window, etc it invokes one of these, so that the position and display of that component can 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.
| Nested Class Summary | |
|---|---|
static class |
WindowInterface.Hint
Suggested location for subsequent panels |
| Method Summary | |
|---|---|
void |
dispose()
|
boolean |
multipleInstances()
Should 2nd and subsequent requests for a panel (e.g. in an Action) 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 JmriPanel |
void |
show(JmriPanel child,
JmriAbstractAction action,
WindowInterface.Hint hint)
Show, in whatever way is appropriate, a specific JmriPanel |
| Method Detail |
|---|
void show(JmriPanel child,
JmriAbstractAction action)
child - new JmriPanel to showaction - JmriAbstractAction making the request
void show(JmriPanel child,
JmriAbstractAction action,
WindowInterface.Hint hint)
child - new JmriPanel to showaction - JmriAbstractAction making the requesthint - suggestion on where to put the contentboolean multipleInstances()
void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||