TableView Enhancements

雨燕双飞 提交于 2019-12-25 08:57:23

问题


The TableView still leaves a lot to be desired. Does anyone have a more complex example of a TableView that you would like to share? Here's what I'm missing:

  • Insert and Delete row: Possible solutions:

    • press TAB on the last cell and new row gets inserted automatically
    • right mouse button -> context menu -> insert line (or delete line)
    • a table footer with table navigation and insert/delete buttons (like MS Access)
    • keyboard shortcut
    • ...

    Insert and Delete should be either at the current row position or at the bottom of the table. Of course the new row should be highlighted.

  • Copying / Duplication of rows inside the TableView

  • Copy selected cells to the clipboard

    (solution exists: copy multiple cells to clipboard, paste into table is missing)

  • Insert a row with default values

  • Type to Edit: I don't want to have to doubleclick on a cell first in order to edit it. When you type on a cell, the table should automatically go into edit mode.

  • Navigation options like e. g. TAB = cell in next column, ENTER = cell in next row

  • Filtering should be possible via components inside the tableview, not via components (TextField etc) outside of it. A filter indicator (like the sort indicator) would be nice.

  • Changing the visibility of columns should be convenient, not via multiple clicks of the tableview menu button (for every column you have to click the menu button separately to show the available columns). The tableview menu button should be customizable

    (solutions exist with reflection and without reflection)

  • Row and column headers should be possible

  • Validation of cells, so that when you are in edit mode and enter text instead of digits into a numeric cell you get the option to cancel the edit mode and revert to the default value

  • A (fixed) table footer which could e. g. show the sum for each column would be nice

  • Freezing of columns (there's already a Jira task for this)

Some of these were covered partially years ago from what I've seen. But I couldn't get a clear How-To impression and maybe things have changed with JavaFX8.

In case someone likes to contribute to any of these mentioned features, please share your thoughts. Thank you very much.

来源:https://stackoverflow.com/questions/27814811/tableview-enhancements

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!