/** * {@inheritDoc} */ @Override public int convertRowIndexToModel(int rowViewIndex) { return table.convertRowIndexToModel(rowViewIndex); }
/** * {@inheritDoc} */ @Override public int convertRowIndexToModel(int rowViewIndex) { return table.convertRowIndexToModel(rowViewIndex); }
/** * {@inheritDoc} */ @Override public int convertRowIndexToModel(int rowViewIndex) { return table.convertRowIndexToModel(rowViewIndex); }
/** * {@inheritDoc} */ @Override public int convertRowIndexToModel(int rowViewIndex) { return table.convertRowIndexToModel(rowViewIndex); }
/** * {@inheritDoc} */ @Override public Object getFilteredValueAt(int row, int column) { return getValueAt(table.convertRowIndexToModel(row), column); }
public TestSequenceInstance getSequence(int rowIndex) { synchronized (lock) { if (jTable != null) { int i = jTable.convertRowIndexToModel(rowIndex); if (i >= 0) { return get(i); } } } return null; }
@Override public int[] getSelectedRowsInModel() { int[] selectedRows = table.getSelectedRows(); for (int index = 0; index < selectedRows.length; index++) { selectedRows[index] = table.convertRowIndexToModel(selectedRows[index]); } return selectedRows; }
/** * Overridden to account for row index mapping. {@inheritDoc} */ @Override public Object getValueAt(int row, int column) { return getModel().getValueAt(convertRowIndexToModel(row), convertColumnIndexToModel(column)); }
public T getElementFromRow(int row) { return ((ElementsDataTableModel<T>) table.getModel()).getElementAtRow(table.convertRowIndexToModel(row)); }
@Override public void mousePressed(MouseEvent me) { // Bring up the modify dialog if the user double clicks on a row if (me.getClickCount() == 2 && modifyButton != null && modifyButton.isEnabled()) { JXTable table =(JXTable) me.getSource(); Point p = me.getPoint(); int row = table.rowAtPoint(p); if (row >= 0) { modifyElement(getTable().convertRowIndexToModel(row)); } } }}); }
public TestStepInstance getTestStepInstance(int row) { if (jTable != null) { synchronized (lock) { int i = jTable.convertRowIndexToModel(row); if (i >= 0 && i < size()) { return get(i); } } } return null; }
/** * Gets the selected http session. * * @return the selected session, or null if nothing is selected */ public HttpSession getSelectedSession() { final int selectedRow = this.sessionsTable.getSelectedRow(); if (selectedRow == -1) { // No row selected return null; } final int rowIndex = sessionsTable.convertRowIndexToModel(selectedRow); return this.sessionsModel.getHttpSessionAt(rowIndex); }
@Override public void mousePressed(java.awt.event.MouseEvent e) { if (SwingUtilities.isLeftMouseButton(e)) { int row = getTable().getSelectedRow(); if (row >= 0) { // This is just a single click showModifyDialogue(model.getElements().get(getTable().convertRowIndexToModel(row))); } } } });
@Override public void mousePressed(java.awt.event.MouseEvent e) { if (SwingUtilities.isLeftMouseButton(e)) { int row = getTable().getSelectedRow(); if (row >= 0) { // This is just a single click showModifyDialogue(model.getElements().get(getTable().convertRowIndexToModel(row))); } } } });
protected int getSelectedRow() { int selectedRow = getTable().getSelectionModel().getMinSelectionIndex(); if (selectedRow == -1) { return -1; } return getTable().convertRowIndexToModel(selectedRow); }
/** * Returns the string representation of the cell value at the given * position. * * @param row the row index of the cell in view coordinates * @param column the column 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, int column) { // changed implementation to use StringValueRegistry StringValue stringValue = getStringValueRegistry().getStringValue( convertRowIndexToModel(row), convertColumnIndexToModel(column)); return stringValue.getString(getValueAt(row, column)); }
/** * Returns the string representation of the cell value at the given * position. * * @param row the row index of the cell in view coordinates * @param column the column 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, int column) { // changed implementation to use StringValueRegistry StringValue stringValue = getStringValueRegistry().getStringValue( convertRowIndexToModel(row), convertColumnIndexToModel(column)); return stringValue.getString(getValueAt(row, column)); }
/** * Returns the string representation of the cell value at the given * position. * * @param row the row index of the cell in view coordinates * @param column the column 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, int column) { // changed implementation to use StringValueRegistry StringValue stringValue = getStringValueRegistry().getStringValue( convertRowIndexToModel(row), convertColumnIndexToModel(column)); return stringValue.getString(getValueAt(row, column)); }
/** * Returns the string representation of the cell value at the given * position. * * @param row the row index of the cell in view coordinates * @param column the column 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, int column) { // changed implementation to use StringValueRegistry StringValue stringValue = getStringValueRegistry().getStringValue( convertRowIndexToModel(row), convertColumnIndexToModel(column)); return stringValue.getString(getValueAt(row, column)); }
public void selectedSequenceChanged() { if (jTable.getRowCount() > 0) { int firstindex = jTable.getSelectedRow(); if (jTable.getSelectedRowCount() != 1 || firstindex < 0 || size() < 1 || firstindex >= size()) { hideSequence(); return; } else { firstindex = jTable.convertRowIndexToModel(firstindex); selectSequence(get(firstindex)); } } }