Class CustomTableModel<X>

java.lang.Object
javax.swing.table.AbstractTableModel
gg.xp.xivsupport.gui.tables.CustomTableModel<X>
All Implemented Interfaces:
Serializable, TableModel

public class CustomTableModel<X> extends AbstractTableModel
See Also:
  • Method Details

    • builder

      public static <B> CustomTableModel.CustomTableModelBuilder<B> builder(Supplier<List<? extends B>> dataGetter)
    • appendOnlyRefresh

      public void appendOnlyRefresh()
    • configureColumns

      public void configureColumns(JTable table)
    • signalNewData

      public void signalNewData()
    • fullRefresh

      public void fullRefresh()
    • fullRefreshSync

      public void fullRefreshSync()
    • getData

      public List<X> getData()
    • overlayHackRefresh

      public void overlayHackRefresh()
    • getSelectedItemViewportOffsetIfVisible

      @Nullable public @Nullable Integer getSelectedItemViewportOffsetIfVisible()
    • setVisibleItemScrollOffset

      public void setVisibleItemScrollOffset(int offset)
    • getRowCount

      public int getRowCount()
    • getColumnCount

      public int getColumnCount()
    • getColumnName

      public String getColumnName(int column)
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel
    • isCellEditable

      public boolean isCellEditable(int rowIndex, int columnIndex)
      Specified by:
      isCellEditable in interface TableModel
      Overrides:
      isCellEditable in class AbstractTableModel
    • getValueForRow

      public X getValueForRow(int row)
    • getSelectedValue

      @Nullable public X getSelectedValue()
    • getSelectedValues

      public List<X> getSelectedValues()
    • setSelectedValue

      public void setSelectedValue(@Nullable X value)
    • scrollToSelectedValue

      public void scrollToSelectedValue()
    • getValueAt

      @Nullable public @Nullable Object getValueAt(int rowIndex, int columnIndex)
    • makeTable

      public JTable makeTable()