1 |
mojays |
2 |
package appl.plugin.multimodelcontrol; |
2 |
|
|
|
3 |
|
|
import edu.bonn.xulu.gui.ModelControlFrame; |
4 |
|
|
import edu.bonn.xulu.model.XuluModel; |
5 |
|
|
|
6 |
|
|
/** |
7 |
|
|
* Simple container class that encapulates the data stored a model list (GUI Component) |
8 |
|
|
* |
9 |
|
|
* @author Dominik Appl |
10 |
|
|
*/ |
11 |
|
|
public class ModelListObject { |
12 |
|
|
|
13 |
|
|
private final ModelControlFrame frame; |
14 |
|
|
private final XuluModel model; |
15 |
|
|
private final String name; |
16 |
|
|
|
17 |
|
|
/** |
18 |
|
|
* |
19 |
|
|
* @param frame modelcontrolframe responsible for the model |
20 |
|
|
* @param model the model |
21 |
|
|
* @param name name of the model |
22 |
|
|
*/ |
23 |
|
|
public ModelListObject(ModelControlFrame frame, XuluModel model, String name) { |
24 |
|
|
this.frame = frame; |
25 |
|
|
// TODO Auto-generated constructor stub |
26 |
|
|
this.model = model; |
27 |
|
|
this.name = name; |
28 |
|
|
} |
29 |
|
|
|
30 |
|
|
/** |
31 |
|
|
* @return the frame |
32 |
|
|
*/ |
33 |
|
|
public ModelControlFrame getFrame() { |
34 |
|
|
return frame; |
35 |
|
|
} |
36 |
|
|
|
37 |
|
|
/** |
38 |
|
|
* @return the model |
39 |
|
|
*/ |
40 |
|
|
public XuluModel getModel() { |
41 |
|
|
return model; |
42 |
|
|
} |
43 |
|
|
|
44 |
|
|
/** |
45 |
|
|
* @return the name |
46 |
|
|
*/ |
47 |
|
|
public String getName() { |
48 |
|
|
return name; |
49 |
|
|
} |
50 |
|
|
|
51 |
|
|
/* (non-Javadoc) |
52 |
|
|
* @see java.lang.Object#toString() |
53 |
|
|
*/ |
54 |
|
|
public String toString(){ |
55 |
|
|
return name;} |
56 |
|
|
|
57 |
|
|
|
58 |
|
|
} |