Uses of Class
com.googlecode.lanterna.gui2.table.Table
-
Packages that use Table Package Description com.googlecode.lanterna.gui2.table -
-
Uses of Table in com.googlecode.lanterna.gui2.table
Methods in com.googlecode.lanterna.gui2.table that return Table Modifier and Type Method Description Table<V>Table. setCellSelection(boolean cellSelection)Iftrue, the user will be able to select and navigate individual cells, otherwise the user can only select full rows.Table<V>Table. setEscapeByArrowKey(boolean escapeByArrowKey)Sets the flag for if this table can be navigated away from when the selected row is at one of the extremes and the user presses the array key to continue in that direction.Table<V>Table. setSelectAction(java.lang.Runnable selectAction)Assigns an action to run whenever the user presses the enter or space key while focused on the table.Table<V>Table. setSelectedColumn(int selectedColumn)If in cell selection mode, updates which column is selected and ensures the selected column is visible in the view.Table<V>Table. setSelectedRow(int selectedRow)Sets the index of the selected row and ensures the selected row is visible in the viewTable<V>Table. setTableCellRenderer(TableCellRenderer<V> tableCellRenderer)Replaces theTableCellRendererused by this table when drawing cellsTable<V>Table. setTableHeaderRenderer(TableHeaderRenderer<V> tableHeaderRenderer)Replaces theTableHeaderRendererused by this table when drawing the table's headerTable<V>Table. setTableModel(TableModel<V> tableModel)Updates the table with a new table model, effectively replacing the content of the table completelyTable<V>Table. setViewLeftColumn(int viewLeftColumn)Deprecated.Use the table renderers method insteadTable<V>Table. setViewTopRow(int viewTopRow)Deprecated.Use the table renderers method insteadMethods in com.googlecode.lanterna.gui2.table with parameters of type Table Modifier and Type Method Description protected voidDefaultTableCellRenderer. afterRender(Table<V> table, V cell, int columnIndex, int rowIndex, boolean isSelected, TextGUIGraphics textGUIGraphics)Called by the cell renderer after the cell content has been drawn into the assigned area.protected voidDefaultTableCellRenderer. applyStyle(Table<V> table, V cell, int columnIndex, int rowIndex, boolean isSelected, TextGUIGraphics textGUIGraphics)Called by the cell renderer to setup all the styling (colors and SGRs) before rendering the cell.protected voidDefaultTableCellRenderer. beforeRender(Table<V> table, V cell, int columnIndex, int rowIndex, boolean isSelected, TextGUIGraphics textGUIGraphics)Called by the cell renderer to prepare the cell area before rendering the cell.voidDefaultTableCellRenderer. drawCell(Table<V> table, V cell, int columnIndex, int rowIndex, TextGUIGraphics textGUIGraphics)voidTableCellRenderer. drawCell(Table<V> table, V cell, int columnIndex, int rowIndex, TextGUIGraphics textGUIGraphics)Called by the table when it's time to draw a cell, you can see how much size is available by checking the size of thetextGUIGraphics.voidDefaultTableRenderer. drawComponent(TextGUIGraphics graphics, Table<V> table)voidTableRenderer. drawComponent(TextGUIGraphics graphics, Table<V> component)voidDefaultTableHeaderRenderer. drawHeader(Table<V> table, java.lang.String label, int index, TextGUIGraphics textGUIGraphics)private voidDefaultTableRenderer. drawHeader(TextGUIGraphics graphics, Table<V> table, java.util.List<java.lang.Integer> columnSizes)voidTableHeaderRenderer. drawHeader(Table<V> table, java.lang.String label, int index, TextGUIGraphics textGUIGraphics)Called by the table when it's time to draw a header, you can see how much size is available by checking the size of thetextGUIGraphics.private voidDefaultTableRenderer. drawRows(TextGUIGraphics graphics, Table<V> table, java.util.List<java.lang.Integer> columnSizes, int visibleRows, int visibleColumns, int renderColumns, boolean needVerticalScrollBar, boolean needHorizontalScrollBar)private java.util.List<java.lang.Integer>DefaultTableRenderer. fitColumnsInAvailableSpace(Table<V> table, TerminalSize area, int visibleColumns)TerminalPositionDefaultTableRenderer. getCursorLocation(Table<V> component)TerminalSizeDefaultTableCellRenderer. getPreferredSize(Table<V> table, V cell, int columnIndex, int rowIndex)TerminalSizeDefaultTableHeaderRenderer. getPreferredSize(Table<V> table, java.lang.String label, int columnIndex)TerminalSizeDefaultTableRenderer. getPreferredSize(Table<V> table)TerminalSizeTableCellRenderer. getPreferredSize(Table<V> table, V cell, int columnIndex, int rowIndex)Called by the table when it wants to know how big a particular table cell should beTerminalSizeTableHeaderRenderer. getPreferredSize(Table<V> table, java.lang.String label, int columnIndex)Called by the table when it wants to know how big a particular table header should beTerminalSizeTableRenderer. getPreferredSize(Table<V> component)protected voidDefaultTableCellRenderer. render(Table<V> table, V cell, int columnIndex, int rowIndex, boolean isSelected, TextGUIGraphics textGUIGraphics)Called by the cell renderer to draw the content of the cell into the assigned area.
-