01: /**
02: * ProjectViewModelChange.java
03: * Copyright 2005 Carlos Silva A.
04: *
05: * Licensed under the Apache License, Version 2.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: *
17: */package com.csa.lgantt.view.adapters;
18:
19: import com.csa.lgantt.model.Change;
20:
21: /**
22: * ProjectViewModelChange
23: *
24: * <p>$Date: 2006/09/14 08:14:17 $</p>
25: * @version $Revision: 1.1 $
26: * @author Carlos Silva
27: */
28: public class ProjectViewModelChange extends Change {
29: public static final int NEW_PROJECT_LOADED = 1;
30: public static final int CURRENT_TASK_CHANGED = 2;
31: ProjectViewModel pvModel = null;
32:
33: /**
34: * @param id
35: */
36: public ProjectViewModelChange(int id, ProjectViewModel pvModel) {
37: super (id);
38: this .pvModel = pvModel;
39: }
40:
41: /**
42: * @param id
43: * @param source
44: */
45: public ProjectViewModelChange(int id, ProjectViewModel pvModel,
46: Object source) {
47: super (id, source);
48: this .pvModel = pvModel;
49: }
50:
51: public ProjectViewModel getProjectViewModel() {
52: return pvModel;
53: }
54: }
|