/** * {@inheritDoc} */ @Override public int getRowCount() { return list.getModel().getSize(); }
/** * {@inheritDoc} */ @Override public Object getValueAt(int row, int column) { return list.getModel().getElementAt(row); }
/** * {@inheritDoc} */ @Override public Object getValueAt(int row, int column) { return list.getModel().getElementAt(row); }
/** * {@inheritDoc} */ @Override public int getRowCount() { return list.getModel().getSize(); }
/** * returns the element at the given index. The index is in view coordinates * which might differ from model coordinates if filtering is enabled and * filters/sorters are active. * * @param viewIndex the index in view coordinates * @return the element at the index * @throws IndexOutOfBoundsException if viewIndex < 0 or viewIndex >= * getElementCount() */ public Object getElementAt(int viewIndex) { return getModel().getElementAt(viewIndex); }
/** * {@inheritDoc} */ @Override public int getRowCount() { return list.getModel().getSize(); }
/** * {@inheritDoc} */ @Override public Object getValueAt(int row, int column) { return list.getModel().getElementAt(row); }
/** * Returns the number of elements in this list in view * coordinates. If filters are active this number might be * less than the number of elements in the underlying model. * * @return number of elements in this list in view coordinates */ public int getElementCount() { return getModel().getSize(); }
/** * {@inheritDoc} */ @Override public int getRowCount() { return list.getModel().getSize(); }
/** * {@inheritDoc} */ @Override public Object getValueAt(int row, int column) { return list.getModel().getElementAt(row); }
/** * Creates and returns the default RowSorter. Note that this is already * configured to the current ListModel. * * PENDING JW: review method signature - better expose the need for the * model by adding a parameter? * * @return the default RowSorter. */ protected RowSorter<? extends ListModel> createDefaultRowSorter() { return new ListSortController<ListModel>(getModel()); } /**
/** * Creates and returns the default RowSorter. Note that this is already * configured to the current ListModel. * * PENDING JW: review method signature - better expose the need for the * model by adding a parameter? * * @return the default RowSorter. */ protected RowSorter<? extends ListModel> createDefaultRowSorter() { return new ListSortController<ListModel>(getModel()); } /**
/** * Returns the element at the given index. The index is in view coordinates * which might differ from model coordinates if filtering is enabled and * filters/sorters are active. * * @param viewIndex the index in view coordinates * @return the element at the index * @throws IndexOutOfBoundsException if viewIndex < 0 or viewIndex >= * getElementCount() */ public Object getElementAt(int viewIndex) { return getModel().getElementAt(convertIndexToModel(viewIndex)); }
/** * Creates and returns the default RowSorter. Note that this is already * configured to the current ListModel. * * PENDING JW: review method signature - better expose the need for the * model by adding a parameter? * * @return the default RowSorter. */ protected RowSorter<? extends ListModel> createDefaultRowSorter() { return new ListSortController<ListModel>(getModel()); } /**
/** * Returns the element at the given index. The index is in view coordinates * which might differ from model coordinates if filtering is enabled and * filters/sorters are active. * * @param viewIndex the index in view coordinates * @return the element at the index * @throws IndexOutOfBoundsException if viewIndex < 0 or viewIndex >= * getElementCount() */ public Object getElementAt(int viewIndex) { return getModel().getElementAt(convertIndexToModel(viewIndex)); }
/** * returns the underlying model. If !isFilterEnabled this will be the same * as getModel(). * * @return the underlying model */ public ListModel getWrappedModel() { return isFilterEnabled() ? wrappingModel.getModel() : getModel(); }
/** * Returns the number of elements in this list in view * coordinates. If filters are active this number might be * less than the number of elements in the underlying model. * * @return number of elements in this list in view coordinates */ public int getElementCount() { return getRowSorter() != null ? getRowSorter().getViewRowCount(): getModel().getSize(); }
/** * Returns the number of elements in this list in view * coordinates. If filters are active this number might be * less than the number of elements in the underlying model. * * @return number of elements in this list in view coordinates */ public int getElementCount() { return getRowSorter() != null ? getRowSorter().getViewRowCount(): getModel().getSize(); }
/** * Returns the number of elements in this list in view * coordinates. If filters are active this number might be * less than the number of elements in the underlying model. * * @return number of elements in this list in view coordinates */ public int getElementCount() { return getRowSorter() != null ? getRowSorter().getViewRowCount(): getModel().getSize(); }
/** * Returns the number of elements in this list in view * coordinates. If filters are active this number might be * less than the number of elements in the underlying model. * * @return number of elements in this list in view coordinates */ public int getElementCount() { return getRowSorter() != null ? getRowSorter().getViewRowCount(): getModel().getSize(); }