Module org.autogui

Interface GuiReprCollectionTable.TableTarget

All Known Subinterfaces:
GuiReprCollectionTable.TableTargetCell, GuiReprCollectionTable.TableTargetColumn
All Known Implementing Classes:
GuiSwingViewCollectionTable.TableTargetCellForCollectionTable, ObjectTableColumn.TableTargetColumnForObjectColumn, TableTargetCellForJTable, TableTargetColumnForJTable
Enclosing class:
GuiReprCollectionTable

public static interface GuiReprCollectionTable.TableTarget
interface for actions which handle selected-rows; an actual implementation relies on a concrete GUI component
  • Method Details

    • isSelectionEmpty

      boolean isSelectionEmpty()
    • getSelectedRows

      int[] getSelectedRows()
    • getSelectedRowValues

      List<Object> getSelectedRowValues()
    • getSelectedCells

    • getSelectedCellIndices

      Iterable<int[]> getSelectedCellIndices()
      Returns:
      a sequence of {row, column}. those indices are from the view model, which might be different from the context's ones. The view-model has additional columns other than the context, e.g. the row-index column.
    • getSelectedCellIndicesAsList

      default List<int[]> getSelectedCellIndicesAsList()
    • getSelectedCellValues

      default List<Object> getSelectedCellValues()
    • setCellValues

      void setCellValues(List<GuiReprCollectionTable.CellValue> values)
    • setCellValues

      void setCellValues(Iterable<int[]> pos, Function<int[],Object> posToValue)
      Parameters:
      pos - the specified cell: {row, column}
      posToValue - pos: {row, column} to a cell value, if it returns null, then it skips the updating