|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
jmri.util.swing.JmriPanel
public class JmriPanel
JPanel extension to handle automatic creation of window title and help reference.
For use with JmriAbstractAction
or preferably JmriNamedPaneAction.
The expected initialization sequence is:
A WindowInterface property is provided for use
when the JmriPanel's controller logic wants to
pop a subwindow.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JmriPanel()
|
|
| Method Summary | |
|---|---|
void |
dispose()
|
String |
getHelpTarget()
Provide a help target string which an enclosing frame can provide as a help reference. |
List<JMenu> |
getMenus()
Provide menu items |
String |
getTitle()
Provide a recommended title for an enclosing frame. |
WindowInterface |
getWindowInterface()
|
void |
initComponents()
2nd stage of initialization, invoked after the constuctor is complete. |
void |
initContext(Object context)
3rd stage of initialization, invoked after Swing components exist. |
boolean |
isMultipleInstances()
Can multiple instances of a specific pane subclass exist? |
void |
setWindowInterface(WindowInterface w)
|
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JmriPanel()
| Method Detail |
|---|
public String getHelpTarget()
This automatically provides a reference to the usual place for JMRI window-specific help pages that are named for the implementing class, but note this is a Pane class, not a Frame class.
public String getTitle()
public boolean isMultipleInstances()
public List<JMenu> getMenus()
public WindowInterface getWindowInterface()
public void setWindowInterface(WindowInterface w)
public void initComponents()
throws Exception
Exception
public void initContext(Object context)
throws Exception
Exceptionpublic void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||