|
||||||||||
| 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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
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 |
addToActionModel()
|
protected void |
buildLine(int number,
JLabel cs,
JPanel pane)
|
protected void |
buildLine4(JPanel pane)
|
protected void |
buildLine5(JPanel pane)
|
protected void |
buildLine6(JPanel pane)
|
protected void |
buildLine7(JPanel pane)
|
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)
|
void |
doPreferences()
|
protected void |
editMenu(JMenuBar menuBar,
JFrame frame)
|
protected void |
fileMenu(JMenuBar menuBar,
JFrame frame)
|
static String |
getConfigFileName()
|
static String |
getConnection1()
|
static String |
getConnection2()
|
static String |
getConnection3()
|
static String |
getConnection4()
|
static AppConfigBase |
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 |
line8()
|
protected String |
line9()
|
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 static void |
setApplication(String name)
|
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 static void |
setJmriSystemProperty(String key,
String value)
|
protected void |
setJynstrumentSpace()
|
protected void |
setPrefsFrameHelp(JmriJFrame f,
String l)
Set the location of the window-specific help for the preferences pane. |
protected static void |
splash(boolean show)
|
protected static void |
splash(boolean show,
boolean debug)
|
protected static JPanel |
splashDebugMsg()
|
protected static void |
startupDebug()
|
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 |
updateLine(int number,
JLabel cs)
|
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)
|
static void |
ynstrument(String path)
|
| 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 final ResourceBundle rb
| Constructor Detail |
|---|
public Apps(JFrame frame)
| Method Detail |
|---|
protected void addToActionModel()
protected void setButtonSpace()
protected void setJynstrumentSpace()
public static void ynstrument(String path)
protected void createMenus(JMenuBar menuBar,
JFrame frame)
This does not include the development menu.
menuBar - frame -
protected void fileMenu(JMenuBar menuBar,
JFrame frame)
public 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 pane)
protected void buildLine5(JPanel pane)
protected void buildLine6(JPanel pane)
protected void buildLine7(JPanel pane)
protected void buildLine(int number,
JLabel cs,
JPanel pane)
protected void updateLine(int number,
JLabel cs)
protected String line8()
protected String line9()
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 WindowListener
protected static void setJmriSystemProperty(String key,
String value)
public static JComponent buttonSpace()
CreateButtonPanelpublic static AppConfigBase getPrefs()
public static String getConnection1()
public static String getConnection2()
public static String getConnection3()
public static String getConnection4()
protected static void splash(boolean show)
protected static void splash(boolean show,
boolean debug)
protected static JPanel splashDebugMsg()
protected static void startupDebug()
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 routinepublic static String getConfigFileName()
protected static void createFrame(Apps containedPane,
JFrame frame)
protected static void loadFile(String name)
public static String startupInfo(String program)
protected static void setApplication(String name)
public void propertyChange(PropertyChangeEvent ev)
propertyChange in interface PropertyChangeListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||