1 26 27 package org.objectweb.openccm.packaging.widgets; 28 29 37 public class NetworkWithFirewall 38 extends org.objectweb.apollon.gui.bricks.AbstractBrick 39 { 40 46 47 private javax.swing.JComboBox scrolling_list; 48 49 55 58 public 59 NetworkWithFirewall () 60 { 61 this ("Firewall ?"); 62 } 63 64 67 public 68 NetworkWithFirewall (String label) 69 { 70 super (label); 71 72 String [] values 74 = { 75 "true" 76 ,"false" 77 }; 78 79 scrolling_list = new javax.swing.JComboBox (values); 81 82 set("false"); 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 |