-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
7,166 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
## General | ||
|
||
- [ ] Replace `IntegerRage.expandRangeToSet(...)` with a class implementation that keeps track of removed indexes. | ||
This way it is much more efficient. | ||
- [ ] Review APIs (classes, simplify as much as possible/re-organize at least) | ||
- [ ] Rename cells to VFXxxx (?) | ||
- [ ] Implement paginated Grid (?) | ||
- [ ] Implement paginated Table | ||
- [ ] Implement paginated Table | ||
- [ ] Review listeners in skin, in particular, allow constructs to have the same listener to save up memory | ||
- [ ] Make table cells use a Skin (?) | ||
- [ ] Optimize cells to update only if and invalidation occurred (?) | ||
- [ ] Rename special EMPTY state to INVALID | ||
- [ ] Rename absIndex/absIdx to layoutIdx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/main/java/io/github/palexdev/virtualizedfx/cells/MappingTableCell.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package io.github.palexdev.virtualizedfx.cells; | ||
|
||
import io.github.palexdev.mfxcore.utils.converters.FunctionalStringConverter; | ||
import javafx.util.StringConverter; | ||
|
||
import java.util.function.Function; | ||
|
||
public interface MappingTableCell<T, E> extends TableCell<T> { | ||
|
||
Function<T, E> getExtractor(); | ||
|
||
void setExtractor(Function<T, E> extractor); | ||
|
||
StringConverter<E> getConverter(); | ||
|
||
void setConverter(StringConverter<E> converter); | ||
|
||
default void setConverter(Function<E, String> converter) { | ||
setConverter(FunctionalStringConverter.to(converter)); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/io/github/palexdev/virtualizedfx/cells/TableCell.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package io.github.palexdev.virtualizedfx.cells; | ||
|
||
import io.github.palexdev.virtualizedfx.table.VFXTableColumn; | ||
import io.github.palexdev.virtualizedfx.table.VFXTableRow; | ||
|
||
public interface TableCell<T> extends Cell<T> { | ||
|
||
default void updateColumn(VFXTableColumn<T, ? extends TableCell<T>> column) {} | ||
|
||
default void updateRow(VFXTableRow<T> row) {} | ||
|
||
default void invalidate() {} | ||
} |
27 changes: 27 additions & 0 deletions
27
src/main/java/io/github/palexdev/virtualizedfx/enums/ColumnsLayoutMode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package io.github.palexdev.virtualizedfx.enums; | ||
|
||
import io.github.palexdev.mfxcore.utils.EnumUtils; | ||
import io.github.palexdev.virtualizedfx.table.VFXTable; | ||
|
||
/** | ||
* Enumerator to specify the layout modes for columns in {@link VFXTable}. | ||
*/ | ||
public enum ColumnsLayoutMode { | ||
|
||
/** | ||
* In this mode, all columns will have the same width specified by {@link VFXTable#columnsSizeProperty()}. | ||
*/ | ||
FIXED, | ||
|
||
/** | ||
* In this mode, columns are allowed to have different widths. This enables features like: | ||
* columns auto-sizing ({@link VariableTableHelper#autosizeColumn(TableColumn)}), or resizing at runtime | ||
* through gestures (not implemented by the default column type) | ||
*/ | ||
VARIABLE, | ||
; | ||
|
||
public static ColumnsLayoutMode next(ColumnsLayoutMode mode) { | ||
return EnumUtils.next(ColumnsLayoutMode.class, mode); | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/io/github/palexdev/virtualizedfx/enums/GeometryChangeType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package io.github.palexdev.virtualizedfx.enums; | ||
|
||
public enum GeometryChangeType { | ||
WIDTH, | ||
HEIGHT, | ||
OTHER, | ||
; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/main/java/io/github/palexdev/virtualizedfx/properties/VFXTableStateProperty.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package io.github.palexdev.virtualizedfx.properties; | ||
|
||
import io.github.palexdev.virtualizedfx.table.VFXTableState; | ||
import javafx.beans.property.ReadOnlyObjectWrapper; | ||
|
||
/** | ||
* Convenience property that extends {@link ReadOnlyObjectWrapper} for {@link VFXTableState}. | ||
*/ | ||
public class VFXTableStateProperty<T> extends ReadOnlyObjectWrapper<VFXTableState<T>> { | ||
|
||
//================================================================================ | ||
// Constructors | ||
//================================================================================ | ||
public VFXTableStateProperty() {} | ||
|
||
public VFXTableStateProperty(VFXTableState<T> initialValue) { | ||
super(initialValue); | ||
} | ||
|
||
public VFXTableStateProperty(Object bean, String name) { | ||
super(bean, name); | ||
} | ||
|
||
public VFXTableStateProperty(Object bean, String name, VFXTableState<T> initialValue) { | ||
super(bean, name, initialValue); | ||
} | ||
} |
Oops, something went wrong.