1 /*
2 * Copyright 2006-2016 The JGUIraffe Team.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License")
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package net.sf.jguiraffe.examples.tutorial.createfile;
17
18 /**
19 * <p>
20 * A data class that stores all information for the creation of a new file.
21 * </p>
22 * <p>
23 * This class acts as the <em>form bean</em> for the dialog for creating a new
24 * file. This is a pretty simple dialog: It allows the user to specify a file
25 * name and the content of the file. This bean class defines corresponding
26 * properties. It is populated from the dialog when the user clicks the OK
27 * button.
28 * </p>
29 *
30 * @author Oliver Heger
31 * @version $Id: CreateFileData.java 205 2012-01-29 18:29:57Z oheger $
32 */
33 public class CreateFileData
34 {
35 /** The file name. */
36 private String fileName;
37
38 /** The file content. */
39 private String fileContent;
40
41 public String getFileName()
42 {
43 return fileName;
44 }
45
46 public void setFileName(String fileName)
47 {
48 this.fileName = fileName;
49 }
50
51 public String getFileContent()
52 {
53 return fileContent;
54 }
55
56 public void setFileContent(String fileContent)
57 {
58 this.fileContent = fileContent;
59 }
60 }