java.lang.Object
impl.org.controlsfx.spreadsheet.FocusModelListener
- All Implemented Interfaces:
ChangeListener<TablePosition<ObservableList<SpreadsheetCell>,?>>
public class FocusModelListener
extends Object
implements ChangeListener<TablePosition<ObservableList<SpreadsheetCell>,?>>
The FocusModel Listener adapted to the SpreadsheetView regarding Span.
-
Constructor Summary
ConstructorsConstructorDescriptionFocusModelListener(SpreadsheetView spreadsheetView, SpreadsheetGridView cellsView) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidchanged(ObservableValue<? extends TablePosition<ObservableList<SpreadsheetCell>, ?>> ov, TablePosition<ObservableList<SpreadsheetCell>, ?> oldPosition, TablePosition<ObservableList<SpreadsheetCell>, ?> newPosition) static intgetNextRowNumber(TablePosition<?, ?> pos, TableView<ObservableList<SpreadsheetCell>> cellsView, SpreadsheetView spv) Return the Row number right after the current TablePosition (including the RowSpan to be on a visible Cell)
-
Constructor Details
-
FocusModelListener
Constructor.- Parameters:
spreadsheetView-cellsView-
-
-
Method Details
-
changed
public void changed(ObservableValue<? extends TablePosition<ObservableList<SpreadsheetCell>, ?>> ov, TablePosition<ObservableList<SpreadsheetCell>, ?> oldPosition, TablePosition<ObservableList<SpreadsheetCell>, ?> newPosition) - Specified by:
changedin interfaceChangeListener<TablePosition<ObservableList<SpreadsheetCell>,?>>
-
getNextRowNumber
public static int getNextRowNumber(TablePosition<?, ?> pos, TableView<ObservableList<SpreadsheetCell>> cellsView, SpreadsheetView spv) Return the Row number right after the current TablePosition (including the RowSpan to be on a visible Cell)- Parameters:
pos-cellsView-spv-- Returns:
-