1 26 27 package org.objectweb.openccm.packaging.widgets; 28 29 import org.objectweb.openccm.packaging.CCMIdRefsSingleton; 30 31 38 public class AssemblyComponentImpl 39 extends org.objectweb.apollon.gui.bricks.AbstractBrick 40 { 41 47 48 private javax.swing.JComboBox scrolling_list; 49 50 56 59 public 60 AssemblyComponentImpl () 61 { 62 this ("Component implementation"); 63 } 64 65 public 66 AssemblyComponentImpl (String label) 67 { 68 super(label); 69 70 scrolling_list = new javax.swing.JComboBox ( 72 (String []) 73 CCMIdRefsSingleton.getInstance() 74 .getComponentImplList() 75 .toArray(new String [0]) 76 ); 77 78 scrolling_list.setEditable(true); 79 80 this.add(this.scrolling_list); 81 } 82 83 89 92 public String 93 get() 94 { 95 return (String )this.scrolling_list.getSelectedItem(); 96 } 97 98 101 public void 102 set (String line_text) 103 { 104 this.scrolling_list.setSelectedItem(line_text); 105 } 106 107 } 108 | Popular Tags |