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; }
/** * Removes all columns of the given column model. Includes hidden * columns as indicated by the includesHidden flag, the flag has no * effect if the model is not of type TableColumnModelExt.<p> * * @param model the column model to remove all columns from. * @param includeHidden indicates whether hidden columns should be * removed as well, has no effect if model is not of type TableColumnModelExt. */ /* * Stand-in instead of fixing of issue http://java.net/jira/browse/SWINGX-1407 */ public static void clear(TableColumnModel model, boolean includeHidden) { if (model instanceof TableColumnModelExt) { clear(model, ((TableColumnModelExt) model).getColumns(includeHidden)); } else { clear(model, Collections.list(model.getColumns())); } }
/** * 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(); }
if (getColumnModel() instanceof TableColumnModelExt) { return ((TableColumnModelExt) getColumnModel()) .getColumnExt(identifier); } else {
/** * Removes all columns of the given column model. Includes hidden * columns as indicated by the includesHidden flag, the flag has no * effect if the model is not of type TableColumnModelExt.<p> * * @param model the column model to remove all columns from. * @param includeHidden indicates whether hidden columns should be * removed as well, has no effect if model is not of type TableColumnModelExt. */ /* * Stand-in instead of fixing of issue http://java.net/jira/browse/SWINGX-1407 */ public static void clear(TableColumnModel model, boolean includeHidden) { if (model instanceof TableColumnModelExt) { clear(model, ((TableColumnModelExt) model).getColumns(includeHidden)); } else { clear(model, Collections.list(model.getColumns())); } }
/** * 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(); }
if (getColumnModel() instanceof TableColumnModelExt) { return ((TableColumnModelExt) getColumnModel()) .getColumnExt(identifier); } else {
/** * Removes all columns of the given column model. Includes hidden * columns as indicated by the includesHidden flag, the flag has no * effect if the model is not of type TableColumnModelExt.<p> * * @param model the column model to remove all columns from. * @param includeHidden indicates whether hidden columns should be * removed as well, has no effect if model is not of type TableColumnModelExt. */ /* * Stand-in instead of fixing of issue http://java.net/jira/browse/SWINGX-1407 */ public static void clear(TableColumnModel model, boolean includeHidden) { if (model instanceof TableColumnModelExt) { clear(model, ((TableColumnModelExt) model).getColumns(includeHidden)); } else { clear(model, Collections.list(model.getColumns())); } }
/** * 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(); }
if (getColumnModel() instanceof TableColumnModelExt) { return ((TableColumnModelExt) getColumnModel()) .getColumnExt(identifier); } else {
/** * Removes all columns of the given column model. Includes hidden * columns as indicated by the includesHidden flag, the flag has no * effect if the model is not of type TableColumnModelExt.<p> * * @param model the column model to remove all columns from. * @param includeHidden indicates whether hidden columns should be * removed as well, has no effect if model is not of type TableColumnModelExt. */ /* * Stand-in instead of fixing of issue http://java.net/jira/browse/SWINGX-1407 */ public static void clear(TableColumnModel model, boolean includeHidden) { if (model instanceof TableColumnModelExt) { clear(model, ((TableColumnModelExt) model).getColumns(includeHidden)); } else { clear(model, Collections.list(model.getColumns())); } }
/** * 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(); }
if (getColumnModel() instanceof TableColumnModelExt) { return ((TableColumnModelExt) getColumnModel()) .getColumnExt(identifier); } else {
/** * Returns a <code>List</code> of contained <code>TableColumn</code>s. * Includes or excludes invisible columns, depending on whether the * <code>includeHidden</code> is true or false, respectively. If false, an * <code>Iterator</code> over the List is equivalent to the * <code>Enumeration</code> returned by <code>getColumns()</code>. If the * columnModel is not of type <code>TableColumnModelExt</code>, the * parameter value has no effect. * <p> * * NOTE: the order of columns in the List depends on whether or not the * invisible columns are included, in the former case it's the insertion * order in the latter it's the current order of the visible columns. * * @param includeHidden a boolean to indicate whether invisible columns * should be included * @return a <code>List</code> of contained columns. * * @see #getColumns() * @see TableColumnModelExt#getColumns(boolean) */ public List<TableColumn> getColumns(boolean includeHidden) { if (getColumnModel() instanceof TableColumnModelExt) { return ((TableColumnModelExt) getColumnModel()) .getColumns(includeHidden); } return getColumns(); }
/** * 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(); }
if (getColumnModel() instanceof TableColumnModelExt) { return ((TableColumnModelExt) getColumnModel()) .getColumnExt(identifier); } else {
/** * Returns a <code>List</code> of contained <code>TableColumn</code>s. * Includes or excludes invisible columns, depending on whether the * <code>includeHidden</code> is true or false, respectively. If false, an * <code>Iterator</code> over the List is equivalent to the * <code>Enumeration</code> returned by <code>getColumns()</code>. If the * columnModel is not of type <code>TableColumnModelExt</code>, the * parameter value has no effect. * <p> * * NOTE: the order of columns in the List depends on whether or not the * invisible columns are included, in the former case it's the insertion * order in the latter it's the current order of the visible columns. * * @param includeHidden a boolean to indicate whether invisible columns * should be included * @return a <code>List</code> of contained columns. * * @see #getColumns() * @see TableColumnModelExt#getColumns(boolean) */ public List<TableColumn> getColumns(boolean includeHidden) { if (getColumnModel() instanceof TableColumnModelExt) { return ((TableColumnModelExt) getColumnModel()) .getColumns(includeHidden); } return getColumns(); }
/** * Returns a <code>List</code> of contained <code>TableColumn</code>s. * Includes or excludes invisible columns, depending on whether the * <code>includeHidden</code> is true or false, respectively. If false, an * <code>Iterator</code> over the List is equivalent to the * <code>Enumeration</code> returned by <code>getColumns()</code>. If the * columnModel is not of type <code>TableColumnModelExt</code>, the * parameter value has no effect. * <p> * * NOTE: the order of columns in the List depends on whether or not the * invisible columns are included, in the former case it's the insertion * order in the latter it's the current order of the visible columns. * * @param includeHidden a boolean to indicate whether invisible columns * should be included * @return a <code>List</code> of contained columns. * * @see #getColumns() * @see TableColumnModelExt#getColumns(boolean) */ public List<TableColumn> getColumns(boolean includeHidden) { if (getColumnModel() instanceof TableColumnModelExt) { return ((TableColumnModelExt) getColumnModel()) .getColumns(includeHidden); } return getColumns(); }
/** * Returns a <code>List</code> of contained <code>TableColumn</code>s. * Includes or excludes invisible columns, depending on whether the * <code>includeHidden</code> is true or false, respectively. If false, an * <code>Iterator</code> over the List is equivalent to the * <code>Enumeration</code> returned by <code>getColumns()</code>. If the * columnModel is not of type <code>TableColumnModelExt</code>, the * parameter value has no effect. * <p> * * NOTE: the order of columns in the List depends on whether or not the * invisible columns are included, in the former case it's the insertion * order in the latter it's the current order of the visible columns. * * @param includeHidden a boolean to indicate whether invisible columns * should be included * @return a <code>List</code> of contained columns. * * @see #getColumns() * @see TableColumnModelExt#getColumns(boolean) */ public List<TableColumn> getColumns(boolean includeHidden) { if (getColumnModel() instanceof TableColumnModelExt) { return ((TableColumnModelExt) getColumnModel()) .getColumns(includeHidden); } return getColumns(); }
/** * Returns a <code>List</code> of contained <code>TableColumn</code>s. * Includes or excludes invisible columns, depending on whether the * <code>includeHidden</code> is true or false, respectively. If false, an * <code>Iterator</code> over the List is equivalent to the * <code>Enumeration</code> returned by <code>getColumns()</code>. If the * columnModel is not of type <code>TableColumnModelExt</code>, the * parameter value has no effect. * <p> * * NOTE: the order of columns in the List depends on whether or not the * invisible columns are included, in the former case it's the insertion * order in the latter it's the current order of the visible columns. * * @param includeHidden a boolean to indicate whether invisible columns * should be included * @return a <code>List</code> of contained columns. * * @see #getColumns() * @see TableColumnModelExt#getColumns(boolean) */ public List<TableColumn> getColumns(boolean includeHidden) { if (getColumnModel() instanceof TableColumnModelExt) { return ((TableColumnModelExt) getColumnModel()) .getColumns(includeHidden); } return getColumns(); }