Feature: Grid: get/set cursor position
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 717
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 3
Description
I would like to propose new feature for Grid.
When you click somewhere in the grid, the grid is showing a "cursor" - selected cell. You can move the cursor by arrow keys. The cursor is shown also when the grid selection mode is NONE.
It would be fine to be able to handle the cursor position programatically (get, set, listen to move event).
class GridCursorPosition {
int columnIndex;
int rowIndex;
};
GridCursorPosition p = grid.getCursorPosition();
grid.setCursorPosition(columnIndex, rowIndex);
Event CursorPositionChangeEvent and listener grid.addCursorPositionChangeEventListener(...).
Example: You can attach handler that reacts to cursor moves and displays special info according to currently selected cell.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Start by locating the Grid implementation and its existing cursor, selection-mode, and keyboard-navigation entry points. Review how Grid state and events are exposed, then establish the get/set cursor API and cursor-position change listener described in the issue; done means programmatic reads, updates, and move notifications work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100