KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > cve > core > elementLDL > ElementCveVis


1 package cve.core.elementLDL;
2
3 import java.util.*;
4
5 public class ElementCveVis extends ElementoCve implements IElementoCveVis
6 {
7     private DescrCveToolBar cveT;
8         private Vector menuColl;
9         private DescrCveMenu cveM;
10         private String JavaDoc pathImage;
11   
12     public ElementCveVis (String JavaDoc tipo, String JavaDoc id, Class JavaDoc eleCve, DescrCveToolBar cveT){
13            super(tipo, id, eleCve);
14              menuColl=new Vector();
15        this.cveT=cveT;
16     }
17         
18         public ElementCveVis (String JavaDoc tipo, String JavaDoc id, Class JavaDoc eleCve, DescrCveToolBar cveT, DescrCveMenu cveM){
19            super(tipo, id, eleCve);
20        this.cveT=cveT;
21              this.cveM=cveM;
22     }
23     
24     public DescrCveToolBar getToolB(){
25         return cveT;
26     }
27         
28         public void setToolBar(DescrCveToolBar cveTB){
29         cveT=cveTB;
30     }
31         
32         public Collection getAllMenu(){
33         return menuColl;
34     }
35         
36         public void addMenu(DescrCveMenu cveM){
37                 menuColl.add(cveM);
38     }
39
40     public void setIcon(String JavaDoc pathImage){
41       this.pathImage = pathImage;
42     }
43
44     public String JavaDoc getIcon(){
45       return pathImage;
46     }
47
48
49
50         
51 }
52     
Popular Tags