|
||||||||||
| 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
apps.Apps
public class Apps
Base class for Jmri applications.
| 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.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected static String |
configFilename
|
protected static boolean |
configOK
|
protected static String |
ignore
|
protected static boolean |
log4JSetUp
|
protected static AppConfigPanel |
prefs
|
protected static JmriJFrame |
prefsFrame
|
protected static ResourceBundle |
rb
|
| 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 | |
|---|---|
Apps(JFrame frame)
|
|
| Method Summary | |
|---|---|
protected void |
buildLine4(JPanel pane2)
|
protected void |
buildLine5(JPanel pane2)
|
protected void |
buildLine5a(JPanel pane2)
|
protected void |
buildLine5b(JPanel pane2)
|
static JComponent |
buttonSpace()
Provide access to a place where applications can expect the configurion code to build run-time buttons. |
protected static void |
createFrame(Apps containedPane,
JFrame frame)
|
protected void |
createMenus(JMenuBar menuBar,
JFrame frame)
Create default menubar. |
protected void |
debugMenu(JMenuBar menuBar,
JFrame frame)
|
protected void |
developmentMenu(JMenuBar menuBar,
JFrame frame)
|
protected void |
doPreferences()
|
protected void |
editMenu(JMenuBar menuBar,
JFrame frame)
|
protected void |
fileMenu(JMenuBar menuBar,
JFrame frame)
|
static String |
getConnection1()
|
static String |
getConnection2()
|
static String |
getConnection3()
|
static String |
getConnection4()
|
static AppConfigPanel |
getPrefs()
|
static void |
handleQuit()
The application decided to quit, handle that. |
protected void |
helpMenu(JMenuBar menuBar,
JFrame frame)
|
protected static void |
initLog4J()
|
protected String |
line1()
|
protected String |
line2()
|
protected String |
line3()
|
protected String |
line6()
|
protected String |
line7()
|
protected static void |
loadFile(String name)
|
protected String |
logo()
|
protected String |
mainWindowHelpID()
Returns the ID for the main window's help, which is application specific |
protected void |
operationsMenu(JMenuBar menuBar,
JFrame frame)
|
protected void |
panelMenu(JMenuBar menuBar,
JFrame frame)
|
void |
propertyChange(PropertyChangeEvent ev)
|
protected void |
rosterMenu(JMenuBar menuBar,
JFrame frame)
|
protected void |
scriptMenu(JMenuBar menuBar,
JFrame frame)
|
protected void |
setButtonSpace()
Prepare the JPanel to contain buttons in the startup GUI. |
protected static void |
setConfigFilename(String def,
String[] args)
Set up the configuration file name at startup. |
protected void |
setPrefsFrameHelp(JmriJFrame f,
String l)
Set the location of the window-specific help for the preferences pane. |
protected void |
setResourceBundle()
|
protected static void |
splash(boolean show)
|
static String |
startupInfo(String program)
|
protected JPanel |
statusPanel()
Fill in the logo and status panel |
protected void |
systemsMenu(JMenuBar menuBar,
JFrame frame)
Show only active systems in the menu bar. |
protected void |
toolsMenu(JMenuBar menuBar,
JFrame frame)
|
protected void |
updateLine4()
|
protected void |
updateLine5()
|
protected void |
updateLine5a()
|
protected void |
updateLine5b()
|
void |
windowActivated(WindowEvent e)
|
void |
windowClosed(WindowEvent e)
|
void |
windowClosing(WindowEvent e)
Closing the main window is a shutdown request |
void |
windowDeactivated(WindowEvent e)
|
void |
windowDeiconified(WindowEvent e)
|
void |
windowIconified(WindowEvent e)
|
void |
windowOpened(WindowEvent e)
|
| 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 |
| Field Detail |
|---|
protected static JmriJFrame prefsFrame
protected static ResourceBundle rb
protected static AppConfigPanel prefs
protected static boolean log4JSetUp
protected static String configFilename
protected static boolean configOK
protected static String ignore
| Constructor Detail |
|---|
public Apps(JFrame frame)
| Method Detail |
|---|
protected void setButtonSpace()
protected void setResourceBundle()
protected void createMenus(JMenuBar menuBar,
JFrame frame)
This does not include the development menu.
menuBar - frame -
protected void fileMenu(JMenuBar menuBar,
JFrame frame)
protected void doPreferences()
protected void setPrefsFrameHelp(JmriJFrame f,
String l)
protected void editMenu(JMenuBar menuBar,
JFrame frame)
protected void toolsMenu(JMenuBar menuBar,
JFrame frame)
protected void operationsMenu(JMenuBar menuBar,
JFrame frame)
protected void rosterMenu(JMenuBar menuBar,
JFrame frame)
protected void panelMenu(JMenuBar menuBar,
JFrame frame)
protected void systemsMenu(JMenuBar menuBar,
JFrame frame)
Alternately, you might want to do
menuBar.add(new jmri.jmrix.SystemsMenu());
menuBar - frame -
protected void debugMenu(JMenuBar menuBar,
JFrame frame)
protected void scriptMenu(JMenuBar menuBar,
JFrame frame)
protected void developmentMenu(JMenuBar menuBar,
JFrame frame)
protected void helpMenu(JMenuBar menuBar,
JFrame frame)
protected String mainWindowHelpID()
protected String line1()
protected String line2()
protected String line3()
protected void buildLine4(JPanel pane2)
protected void updateLine4()
protected void buildLine5(JPanel pane2)
protected void updateLine5()
protected void buildLine5a(JPanel pane2)
protected void updateLine5a()
protected void buildLine5b(JPanel pane2)
protected void updateLine5b()
protected String line6()
protected String line7()
protected String logo()
protected JPanel statusPanel()
public void windowClosing(WindowEvent e)
windowClosing in interface WindowListenerpublic void windowActivated(WindowEvent e)
windowActivated in interface WindowListenerpublic void windowClosed(WindowEvent e)
windowClosed in interface WindowListenerpublic void windowDeactivated(WindowEvent e)
windowDeactivated in interface WindowListenerpublic void windowDeiconified(WindowEvent e)
windowDeiconified in interface WindowListenerpublic void windowIconified(WindowEvent e)
windowIconified in interface WindowListenerpublic void windowOpened(WindowEvent e)
windowOpened in interface WindowListenerpublic static JComponent buttonSpace()
CreateButtonPanelpublic static AppConfigPanel getPrefs()
public static String getConnection1()
public static String getConnection2()
public static String getConnection3()
public static String getConnection4()
protected static void splash(boolean show)
public static void handleQuit()
protected static void initLog4J()
protected static void setConfigFilename(String def,
String[] args)
The static configFilename variable holds the name used to load the configuration file during later startup processing. Applications invoke this method to handle the usual startup hierarchy:
def - Default value if no other is providedargs - Argument array from the main routine
protected static void createFrame(Apps containedPane,
JFrame frame)
protected static void loadFile(String name)