1 19 20 package org.netbeans.spi.viewmodel; 21 22 import java.beans.PropertyEditor ; 23 import javax.swing.table.TableCellEditor ; 24 import javax.swing.table.TableCellRenderer ; 25 26 27 33 public abstract class ColumnModel implements Model { 34 35 36 41 public abstract String getID (); 42 43 48 public abstract String getDisplayName (); 49 50 57 public Character getDisplayedMnemonic() { 58 return null; 59 } 60 61 66 public abstract Class getType (); 67 68 79 public String getPreviuosColumnID () { 80 return null; 81 } 82 83 93 public String getNextColumnID () { 94 return null; 95 } 96 97 103 public String getShortDescription () { 104 return null; 105 } 106 107 113 public boolean isSortable () { 114 return true; 115 } 116 117 123 public boolean isVisible () { 124 return true; 125 } 126 127 132 public void setVisible (boolean visible) {} 133 134 140 public boolean isSorted () { 141 return false; 142 } 143 144 149 public void setSorted (boolean sorted) {} 150 151 158 public boolean isSortedDescending () { 159 return false; 160 } 161 162 169 public void setSortedDescending (boolean sortedDescending) {} 170 171 177 public int getCurrentOrderNumber () { 178 return -1; 179 } 180 181 187 public void setCurrentOrderNumber (int newOrderNumber) {} 188 189 194 public int getColumnWidth () { 195 return 20; 196 } 197 198 204 public void setColumnWidth (int newColumnWidth) {} 205 206 214 public PropertyEditor getPropertyEditor () { 215 return null; 216 } 217 218 225 229 236 } 240 | Popular Tags |