1 package prefuse.data.column; 2 3 import java.util.Date ; 4 5 import prefuse.data.DataTypeException; 6 import prefuse.data.event.ColumnListener; 7 import prefuse.data.parser.DataParser; 8 9 10 15 public interface Column { 16 17 20 24 public int getRowCount(); 25 26 30 public void setMaximumRow(int nrows); 31 32 36 public boolean isReadOnly(); 37 38 43 public void setReadOnly(boolean readOnly); 44 45 50 public boolean isCellEditable(int row); 51 52 56 public Class getColumnType(); 57 58 63 public DataParser getParser(); 64 65 70 public void setParser(DataParser parser); 71 72 75 79 public void addColumnListener(ColumnListener listener); 80 81 85 public void removeColumnListener(ColumnListener listener); 86 87 88 91 94 public Object getDefaultValue(); 95 96 100 public void revertToDefault(int row); 101 102 108 public boolean canGet(Class type); 109 110 116 public boolean canSet(Class type); 117 118 123 public Object get(int row); 124 125 130 public void set(Object val, int row) throws DataTypeException; 131 132 133 136 138 140 145 public boolean canGetInt(); 146 147 152 public boolean canSetInt(); 153 154 161 public int getInt(int row) throws DataTypeException; 162 163 170 public void setInt(int val, int row) throws DataTypeException; 171 172 174 179 public boolean canGetLong(); 180 181 186 public boolean canSetLong(); 187 188 195 public long getLong(int row) throws DataTypeException; 196 197 204 public void setLong(long val, int row) throws DataTypeException; 205 206 208 213 public boolean canGetFloat(); 214 215 220 public boolean canSetFloat(); 221 222 229 public float getFloat(int row) throws DataTypeException; 230 231 238 public void setFloat(float val, int row) throws DataTypeException; 239 240 242 247 public boolean canGetDouble(); 248 249 254 public boolean canSetDouble(); 255 256 263 public double getDouble(int row) throws DataTypeException; 264 265 272 public void setDouble(double val, int row) throws DataTypeException; 273 274 276 281 public boolean canGetBoolean(); 282 283 288 public boolean canSetBoolean(); 289 290 297 public boolean getBoolean(int row) throws DataTypeException; 298 299 306 public void setBoolean(boolean val, int row) throws DataTypeException; 307 308 310 315 public boolean canGetString(); 316 317 322 public boolean canSetString(); 323 324 331 public String getString(int row) throws DataTypeException; 332 333 340 public void setString(String val, int row) throws DataTypeException; 341 342 344 349 public boolean canGetDate(); 350 351 356 public boolean canSetDate(); 357 358 365 public Date getDate(int row) throws DataTypeException; 366 367 374 public void setDate(Date val, int row) throws DataTypeException; 375 376 } | Popular Tags |