1 26 27 package org.objectweb.openccm.packaging.widgets; 28 29 36 public class SoftpkgResourceType 37 extends org.objectweb.apollon.gui.bricks.AbstractBrick 38 { 39 45 46 private javax.swing.JComboBox scrolling_list; 47 48 54 57 public 58 SoftpkgResourceType () 59 { 60 this ("Code type"); 61 } 62 63 66 public 67 SoftpkgResourceType (String label) 68 { 69 super (label); 70 71 String [] values 73 = { 74 "DLL" 75 ,"Executable" 76 ,"Java Class" 77 }; 78 79 scrolling_list = new javax.swing.JComboBox (values); 81 82 set("Java Class"); 84 scrolling_list.validate(); 85 86 this.add(this.scrolling_list); 87 } 88 89 95 98 public String 99 get() 100 { 101 return (String )this.scrolling_list.getSelectedItem(); 102 } 103 104 107 public void 108 set (String resource_type) 109 { 110 this.scrolling_list.setSelectedItem(resource_type); 111 } 112 } 113 | Popular Tags |