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