uk.org.arlott.simon.hw.f24.lbsta
Class NetworkFileConverter
java.lang.Object
uk.org.arlott.simon.hw.f24.lbsta.NetworkFileConverter
public class NetworkFileConverter
- extends java.lang.Object
Converts a Network and a Script to and from a Document read/written to a file.
|
Method Summary |
static boolean |
openNetwork(java.awt.Component window,
Network network,
Script script)
Loads a network from a file. |
static boolean |
saveNetwork(java.awt.Component window,
Network network,
Script script,
boolean saveAs)
Saves a network to a file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NetworkFileConverter
public NetworkFileConverter()
openNetwork
public static boolean openNetwork(java.awt.Component window,
Network network,
Script script)
- Loads a network from a file.
- Parameters:
window - The parent window to display error messages on.network - The Network to add to.script - The Script to add to.
- Returns:
true if successful.
saveNetwork
public static boolean saveNetwork(java.awt.Component window,
Network network,
Script script,
boolean saveAs)
- Saves a network to a file.
- Parameters:
window - The parent window to display error messages on.network - The Network to save from.script - The Script to save from.saveAs - Whether or not to use the save as mode.
- Returns:
true if successful.