Package gg.xp.xivsupport.gui.tables
Class CustomTableModel<X>
java.lang.Object
javax.swing.table.AbstractTableModel
gg.xp.xivsupport.gui.tables.CustomTableModel<X>
- All Implemented Interfaces:
Serializable
,TableModel
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static <B> CustomTableModel.CustomTableModelBuilder<B>
void
configureColumns
(JTable table) void
void
int
getColumnName
(int column) getData()
int
@Nullable Integer
@Nullable Object
getValueAt
(int rowIndex, int columnIndex) getValueForRow
(int row) boolean
isCellEditable
(int rowIndex, int columnIndex) void
void
void
setSelectedValue
(X value) void
setVisibleItemScrollOffset
(int offset) void
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
-
Method Details
-
builder
public static <B> CustomTableModel.CustomTableModelBuilder<B> builder(Supplier<List<? extends B>> dataGetter) -
appendOnlyRefresh
public void appendOnlyRefresh() -
configureColumns
-
signalNewData
public void signalNewData() -
fullRefresh
public void fullRefresh() -
fullRefreshSync
public void fullRefreshSync() -
getData
-
overlayHackRefresh
public void overlayHackRefresh() -
getSelectedItemViewportOffsetIfVisible
-
setVisibleItemScrollOffset
public void setVisibleItemScrollOffset(int offset) -
getRowCount
public int getRowCount() -
getColumnCount
public int getColumnCount() -
getColumnName
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
-
getValueForRow
-
getSelectedValue
-
getSelectedValues
-
setSelectedValue
-
scrollToSelectedValue
public void scrollToSelectedValue() -
getValueAt
-
makeTable
-