it's possible in jfreegraph add an event handler on category axis? I have a gantt graph built in swing environment, I would like to add a "mouseclick" event on task description(that appears on left of ), anyone could help me?
thanks
Add a ChartMouseListener to your ChartPanel; you can examine the ChartEntity returned by the getEntity() method of the corresponding ChartMouseEvent.
Related
I'm using magnolia cms and I created a customized combobox with com.vaadin.ui.CustomField and it saves values in jcr, but when I try edit a node in my app, the value previously saved dont displayed. Someone has any hints why this happens and how can i solve it?
thank you all in advance
Mário
If you have created it by extending Magnolia's SelectFieldFactory you probably need to extend info.magnolia.ui.form.field.factory.SelectFieldFactory#createDefaultValue(Property<?> dataSource) method.
If you have created your field by other means, most likely you need to look somewhere between your datasource and place where you initialize the field and fill it with values.
I want to add menu support for each series in my StepArea chart in jfreeChart.
Can anybody tell be how we can do this in java?
Write an Action for each menu item like they show here, and use the Action to make your menu item, like they shown here.
Hijust want to ask if Extjs Group grid have capabilities on displaying row data to other grid/window upon click on the main groupgrid instead of displaying by collapsible on the same grid, sorry I haven't created my own codes yet I just want to ask ideas if this is possible.
for example
main grid contains top providers records sorted by 'utilcost' upon clicking the record, another window/grid will pop up to show all the records under the clicked provider. By the way Im using MVVM architecture.
Thanks any answer or ideas will be gratefully appreciated.|
Thanks
Of course it is possible : listen to the itemclick event. The callback function takes the record as argument.
Look at the doc http://docs.sencha.com/extjs/4.2.2/?mobile=/api/Ext.panel.Table#event-itemclick
Based on a user action, like click of a button, we need to update a grid cell and modify its background color and tool-tip.
Please note that it has to be only a particular cell of grid record and not the entire column affecting all the records.
Thus, how can we update these two things for a particular grid record cell - background color and tool-tip - dynamically?
Thanks for help in advance.
PS: ExtJs version 4.1.1
I have been able to find a solution for this. Though, not sure if its the best way, but posting it here as it may help someone looking for the same.
The solution is to write custom renderer function for the column which needs to be updated and calling the following code on the user action at which the update is required (like in the handler of the button clicked):
grid.getView().refresh();
The above code will invoke the column renderer function and this renderer function should be able to judge which background color and tool-tip to be applied at the grid column as per the current state of application.
Hope this helps.
In my application I call App.Current.MainWindow.Show()/App.Current.MainWindow.Hide() to show/hide my application but I don't know how to catch the event when the form is hidden/showed. Please help if you know how to!
One of your tags is WPF and the other is WinForms... I'm better with WinForms, so I'll answer for that tag.
The Form.Shown event documentation is here with sample code...
There is no corresponding Form.Hidden event. The best you can do is choose from Form.Closing or Form.Closed or one of the other events.
Added from my comment above
Question - if you're CALLING the Hide and Show in your code, why do you need to capture the events? You already KNOW when it's happening. If you want to run some code inside the form after hiding and closing it, expose the code as a public function, and call the function after showing and hiding the form...