|
||||||||||
| 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 | |
|---|---|
(package private) static JComponent |
_buttonSpace
|
(package private) static JComponent |
_jynstrumentSpace
|
protected static boolean |
configDeferredLoadOK
|
(package private) static String |
configFilename
|
protected static boolean |
configOK
|
(package private) ConnectionConfig[] |
connection
|
(package private) JLabel |
cs4
|
(package private) JLabel |
cs5
|
(package private) JLabel |
cs6
|
(package private) JLabel |
cs7
|
(package private) static boolean |
debugFired
|
(package private) static AWTEventListener |
debugListener
|
(package private) static boolean |
debugmsg
|
(package private) static org.slf4j.Logger |
log
|
(package private) static boolean |
log4JSetUp
|
(package private) static String |
nameString
|
(package private) static AppConfigBase |
prefs
|
(package private) Action |
prefsAction
|
protected static ResourceBundle |
rb
|
(package private) static SplashWindow |
sp
|
| 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(ConnectionConfig conn,
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 configuration code to build run-time buttons. |
protected static void |
createFrame(Apps containedPane,
JFrame frame)
|
protected void |
createMenus(JMenuBar menuBar,
WindowInterface wi)
Create default menubar. |
protected void |
debugMenu(JMenuBar menuBar,
WindowInterface wi)
|
protected void |
developmentMenu(JMenuBar menuBar,
WindowInterface wi)
|
void |
doPreferences()
|
protected void |
editMenu(JMenuBar menuBar,
WindowInterface wi)
|
protected void |
fileMenu(JMenuBar menuBar,
WindowInterface wi)
|
static String |
getConfigFileName()
|
static String |
getConnection1()
Deprecated. as of 2.13.3, directly access the connection configuration from the instance list jmri.InstanceManager.configureManagerInstance().getInstanceList(jmri.jmrix.ConnectionConfig.class) |
static String |
getConnection2()
Deprecated. as of 2.13.3, directly access the connection configuration from the instance list jmri.InstanceManager.configureManagerInstance().getInstanceList(jmri.jmrix.ConnectionConfig.class) |
static String |
getConnection3()
Deprecated. as of 2.13.3, directly access the connection configuration from the instance list jmri.InstanceManager.configureManagerInstance().getInstanceList(jmri.jmrix.ConnectionConfig.class) |
static String |
getConnection4()
Deprecated. as of 2.13.3, directly access the connection configuration from the instance list jmri.InstanceManager.configureManagerInstance().getInstanceList(jmri.jmrix.ConnectionConfig.class) |
static AppConfigBase |
getPrefs()
|
static Boolean |
handleQuit()
The application decided to quit, handle that. |
static Boolean |
handleRestart()
The application decided to restart, handle that. |
protected void |
helpMenu(JMenuBar menuBar,
WindowInterface wi)
|
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,
WindowInterface wi)
|
protected void |
panelMenu(JMenuBar menuBar,
WindowInterface wi)
|
void |
propertyChange(PropertyChangeEvent ev)
|
protected void |
rosterMenu(JMenuBar menuBar,
WindowInterface wi)
|
protected void |
scriptMenu(JMenuBar menuBar,
WindowInterface wi)
|
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,
WindowInterface wi)
Show only active systems in the menu bar. |
protected void |
toolsMenu(JMenuBar menuBar,
WindowInterface wi)
|
protected void |
updateLine(ConnectionConfig conn,
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 |
|---|
static JComponent _jynstrumentSpace
Action prefsAction
JLabel cs4
JLabel cs5
JLabel cs6
JLabel cs7
ConnectionConfig[] connection
static JComponent _buttonSpace
protected static ResourceBundle rb
static AppConfigBase prefs
static SplashWindow sp
static AWTEventListener debugListener
static boolean debugFired
static boolean debugmsg
static boolean log4JSetUp
static String configFilename
protected static boolean configOK
protected static boolean configDeferredLoadOK
static String nameString
static org.slf4j.Logger log
| Constructor Detail |
|---|
public Apps(JFrame frame)
| Method Detail |
|---|
protected final void addToActionModel()
protected void setButtonSpace()
protected void setJynstrumentSpace()
public static void ynstrument(String path)
protected void createMenus(JMenuBar menuBar,
WindowInterface wi)
This does not include the development menu.
menuBar - wi -
protected void fileMenu(JMenuBar menuBar,
WindowInterface wi)
public void doPreferences()
protected void setPrefsFrameHelp(JmriJFrame f,
String l)
protected void editMenu(JMenuBar menuBar,
WindowInterface wi)
protected void toolsMenu(JMenuBar menuBar,
WindowInterface wi)
protected void operationsMenu(JMenuBar menuBar,
WindowInterface wi)
protected void rosterMenu(JMenuBar menuBar,
WindowInterface wi)
protected void panelMenu(JMenuBar menuBar,
WindowInterface wi)
protected void systemsMenu(JMenuBar menuBar,
WindowInterface wi)
Alternately, you might want to do
menuBar.add(new jmri.jmrix.SystemsMenu());
menuBar - wi -
protected void debugMenu(JMenuBar menuBar,
WindowInterface wi)
protected void scriptMenu(JMenuBar menuBar,
WindowInterface wi)
protected void developmentMenu(JMenuBar menuBar,
WindowInterface wi)
protected void helpMenu(JMenuBar menuBar,
WindowInterface wi)
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(ConnectionConfig conn,
JLabel cs,
JPanel pane)
protected void updateLine(ConnectionConfig conn,
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()
@Deprecated public static String getConnection1()
@Deprecated public static String getConnection2()
@Deprecated public static String getConnection3()
@Deprecated 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 Boolean handleQuit()
public static Boolean handleRestart()
protected static void initLog4J()
protected static void setConfigFilename(String def,
String[] args)
The Configuration File name 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 | |||||||||