@SuppressWarnings("unchecked") @Override public Class getColumnType(int arg0) { return table.getSchema().getColumnType(arg0); }
/** * Gets the name of a column. * @param columnIndex index of the column * @return name of the column */ public String getColumnName(int columnIndex) { return table.getSchema().getColumnName(columnIndex); }
@Override public int getColumnCount() { return table.getSchema().getColumnCount(); }
/** * Returns the index of a column of the table. * @param name name of the index to find * @return column index */ public int indexOf(String name) { return table.getSchema().getColumnIndex(name); }
@Override public int numValues() { return tuple.getSchema().getColumnCount(); }
/** * Gets a specific value. * @param rowId spotted row * @param field field dedicated to spotted column * @return value */ public Object getValue(int rowId, String field) { return this.schemaTable.getValue(rowId, field); }
/** * Sets a value. * @param rowId row to set * @param field field to set * @param val value to set */ public void set(int rowId, String field, Object val) { this.schemaTable.set(rowId, field, val); }
/** * Indicates if possible to remove rows. * @return true if possible */ public boolean canRemoveRow() { return this.schemaTable.canRemoveRow(); }
/** * Gets the class of a column. * @param columnIndex index of the column * @return class of the column */ public Class<?> getColumnClass(int columnIndex) { return table.getSchema().getColumnType(columnIndex); }
/** * Returns the name of the column at columnIndex. * This is used to initialize the table's column header name. * Note: this name does not need to be unique; two columns * in a table can have the same name. * @param columnIndex the index of the column * @return the name of the column */ public String getColumnName(int columnIndex) { return this.table.getSchema().getColumnName(columnIndex); }
@Override public int getColumnCount() { return table.getSchema().getColumnCount(); }
@Override public int numAttributes() { return tuple.getSchema().getColumnCount(); }
@SuppressWarnings("unchecked") @Override public Class getValueClass() { return table.getSchema().getColumnType(id); }
@Override public String getName() { return table.getSchema().getColumnName(id); }
/** * Returns the number of columns in the model. * A JTable uses this method to determine how many columns it should create * and display by default. * @return the number of columns in the model */ public int getColumnCount() { return this.table.getSchema().getColumnCount(); }
/** * Returns the most specific superclass for all the cell values in the column * This is used by the JTable to set up a default renderer * and editor for the column. * @param columnIndex the index of the column * @return the common ancestor class of the object values in the model. */ public Class<?> getColumnClass(int columnIndex) { return this.table.getSchema().getColumnType(columnIndex); }
@Override public String getColumnName(int arg0) { return table.getSchema().getColumnName(arg0); }
@SuppressWarnings("unchecked") @Override public Class getColumnType(String arg0) { return table.getSchema().getColumnType(arg0); }