ATTENTION: THIS PROJECT CONTINUES TO LIVE IN THE FOLLOWING PROJECT: Toolbox
An array based observable matrix implemented in Java.
It will fire the following events:
All events are extending MEvent and so you could either subscribe to specific events e.g.
matrix.setOnItemChanged(e -> { ... })
matrix.setOnMEvent(MItemEvent.ITEM_CHANGED, event -> { ... });
or you could subscribe to a group of event e.g.
matrix.setOnMEvent(MItemEvent.ANY, event -> { ... });
The matrix can hold objects of any type, initialize it as follows
// Matrix with Integer objects
ObservableMatrix<Integer> integerMatrix = new ObservableMatrix<>(Integer.class, 3, 2);
// Matrix with JavaFX Label objects
ObservableMatrix<Label> labelMatrix = new ObservableMatrix<>(Label.class, 5, 5);
The matrix supports methods for the following operations:
setResizeMatrixWhenInnerRowOrColIsRemoved(boolean resize)
Please find a little example in the Demo class.