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.bgtask;
17
18 /**
19 * <p>
20 * A data class that stores all information required by the background task.
21 * </p>
22 * <p>
23 * An instance of this class acts as the form bean for the dialog form that
24 * defines the background task.
25 * </p>
26 *
27 * @author Oliver Heger
28 * @version $Id: BgTaskData.java 205 2012-01-29 18:29:57Z oheger $
29 */
30 public class BgTaskData
31 {
32 /** The duration of the task in seconds. */
33 private int duration = 10;
34
35 /** A flag whether there should be visual feedback. */
36 private boolean visual = true;
37
38 public int getDuration()
39 {
40 return duration;
41 }
42
43 public void setDuration(int duration)
44 {
45 this.duration = duration;
46 }
47
48 public boolean isVisual()
49 {
50 return visual;
51 }
52
53 public void setVisual(boolean visual)
54 {
55 this.visual = visual;
56 }
57 }