/** * {@inheritDoc} */ @Override public int convertRowIndexToModel(int rowViewIndex) { return list.convertIndexToModel(rowViewIndex); } }
/** * {@inheritDoc} */ @Override public int convertRowIndexToModel(int rowViewIndex) { return list.convertIndexToModel(rowViewIndex); } }
/** * {@inheritDoc} */ @Override public int convertRowIndexToModel(int rowViewIndex) { return list.convertIndexToModel(rowViewIndex); } }
/** * {@inheritDoc} */ @Override public int convertRowIndexToModel(int rowViewIndex) { return list.convertIndexToModel(rowViewIndex); } }
/** * 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 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 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 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 string representation of the cell value at the given position. * * @param row the row index of the cell in view coordinates * @return the string representation of the cell value as it will appear in the * table. */ public String getStringAt(int row) { // changed implementation to use StringValueRegistry StringValue stringValue = getStringValueRegistry().getStringValue( convertIndexToModel(row), 0); return stringValue.getString(getElementAt(row)); }
/** * Returns the string representation of the cell value at the given position. * * @param row the row index of the cell in view coordinates * @return the string representation of the cell value as it will appear in the * table. */ public String getStringAt(int row) { // changed implementation to use StringValueRegistry StringValue stringValue = getStringValueRegistry().getStringValue( convertIndexToModel(row), 0); return stringValue.getString(getElementAt(row)); }
/** * Returns the string representation of the cell value at the given position. * * @param row the row index of the cell in view coordinates * @return the string representation of the cell value as it will appear in the * table. */ public String getStringAt(int row) { // changed implementation to use StringValueRegistry StringValue stringValue = getStringValueRegistry().getStringValue( convertIndexToModel(row), 0); return stringValue.getString(getElementAt(row)); }
/** * Returns the string representation of the cell value at the given position. * * @param row the row index of the cell in view coordinates * @return the string representation of the cell value as it will appear in the * table. */ public String getStringAt(int row) { // changed implementation to use StringValueRegistry StringValue stringValue = getStringValueRegistry().getStringValue( convertIndexToModel(row), 0); return stringValue.getString(getElementAt(row)); }
/** * Shows the annotation pane in a dialog. * * @param parentComponent the parent component. * @param title the title of the dialog. * @param okButtonText the text to show on the OK button. * @return the chosen interpreter. */ protected E showDialog(Component parentComponent, String title, String okButtonText) { if (OptionPanes.showInputDialog(parentComponent, this, textField, title, okButtonText, UIManager.getString("OptionPane.cancelButtonText"))) { int modelIndex; if (list.getRowSorter().getViewRowCount() == 1) { modelIndex = list.convertIndexToModel(0); } else { modelIndex = list.convertIndexToModel(list.getSelectedIndex()); } return safeCast(list.getModel().getElementAt(modelIndex)); } else { return null; } }