public class StationModelManager extends ResourceManager
Modifier and Type | Field and Description |
---|---|
static PatternFileFilter |
FILTER_ISM
The file pattern for selecting station model files
|
protected XmlResourceCollection |
symbolTypes
This defines where we get the symbol definition xml files
|
listOfResourceLists, log_, LU, nameToObject, PROP_RESOURCECHANGE, PROP_RESOURCEREMOVE, resources, usersList, writablePath
Constructor and Description |
---|
StationModelManager()
ctor
|
StationModelManager(XmlEncoder encoder)
ctor
|
Modifier and Type | Method and Description |
---|---|
void |
addStationModel(StationModel stationModel)
Add the station model into the list of user SMS
|
boolean |
checkCloseWindow()
Check if there has been a change to the currently edited station model.
|
StationModel |
getDefaultStationModel()
Get the default station model.
|
java.util.List |
getFileFilters()
Get the file filters to use for selecting files.
|
javax.swing.JFrame |
getFrame()
Get the frame.
|
StationModel |
getSelectedStationModel()
Get the station model to use for selected locations
|
StationModel |
getStationModel()
Return the currently station model being edited.
|
StationModel |
getStationModel(java.lang.String name)
Get the named station model
|
java.lang.String |
getStationModelName()
Return the name of currently station model being edited.
|
java.util.List |
getStationModels()
Get the list of all station models.
|
java.lang.String |
getTitle()
Override the ResourceManager method to get the title to use
|
void |
init(XmlResourceCollection symbolTypes,
ResourceCollection stationModels)
Initialize.
|
static void |
main(java.lang.String[] args)
test
|
void |
show()
Show the editor window
|
void |
show(StationModel initModel)
Show the editor dialog for the station model.
|
void |
show(java.lang.String modelName)
Show the editor dialog for the named station model
|
addPropertyChangeListener, addUsers, doExport, doExport, doImport, doImport, doImport, doNew, doNew, doNew, doSaveAs, firePropertyChange, firePropertyChange, getDefault, getEncoder, getExportContents, getFileSuffix, getObject, getReadFileFilters, getResources, getResourceTimestamp, getUsersIndex, getUsersObject, getWriteFileFilters, hasUsers, init, initDone, initResource, isUsers, processObject, reloadResources, removePropertyChangeListener, removeUsers, resourceExists, shouldWeIgnoreThisXml, toObject, toObject
public static final PatternFileFilter FILTER_ISM
protected XmlResourceCollection symbolTypes
public StationModelManager()
public StationModelManager(XmlEncoder encoder)
encoder
- The XML encoder to usepublic void init(XmlResourceCollection symbolTypes, ResourceCollection stationModels)
symbolTypes
- This defines where we get the symbol definition xml filesstationModels
- Where we get the station model filespublic void addStationModel(StationModel stationModel)
stationModel
- Station model to addpublic java.util.List getFileFilters()
getFileFilters
in class ResourceManager
public java.lang.String getTitle()
getTitle
in class ResourceManager
public void show()
public void show(java.lang.String modelName)
modelName
- Station modelpublic boolean checkCloseWindow()
public void show(StationModel initModel)
initModel
- Initial model to show. May be null.public javax.swing.JFrame getFrame()
public StationModel getDefaultStationModel()
public StationModel getStationModel()
public java.lang.String getStationModelName()
public StationModel getSelectedStationModel()
public StationModel getStationModel(java.lang.String name)
name
- station model namepublic java.util.List getStationModels()
public static void main(java.lang.String[] args)
args
- cmd line args