public class TableController extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
TableController.MultipleSelectionListener |
static interface |
TableController.SingleSelectionListener |
Modifier and Type | Field and Description |
---|---|
static int |
CELLS |
static int |
COLUMNS |
static int |
ROWS |
public static final int COLUMNS
public static final int ROWS
public static final int CELLS
public static TableController getInstance()
public void setContent(CsvData content)
public void setColumnHeading(int column, String heading)
public void allowSingleSelection()
public void allowMultipleSelection()
public void setTableSelectionMode(int tableSelectionMode)
public int getTableSelectionMode()
public void selectColumn(int number)
public void selectRow(int number)
public void deselectColumn(int number)
public void deselectRow(int number)
public void deselectAllColumns()
public void deselectAllRows()
public void turnSelectionOff()
public void turnSelectionOn()
public int[] getSelectedColumns()
public int getSelectedColumn()
public int[] getSelectedRows()
public int getSelectedRow()
public String getSelectedCellValue()
public String getValueAt(int row, int column)
public int getRowCount()
public int getColumnCount()
public void mark(Column c)
public void mark(Row r)
public void mark(Cell c)
public void clearMarkedTableElements()
public void addSingleSelectionListener(TableController.SingleSelectionListener singleSelectionListener)
public void addMultipleSelectionListener(TableController.MultipleSelectionListener multipleSelectionListener)
public void removeMultipleSelectionListener()
public void setOrientation(int orientation)
public int getOrientation()
public String getOrientationString()
public int getFirstLineWithData()
public void setFirstLineWithData(int firstLineWithData)
firstLineWithData
- the firstLineWithData to setpublic String[] getAllColumnHeadings()
public String[] getUsedColumnHeadings()
public String[] getColumnHeadingsFiltered(String typeToLeaveOut, boolean withColId)
public String[] getUsedColumnHeadingsWithId()
Copyright © 2011–2019 52°North. All rights reserved.