1 26 27 package org.objectweb.openccm.packaging.widgets; 28 29 import org.objectweb.openccm.packaging.CCMIdRefsSingleton; 30 31 37 public class AssemblyComponentFile 38 extends org.objectweb.apollon.gui.bricks.AbstractBrick 39 { 40 46 47 private javax.swing.JComboBox scrolling_list; 48 49 55 58 public 59 AssemblyComponentFile () 60 { 61 this("idref"); 62 } 63 64 69 public 70 AssemblyComponentFile (String label) 71 { 72 super(label); 73 74 scrolling_list = new javax.swing.JComboBox ( 76 (String []) 77 CCMIdRefsSingleton.getInstance() 78 .getComponentFilesList() 79 .toArray(new String [0]) 80 ); 81 82 scrolling_list.setEditable(true); 83 84 this.add(this.scrolling_list); 85 } 86 87 93 96 public String 97 get() 98 { 99 return (String )this.scrolling_list.getSelectedItem(); 100 } 101 102 105 public void 106 set (String line_text) 107 { 108 this.scrolling_list.setSelectedItem(line_text); 109 } 110 111 } 112 | Popular Tags |