Package jmri.web.servlet.operations
Class HtmlTrainCommon
java.lang.Object
jmri.jmrit.operations.trains.trainbuilder.TrainCommon
jmri.web.servlet.operations.HtmlTrainCommon
- Direct Known Subclasses:
HtmlConductor,HtmlManifest
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Localeprotected Stringprotected final Propertiesprotected final TrainFields inherited from class jmri.jmrit.operations.trains.trainbuilder.TrainCommon
_dropCars, _pickupCars, BLANK_LINE, BUILD_REPORT_CHAR, carManager, ENGINE, engineManager, HORIZONTAL_LINE_CHAR, HYPHEN, IS_MANIFEST, IS_TWO_COLUMN_TRACK, LOCAL, locationManager, NEW_LINE, PAPER_MARGINS, PICKUP, SPACE, TAB, TEXT_COLOR_DONE, TEXT_COLOR_END, TEXT_COLOR_START, VERTICAL_LINE_CHAR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringconvertToHTMLColor(String text) protected Stringprotected StringdropEngine(Engine engine) Returns the drop string for a loco.protected StringdropEngines(List<Engine> engines, RouteLocation location) protected StringengineChange(RouteLocation rl, int legOptions) protected StringgetCarAttribute(Car car, String attribute, boolean isPickup, boolean isLocal) protected StringgetEngineAttribute(Engine engine, String attribute, boolean isPickup) protected StringgetRollingStockAttribute(RollingStock rs, String attribute, boolean isPickup, boolean isLocal) protected StringgetTrackComments(RouteLocation location, List<Car> cars) protected Stringprotected StringpickupEngine(Engine engine) Returns the pick up string for a loco.protected StringpickupEngines(List<Engine> engines, RouteLocation location) pickupUtilityCars(List<Car> cars, Car car, boolean isManifest) protected StringsetoutUtilityCars(List<Car> cars, Car car, boolean isManifest) Methods inherited from class jmri.jmrit.operations.trains.trainbuilder.TrainCommon
addCarsLocationUnknown, addLine, addLine, blockCarsByTrack, blockCarsByTrackNameTwoColumn, blockCarsTwoColumn, blockLocosTwoColumn, clearUtilityCarTypes, convertStringTime, convertStringToDate, countPickupUtilityCars, countSetoutUtilityCars, countUtilityCars, createTabIfNeeded, dropCar, dropCar, dropEngines, formatColorString, formatStringToCommaSeparated, getDate, getDate, getDropCarHeader, getDropEngineHeader, getISO8601Date, getLineLength, getLocalMoveHeader, getManifestHeaderLineLength, getPageSize, getPickupCarHeader, getPickupEngineHeader, getSwitchListTrainStatus, getTextColor, getTextColorName, getTextColorString, getTrainMessage, isNextCar, isNextCar, isThereWorkAtLocation, isThereWorkAtLocation, localMoveCar, newLine, newLine, padAndTruncate, padAndTruncateIfNeeded, padString, pickupCar, pickUpCar, pickUpCarTruncated, pickupEngines, pickupUtilityCars, pickupUtilityCars, printCarHeader, printDropCarHeader, printDropEngineHeader, printEngineHeader, printHorizontalLine, printHorizontalLine, printHorizontalLine1, printHorizontalLine2, printHorizontalLine3, printLocalCarMoveHeader, printPickupCarHeader, printPickupEngineHeader, printTrackComments, printTrackNameHeader, setCarPickupAndSetoutTimes, setoutUtilityCars, setoutUtilityCars, setoutUtilityCars, splitString, splitStringLeftParenthesis, tabString, truncatedDropCar
-
Field Details
-
strings
-
locale
-
train
-
resourcePrefix
-
-
Constructor Details
-
HtmlTrainCommon
- Throws:
IOException
-
-
Method Details
-
pickupUtilityCars
-
setoutUtilityCars
-
pickUpCar
-
pickUpCar
-
dropCar
-
dropCar
-
engineChange
-
dropEngines
-
dropEngine
Description copied from class:TrainCommonReturns the drop string for a loco. Useful for frames like the train conductor and yardmaster.- Overrides:
dropEnginein classTrainCommon- Parameters:
engine- The Engine.- Returns:
- engine drop string
-
pickupEngines
-
pickupEngine
Description copied from class:TrainCommonReturns the pick up string for a loco. Useful for frames like the train conductor and yardmaster.- Overrides:
pickupEnginein classTrainCommon- Parameters:
engine- The Engine.- Returns:
- engine pick up string
-
getCarAttribute
-
getEngineAttribute
-
getRollingStockAttribute
protected String getRollingStockAttribute(RollingStock rs, String attribute, boolean isPickup, boolean isLocal) -
getTrackComments
-
getValidity
-
convertToHTMLColor
- Parameters:
text- Text with color tags needing conversion. See TrainCommon.formatColorString(String text, Color color) Also converts line feeds to HTLM- Returns:
- HTML text with style color option
-