public class CreateFileCommand extends CommandBase
A command class for creating a new file.
This command is associated with the OK button of the create new file dialog. It actually creates the file. The data of the file to be created is obtained from the model of the dialog which is injected. After the file was created the current directory is refreshed.
| Constructor and Description | 
|---|
| CreateFileCommand(ApplicationContext ctx,
                 CreateFileData cfd,
                 FormAction actRefresh)Creates a new instance of  CreateFileCommandand initializes it
 with the application context and the data of the file to be created. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | execute()Executes this command. | 
| protected void | performGUIUpdate()Updates the UI after a successful execution of this command. | 
getException, getGUIUpdater, getLog, isUpdateGUI, onException, onFinally, setExceptionpublic CreateFileCommand(ApplicationContext ctx, CreateFileData cfd, FormAction actRefresh)
CreateFileCommand and initializes it
 with the application context and the data of the file to be created.ctx - the application contextcfd - the data for the new fileactRefresh - the refresh actionpublic void execute()
             throws Exception
Exception - in case of an errorprotected void performGUIUpdate()
performGUIUpdate in class CommandBaseCopyright © 2016 The JGUIraffe Team. All rights reserved.