- 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
Constructors Constructor Description FocusModelListener(SpreadsheetView spreadsheetView, SpreadsheetGridView cellsView)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
changed(ObservableValue<? extends TablePosition<ObservableList<SpreadsheetCell>,?>> ov, TablePosition<ObservableList<SpreadsheetCell>,?> oldPosition, TablePosition<ObservableList<SpreadsheetCell>,?> newPosition)
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)
-
-
-
Constructor Detail
-
FocusModelListener
public FocusModelListener(SpreadsheetView spreadsheetView, SpreadsheetGridView cellsView)
Constructor.- Parameters:
spreadsheetView
-cellsView
-
-
-
Method Detail
-
changed
public void changed(ObservableValue<? extends TablePosition<ObservableList<SpreadsheetCell>,?>> ov, TablePosition<ObservableList<SpreadsheetCell>,?> oldPosition, TablePosition<ObservableList<SpreadsheetCell>,?> newPosition)
- Specified by:
changed
in 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:
-
-