return this.columnNames.size();
}
- /**
- * Getter for column name at given index.
- *
- * @param columnIndex Column index
- * @return Database column name
- */
@Override
public String getColumnName (final int columnIndex) {
assert (this.columnNames instanceof List) : "this.columnNames is not initialized"; //NOI18N
return this.columnNames.get(columnIndex);
}
- /**
- * Getter for translated column name at given index.
- *
- * @param columnIndex Column index
- * @return Human-readable column name
- */
@Override
public String getTranslatedColumnName (final int columnIndex) {
assert (this.translatedColumnNames instanceof List) : "this.translatedColumnNames is not initialized"; //NOI18N
return this.translatedColumnNames.get(columnIndex);
}
- /**
- * Somewhat "getter" for value from given row and column index
- *
- * @param rowIndex Row index
- * @param columnIndex Column index
- * @return Value from given row/column
- */
@Override
public Object getValueFromRowColumn (final int rowIndex, final int columnIndex) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {
// Trace message
* @throws java.io.IOException If an IO error occurs
*/
public boolean isOwnContactAdded () throws IOException;
+
+ /**
+ * Getter for translated column name at given index.
+ *
+ * @param columnIndex Column index
+ * @return Human-readable column name
+ * TODO: This is needed for TableModel in Swing
+ */
+ public String getTranslatedColumnName (final int columnIndex);
+
+ /**
+ * Somewhat "getter" for value from given row and column index
+ *
+ * @param rowIndex Row index
+ * @param columnIndex Column index
+ * @return Value from given row/column
+ * @throws java.lang.NoSuchMethodException If the method was not found
+ * @throws java.lang.IllegalAccessException If the accessed method was not public
+ * @throws java.lang.reflect.InvocationTargetException Something else happened?
+ * TODO: This is needed for TableModel in Swing
+ */
+ public Object getValueFromRowColumn (final int rowIndex, final int columnIndex) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException;
+
+ /**
+ * Getter for column name at given index.
+ *
+ * @param columnIndex Column index
+ * @return Database column name
+ * TODO: This is needed for TableModel in Swing
+ */
+ public String getColumnName (final int columnIndex);
+
+ /**
+ * Getter for column count
+ * @return Column count
+ * TODO: This is needed for TableModel in Swing
+ */
+ public int getColumnCount ();
}