I have created a JavaFX application, it have TableView to show table data. I am obfuscating final jar using Proguard-4.8, but unable to view data in TableView, we have created public static classes for table data binding. In my table if I have three columns say two columns show text and remaining one column have button added then after obfuscation I am able to see button only, rest two columns show blank rows.
Without obfuscation my jar showing all text data correctly. I have no CSS applied over TableView.
Can someone suggest me where I am doing wrong?
Thanks,
Are you using PropertyValueFactory? This would mean the property is accessed via reflection and if you obfuscate the property it can't be found anymore!
Related
In need of building a desktop application to deal table data imported from csv files, I have been working with JavaFX few months.
Now, I have hit a problem: I can't select multi-column in a tableview. What I want to do is that in my application users can select two columns, then trigger a button to combinate them into a new column and append the new one into the tableview. But it seem that JavaFX's TableView do not support to select multi-column or even a single column. In Swing I can finish this work easily with the link Java Swing Tutorials to Use Table.
However, I have done by adding listeners to column headers and setting corresponding trigger action like lighlight the selected columns and adding the selected to a recording List so that as user press the button my application could know what user selected.
But I think there must be some way nicely to meet the demand. And so what is it? Please give some useful imformation or tourials.
I am new in Xamarin forms and I need to implement a table in Xamarin forms. Requirement is-
Initially table will be empty and has four columns. After feeling form and clicking on submit button, new entry will be added in table. First column is Test, second column is single radio button, third column is again single radio button and forth column is button to delete that row it self.
I need to know which approach will be suitable to implement this requirement. Is it grid layout or tableview or something else.
Consider Table View use cases vs List View use cases. Table views are meant for static content. You should really consider a list view for dynamic content. (like adding a row with views) Being new to Xamarin.Forms, you should take the time to read completely through the documentation as (at least for me) it wasn't straightforward. Also, consider a WebView as radio buttons are not going to play nicely across platforms, and your problem would be easily solvable with jQuery.
I want to create a JavaFx LineChart able to display data from entity class dynamically selected by the user through a combobox.
Since the number of entity and their attributes is big and could be change, I want to create this process in a flexible way without hardcode the combobox filling and a switch case state to select the proper get method.
Any suggestions on how I can manage this two operations? I'm thinking to something like an application.properties file and the use of reflection, but I didn't find the right solution.
thanks in advance
How can You refresh a grid, when some new row was added to its datasoruce container or one of its rows has been edited?
I have tried the hacks written about here (http://www.helpsforcoder.com/code/31861375-vaadin-refresh-grid-after-row-modification.html ) and here (deleted link to malicious advertisement) but with no positive result. I add / edit the row in a separate subwindow that 'pop-ups' over the view, where the grid, that should update its contents, is placed.
grid.getDataProvider().refreshAll();
Grid listens to changed property values. So if you are working on the property level of vaadin everything should be fine.
If you extract your bean out of the BeanItemContainer you directly manipulate the values of the bean. That way the property container can not recognize your manipluating action.
So you have to send your grid implementation a message, the properties have changed manually.
When your BeanItemContainer still has the hard reference to the changed object, grid.markAsDirty() should work.
I am newbie to Qt. I have to display a chunk of data in a QTableView and filter it column wise. For this I have used QSortFilterProxyModel, but as per requirement each column of the QTableView should have a drop-down list which shows unique values in that column. On selection of any of these values in the drop-down, only the rows having that particular value in the column should be displayed in the QTableView (Like you can do in Excel).
How would I implement this?
I had the same issue a week ago
I found a tutorial explaining how to do it. see link below
http://programmingexamples.net/wiki/Qt/Delegates/ComboBoxDelegate
Now my problem is how to retrieve the value of a specific combobox.
I think it is such a complex things to do in C++ and Qt display a combobox into a tableView.
For being a web developer at first I can tell that web language are better suited to do thoses kind of things.
But still some time performance matter and I tried to do it in C++ with Qt but it is not as easy as it seems to be in Web language.
This is very general question, and if I try to explain it all it will take pages, so it's better if you read the Qt model/view architecture documentation.
You can create your own class inherited from QTableView to create your customized table view. You have to use delegates for drop down functions and all. so read the QItemDelegate class documentation and documentation on subclassing delegates as well.
If you want to display it always and not just when editing, I would suggest setting a widget for the specific column like described in this thread: Qt - QTableView - Clickable button in table row