nattable

Stop NatTable from going into edit mode when an editable cell is left-mouse-clicked

让人想犯罪 __ 提交于 2021-02-10 14:49:02
问题 NatTable's default behavior when an editable cell is left-mouse-clicked is to immediately launch the cell's editor. Users sometimes left-click simply to toss focus into the table, and then use the arrow keys to navigate around inside of it. Given the table's default behavior, they first need to dismiss the edit operation via ENTER, ESCAPE, etc. before they can move the cell selection. I'd like to alter this behavior so that a left-mouse-click selects the cell that was clicked, but does not

Stop NatTable from going into edit mode when an editable cell is left-mouse-clicked

核能气质少年 提交于 2021-02-10 14:46:35
问题 NatTable's default behavior when an editable cell is left-mouse-clicked is to immediately launch the cell's editor. Users sometimes left-click simply to toss focus into the table, and then use the arrow keys to navigate around inside of it. Given the table's default behavior, they first need to dismiss the edit operation via ENTER, ESCAPE, etc. before they can move the cell selection. I'd like to alter this behavior so that a left-mouse-click selects the cell that was clicked, but does not

Adding colors to row in nattable based on condition

南楼画角 提交于 2020-01-16 08:55:33
问题 I have a column 'Lifecycle' in my NAT Table based on which i have to set respective color to each row. Adding color to row works fine. The problem is when i use the scroll bar to scroll either left or right, the color disappears. I am not aware what i am missing. Kindly help me if you have any idea of how it can be resolved My code looks like: IConfigLabelAccumulator cellLabelAccumulator = new IConfigLabelAccumulator() { @Override public void accumulateConfigLabels(final LabelStack

Dynamic background in nattable

帅比萌擦擦* 提交于 2020-01-06 15:08:58
问题 I am reading some data from a javascript file and obtain the background color from it, it seems very simple but I cant find the proper function to dynamicly changed the background color base on these values. I have already tried changing configurations but it doesnot work, beacause the group of configlabels is not available for this colors. BR, 来源: https://stackoverflow.com/questions/39038057/dynamic-background-in-nattable

How to sort glazed TreeList?

China☆狼群 提交于 2020-01-06 03:18:05
问题 I have a pretty weird question - how to sort glazed TreeList? I am using it in SWT NatTable, and when my data provider is set to GlazedListsDataProvider with TreeList inside it, sorting works in a very strange way. It works fine, if I am using GlazedListsDataProvider with SortedList. For instance, my tree looks like that: Root Node1 Child1 Child2 Node2 Child3 I need to sort only children INSIDE Node1 and Node2, separately one of another (so that only child1 and child2 will change their place)

Questions on Nebula NatTable sorting and filtering

喜欢而已 提交于 2019-12-25 09:02:44
问题 I have been using Nebula NatTable for quite sometime in my project and is familiar with the basics. I Have 2 questions on sorting and filtering. There are separate examples given for sorting and filtering filter example, sort example . My question is , can I include both these features in one instance of NatTable? Can I remove the filterheader control after the NatTable instance is created? If yes, how can that be done ? 回答1: Yes and there are several examples showing that. Some of them are

Showing NatTable context menu

南笙酒味 提交于 2019-12-24 17:22:36
问题 I use NatTable. How to show context menu item on certain condition depending on the content of the cell? And how to select cell over which context menu was called? I bind menu with the following code uiBindingRegistry.registerMouseDownBinding( new MouseEventMatcher(SWT.NONE, null, MouseEventMatcher.RIGHT_BUTTON), new PopupMenuAction(menu)); UPD: I create menu like this, but 'Test' item is visible in spite of isActive always return false . What's wrong with it? menu = new PopupMenuBuilder

Delete rows from Nattable

偶尔善良 提交于 2019-12-18 09:23:25
问题 I want to implement a row deletion logic in a Nebula Nattable. This is what I plan to do: Add context menu to the Nattable which is described in http://blog.vogella.com/2015/02/03/nattable-context-menus-with-eclipse-menus/ Add an SWT Action to the menu which will implement the delete my question is, which is the best way to accomplish this: Should I delete the corresponding value from my data model and the table view is refreshed when I execute this.natview.refresh(); ? OR Should I get the

How do I fix NullPointerException and putting data into NatTable

和自甴很熟 提交于 2019-12-14 03:35:41
问题 When I try to use this piece of code: students.add(new Student("John","1", 3)); students.add(new Student("Chris","2", 2)); NatTable table = createTable(shell, students); table.refresh(); NullPointerException appears, maybe it is because something is wrong with getters in Student class or maybe in generating the table. Also one of the messages when this problem appears is ReflectiveColumnPropertyAccessor.getDataValue. Also I need to fix ColumnGroup in NatTable to display many exams properly.

Nattable add row command

主宰稳场 提交于 2019-12-13 03:45:59
问题 An E4 RCP application consists on several nattables. Material nattable allows to create new user defined materials. Material nattable includes filter columns. EventList<AncolabMaterial> eventList = GlazedLists.eventList(input_values_list); TransformedList<?, ?> rowObjectsGlazedList = GlazedLists.threadSafeList(eventList); SortedList<?> sortedList = new SortedList<>(rowObjectsGlazedList, null); this.filterList = new FilterList<AncolabMaterial>((EventList<AncolabMaterial>) sortedList); this