1 7 package org.jdesktop.swing.data; 8 9 14 public class TabularMetaData extends MetaData { 15 private String [] fieldNames; 16 17 public TabularMetaData() { 18 this("tabularvalue"); 19 } 20 21 public TabularMetaData(String name) { 22 super(name, TabularDataModel.class, null); 23 24 } 25 26 public TabularMetaData(String name, String label, String [] fieldNames) { 27 this(name); 28 setLabel(label); 29 setFieldNames(fieldNames); 30 } 31 32 36 public void setFieldNames(String [] fieldNames) { 37 String [] oldNames = getFieldNames(); 38 this.fieldNames = fieldNames; 39 firePropertyChange("fieldNames", oldNames, getFieldNames()); 40 41 } 42 43 49 public String [] getFieldNames() { 50 return fieldNames; 52 } 53 54 55 public String getLabel() { 56 return label; 57 } 58 } 59 | Popular Tags |