Class ImportCommon
- java.lang.Object
-
- java.lang.Thread
-
- jmri.jmrit.operations.rollingstock.ImportCommon
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
ImportCars
,ImportEngines
,ImportLocations
,ImportRoutes
public abstract class ImportCommon extends java.lang.Thread
Provides common routes for importing cars and locomotives
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String[]
BREAK
protected JmriJFrame
fstatus
protected javax.swing.JLabel
importLine
protected boolean
importOkay
protected int
lineNum
protected javax.swing.JLabel
lineNumber
protected static java.lang.String
LOCATION_TRACK_SEPARATOR
protected static java.lang.String
NEW_LINE
-
Constructor Summary
Constructors Constructor Description ImportCommon()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createStatusFrame(java.lang.String title)
protected java.io.BufferedReader
getBufferedReader(java.io.File file)
protected java.io.File
getFile()
protected java.lang.String[]
parseCommaLine(java.lang.String line)
protected java.lang.String[]
readNextLine(java.io.BufferedReader rdr)
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
NEW_LINE
protected static final java.lang.String NEW_LINE
- See Also:
- Constant Field Values
-
lineNumber
protected javax.swing.JLabel lineNumber
-
importLine
protected javax.swing.JLabel importLine
-
importOkay
protected boolean importOkay
-
BREAK
protected static final java.lang.String[] BREAK
-
lineNum
protected int lineNum
-
LOCATION_TRACK_SEPARATOR
protected static final java.lang.String LOCATION_TRACK_SEPARATOR
- See Also:
- Constant Field Values
-
fstatus
protected JmriJFrame fstatus
-
-
Constructor Detail
-
ImportCommon
public ImportCommon()
-
-
Method Detail
-
getFile
protected java.io.File getFile()
-
getBufferedReader
protected java.io.BufferedReader getBufferedReader(java.io.File file)
-
createStatusFrame
protected void createStatusFrame(java.lang.String title)
-
parseCommaLine
protected java.lang.String[] parseCommaLine(java.lang.String line)
-
readNextLine
protected java.lang.String[] readNextLine(java.io.BufferedReader rdr)
-
-