@Test(expected = IllegalArgumentException.class) public void formatterBadColumn() { tm = new TableModel(FOO); fmt = tm.getFormatter(BAR); }
public CellFormatter getFormatter(String columnId) { checkId(columnId); CellFormatter fmt = formatters.get(columnId); return fmt == null ? DEF_FMT : fmt; }
TableModel { public CellFormatter getFormatter(String columnId) { checkId(columnId); CellFormatter fmt = formatters.get(columnId); return fmt == null ? DEF_FMT : fmt; } }
TableModel { public CellFormatter getFormatter(String columnId) { checkId(columnId); CellFormatter fmt = formatters.get(columnId); return fmt == null ? DEF_FMT : fmt; } TableModel(String... columnIds); }
TableModel { public CellFormatter getFormatter(String columnId) { checkId(columnId); CellFormatter fmt = formatters.get(columnId); return fmt == null ? DEF_FMT : fmt; } TableModel(String... columnIds); int rowCount(); int columnCount(); String[] getColumnIds(); Row[] getRows(); void addAnnotation(String key, Object value); Collection<Annot> getAnnotations(); void setComparator(String columnId, CellComparator comparator); void setFormatter(String columnId, CellFormatter formatter); CellFormatter getFormatter(String columnId); Row addRow(); void sort(String id1, SortDir dir1, String id2, SortDir dir2); static SortDir sortDir(String s); }
TableModel { public CellFormatter getFormatter(String columnId) { checkId(columnId); CellFormatter fmt = formatters.get(columnId); return fmt == null ? DEF_FMT : fmt; } TableModel(String... columnIds); int rowCount(); int columnCount(); String[] getColumnIds(); Row[] getRows(); void addAnnotation(String key, Object value); Collection<Annot> getAnnotations(); void setComparator(String columnId, CellComparator comparator); void setFormatter(String columnId, CellFormatter formatter); CellFormatter getFormatter(String columnId); Row addRow(); void sort(String id1, SortDir dir1, String id2, SortDir dir2); static SortDir sortDir(String s);  }