|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.util.ResourceManager
ucar.unidata.ui.symbol.StationModelManager
public class StationModelManager
This manages the set of station models. It provides a wrapper around a StationModelCan
| Field Summary | |
|---|---|
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 |
| Fields inherited from class ucar.unidata.util.ResourceManager |
|---|
listOfResourceLists, log_, LU, nameToObject, PROP_RESOURCECHANGE, PROP_RESOURCEREMOVE, resources, usersList, writablePath |
| Constructor Summary | |
|---|---|
StationModelManager()
ctor |
|
StationModelManager(XmlEncoder encoder)
ctor |
|
| Method Summary | |
|---|---|
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. |
List |
getFileFilters()
Get the file filters to use for selecting files. |
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(String name)
Get the named station model |
String |
getStationModelName()
Return the name of currently station model being edited. |
List |
getStationModels()
Get the list of all station models. |
String |
getTitle()
Override the ResourceManager method to get the title to use |
void |
init(XmlResourceCollection symbolTypes,
ResourceCollection stationModels)
Initialize. |
static void |
main(String[] args)
test |
void |
show()
Show the editor window |
void |
show(StationModel initModel)
Show the editor dialog for the station model. |
void |
show(String modelName)
Show the editor dialog for the named station model |
| Methods inherited from class ucar.unidata.util.ResourceManager |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final PatternFileFilter FILTER_ISM
protected XmlResourceCollection symbolTypes
| Constructor Detail |
|---|
public StationModelManager()
public StationModelManager(XmlEncoder encoder)
encoder - The XML encoder to use| Method Detail |
|---|
public 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 List getFileFilters()
getFileFilters in class ResourceManagerpublic String getTitle()
getTitle in class ResourceManagerpublic void show()
public void show(String modelName)
modelName - Station modelpublic boolean checkCloseWindow()
public void show(StationModel initModel)
initModel - Initial model to show. May be null.public JFrame getFrame()
public StationModel getDefaultStationModel()
public StationModel getStationModel()
public String getStationModelName()
public StationModel getSelectedStationModel()
public StationModel getStationModel(String name)
name - station model name
public List getStationModels()
public static void main(String[] args)
args - cmd line args
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||