1 21 22 package swingwt.awt; 23 24 public class List extends swingwtx.swing.JList { 25 26 public List() { super(); } 27 public List(Object [] items) { super(items); } 28 public List(java.util.Vector items) { super(items); } 29 public List(int rows) { super(); } 30 public List(int rows, boolean multipleMode) { super(); } 31 32 public void add(String item) { 33 super.addItem(item); 34 } 35 36 public int countItems() { 37 return super.getItemCount(); 38 } 39 40 public String getItem(int index) { 41 return super.getItemAt(index).toString(); 42 } 43 44 public void select(int index) { 45 super.setSelectedIndex(index); 46 } 47 48 public void remove(String item) { 49 super.removeItem(item); 50 } 51 52 public void remove(int index) { 53 super.removeItemAt(index); 54 } 55 56 public void removeAll() { 57 super.removeAllItems(); 58 } 59 60 public void replaceItem(String item, int index) { 61 super.replaceItemAt(item, index); 62 } 63 64 } 65 | Popular Tags |