/** * {@inheritDoc} <p> * Overridden to return value at implicit view coordinates. */ @Override public Object getValue() { return list.getElementAt(row); }
@Override public Object getElementAt(int index) { return ((JXList) list).getElementAt(index); }
/** * {@inheritDoc} */ @Override public Object getFilteredValueAt(int row, int column) { return list.getElementAt(row); }
@Override public Object getElementAt(int index) { return ((JXList) list).getElementAt(index); }
@Override public Object getElementAt(int index) { return ((JXList) list).getElementAt(index); }
protected Object getElementAt(int viewIndex) { return ((JXList) list).getElementAt(viewIndex); }
@Override public Object getElementAt(int index) { return ((JXList) list).getElementAt(index); }
protected Object getElementAt(int viewIndex) { return ((JXList) list).getElementAt(viewIndex); }
protected Object getElementAt(int viewIndex) { return ((JXList) list).getElementAt(viewIndex); }
protected Object getElementAt(int viewIndex) { return ((JXList) list).getElementAt(viewIndex); }
/** * Returns an array of all the selected values, in increasing order based * on their indices in the list and taking into account sourting and filtering. * * @return the selected values, or an empty array if nothing is selected * @see #isSelectedIndex * @see #getModel * @see #addListSelectionListener */ @Override public Object[] getSelectedValues() { int[] selectedIndexes = getSelectedIndices(); Object[] selectedValues = new Object[selectedIndexes.length]; for (int i = 0; i < selectedIndexes.length; i++) { selectedValues[i] = getElementAt(selectedIndexes[i]); } return selectedValues; }
/** * Returns an array of all the selected values, in increasing order based * on their indices in the list and taking into account sourting and filtering. * * @return the selected values, or an empty array if nothing is selected * @see #isSelectedIndex * @see #getModel * @see #addListSelectionListener */ @Override public Object[] getSelectedValues() { int[] selectedIndexes = getSelectedIndices(); Object[] selectedValues = new Object[selectedIndexes.length]; for (int i = 0; i < selectedIndexes.length; i++) { selectedValues[i] = getElementAt(selectedIndexes[i]); } return selectedValues; }
/** * Returns an array of all the selected values, in increasing order based * on their indices in the list and taking into account sourting and filtering. * * @return the selected values, or an empty array if nothing is selected * @see #isSelectedIndex * @see #getModel * @see #addListSelectionListener */ @Override public Object[] getSelectedValues() { int[] selectedIndexes = getSelectedIndices(); Object[] selectedValues = new Object[selectedIndexes.length]; for (int i = 0; i < selectedIndexes.length; i++) { selectedValues[i] = getElementAt(selectedIndexes[i]); } return selectedValues; }
/** * Returns an array of all the selected values, in increasing order based * on their indices in the list and taking into account sourting and filtering. * * @return the selected values, or an empty array if nothing is selected * @see #isSelectedIndex * @see #getModel * @see #addListSelectionListener */ @Override public Object[] getSelectedValues() { int[] selectedIndexes = getSelectedIndices(); Object[] selectedValues = new Object[selectedIndexes.length]; for (int i = 0; i < selectedIndexes.length; i++) { selectedValues[i] = getElementAt(selectedIndexes[i]); } return selectedValues; }
/** * Returns the value for the smallest selected cell index; * <i>the selected value</i> when only a single item is selected in the * list. When multiple items are selected, it is simply the value for the * smallest selected index. Returns {@code null} if there is no selection. * <p> * This is a convenience method that simply returns the model value for * {@code getMinSelectionIndex}, taking into account sorting and filtering. * * @return the first selected value * @see #getMinSelectionIndex * @see #getModel * @see #addListSelectionListener */ @Override public Object getSelectedValue() { int i = getSelectedIndex(); return (i == -1) ? null : getElementAt(i); }
/** * 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) { ListCellRenderer renderer = getDelegatingRenderer().getDelegateRenderer(); if (renderer instanceof StringValue) { return ((StringValue) renderer).getString(getElementAt(row)); } return StringValues.TO_STRING.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)); }
/** * 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)); }