public class MenuController
extends java.lang.Object
MenuController
class contains method that are called for every item from the
application GUI.Constructor and Description |
---|
MenuController() |
Modifier and Type | Method and Description |
---|---|
static void |
exitItem()
Stores editor options in the application cofiguration file.
|
static void |
newFileDefaultItem(ConfigData configData,
OpenFile openFile)
Creates a new stylesheet file and sets values to the GUI editor element according to the
default template.
|
static void |
newFileEmptyItem(ConfigData configData,
OpenFile openFile)
Creates a new empty stylesheet file, sets default values to the GUI editor element.
|
static void |
newFileStylesheetItem(ConfigData configData,
OpenFile openFile,
java.lang.String templateFile)
Creates a new stylesheet file and sets values to the GUI editor element according to the user
template.
|
static void |
openFileItem(ConfigData configData,
java.lang.String file,
OpenFile openFile)
Opens specified XSL stylesheet file.
|
static void |
runBatchFile(OpenFile openFile)
Launches a selected batch file.
|
static void |
saveAsFileItem(ConfigData configData,
java.lang.String saveFile,
OpenFile openFile)
Saves actually opened XSL stylesheet in the file with specified name.
|
static void |
saveFileItem(ConfigData configData,
OpenFile openFile)
Saves changes of the actually opened XSL stylesheet file.
|
public static void newFileEmptyItem(ConfigData configData, OpenFile openFile)
configData
- the data containing editor data structure.openFile
- the structure containing information about actually opened file.public static void newFileDefaultItem(ConfigData configData, OpenFile openFile)
configData
- the data containing editor data structure.openFile
- the structure containing information about actually opened file.public static void newFileStylesheetItem(ConfigData configData, OpenFile openFile, java.lang.String templateFile)
configData
- the data containing editor data structure.openFile
- the structure containing information about actually opened file.templateFile
- the file containing user template.public static void openFileItem(ConfigData configData, java.lang.String file, OpenFile openFile)
configData
- the data containing editor data structure.file
- the XSL stylesheet file for opening.openFile
- the structure containing information about actually opened file.public static void saveAsFileItem(ConfigData configData, java.lang.String saveFile, OpenFile openFile)
configData
- the data containing editor data structure.saveFile
- the name of the file where the XSL stylesheet will be saved.openFile
- the structure containing information about actually opened file.public static void saveFileItem(ConfigData configData, OpenFile openFile)
configData
- the data containing editor data structure.openFile
- the structure containing information about actually opened file.public static void exitItem()
public static void runBatchFile(OpenFile openFile)
openFile
- the structure containing information about actually opened file.