Package gg.xp.xivsupport.gui.tables
Class CustomColumn<X>
java.lang.Object
gg.xp.xivsupport.gui.tables.CustomColumn<X>
-
Constructor Summary
ConstructorDescriptionCustomColumn
(String columnName, Function<X, @Nullable Object> getter) CustomColumn
(String columnName, Function<X, @Nullable Object> getter, int fixedWidth) CustomColumn
(String columnName, Function<X, @Nullable Object> getter, Consumer<TableColumn> columnConfigurer) Custom table column -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureColumn
(TableColumn column) withExtraConfig
(Consumer<TableColumn> extraColumnConfigurer)
-
Constructor Details
-
CustomColumn
-
CustomColumn
public CustomColumn(String columnName, Function<X, @Nullable Object> getter, Consumer<TableColumn> columnConfigurer) Custom table column- Parameters:
columnName
- Name of the columngetter
- Function to convert an instance in the table to whatever this column cares about. Note that this is executed **in the table rendering code** so it should under no circumstances involve non-trivial computation or access.columnConfigurer
- Lets you configure the column, e.g. to override the renderer.
-
CustomColumn
-
-
Method Details
-
getColumnName
-
getValue
-
configureColumn
-
withExtraConfig
-