protected AbstractApplicationTableModel(TableColumnModelExt columnModel, boolean createNewRow, boolean createEmptyRowIsEmpty) { this.identifiers = Lists.newArrayListWithCapacity(columnModel.getColumnCount()); for (TableColumn tc : columnModel.getColumns(true)) { this.identifiers.add((ColumnIdentifier<R>) tc.getIdentifier()); } this.createNewRow = createNewRow; this.createEmptyRowIsEmpty = createEmptyRowIsEmpty; }
/** * Returns the number of contained columns. The count includes or excludes * invisible columns, depending on whether the <code>includeHidden</code> is * true or false, respectively. If false, this method returns the same count * as <code>getColumnCount()</code>. If the columnModel is not of type * <code>TableColumnModelExt</code>, the parameter value has no effect. * * @param includeHidden a boolean to indicate whether invisible columns * should be included * @return the number of contained columns, including or excluding the * invisible as specified. * @see #getColumnCount() * @see TableColumnModelExt#getColumnCount(boolean) */ public int getColumnCount(boolean includeHidden) { if (getColumnModel() instanceof TableColumnModelExt) { return ((TableColumnModelExt) getColumnModel()) .getColumnCount(includeHidden); } return getColumnCount(); }
/** * Returns the number of contained columns. The count includes or excludes * invisible columns, depending on whether the <code>includeHidden</code> is * true or false, respectively. If false, this method returns the same count * as <code>getColumnCount()</code>. If the columnModel is not of type * <code>TableColumnModelExt</code>, the parameter value has no effect. * * @param includeHidden a boolean to indicate whether invisible columns * should be included * @return the number of contained columns, including or excluding the * invisible as specified. * @see #getColumnCount() * @see TableColumnModelExt#getColumnCount(boolean) */ public int getColumnCount(boolean includeHidden) { if (getColumnModel() instanceof TableColumnModelExt) { return ((TableColumnModelExt) getColumnModel()) .getColumnCount(includeHidden); } return getColumnCount(); }
/** * Returns the number of contained columns. The count includes or excludes * invisible columns, depending on whether the <code>includeHidden</code> is * true or false, respectively. If false, this method returns the same count * as <code>getColumnCount()</code>. If the columnModel is not of type * <code>TableColumnModelExt</code>, the parameter value has no effect. * * @param includeHidden a boolean to indicate whether invisible columns * should be included * @return the number of contained columns, including or excluding the * invisible as specified. * @see #getColumnCount() * @see TableColumnModelExt#getColumnCount(boolean) */ public int getColumnCount(boolean includeHidden) { if (getColumnModel() instanceof TableColumnModelExt) { return ((TableColumnModelExt) getColumnModel()) .getColumnCount(includeHidden); } return getColumnCount(); }
/** * Returns the number of contained columns. The count includes or excludes * invisible columns, depending on whether the <code>includeHidden</code> is * true or false, respectively. If false, this method returns the same count * as <code>getColumnCount()</code>. If the columnModel is not of type * <code>TableColumnModelExt</code>, the parameter value has no effect. * * @param includeHidden a boolean to indicate whether invisible columns * should be included * @return the number of contained columns, including or excluding the * invisible as specified. * @see #getColumnCount() * @see TableColumnModelExt#getColumnCount(boolean) */ public int getColumnCount(boolean includeHidden) { if (getColumnModel() instanceof TableColumnModelExt) { return ((TableColumnModelExt) getColumnModel()) .getColumnCount(includeHidden); } return getColumnCount(); }
/** * Returns the number of contained columns. The count includes or excludes * invisible columns, depending on whether the <code>includeHidden</code> is * true or false, respectively. If false, this method returns the same count * as <code>getColumnCount()</code>. If the columnModel is not of type * <code>TableColumnModelExt</code>, the parameter value has no effect. * * @param includeHidden a boolean to indicate whether invisible columns * should be included * @return the number of contained columns, including or excluding the * invisible as specified. * @see #getColumnCount() * @see TableColumnModelExt#getColumnCount(boolean) */ public int getColumnCount(boolean includeHidden) { if (getColumnModel() instanceof TableColumnModelExt) { return ((TableColumnModelExt) getColumnModel()) .getColumnCount(includeHidden); } return getColumnCount(); }