I have already all required properties of table (i.e. rows, cols counts, style, class, header style, etc.).
I need to add table with this properties when user clicks on my custom button, without going through any dialog.
I thought about showing dialog and substituting required fields with my data and triggering OK click. But this.. kinda ugly solution.
Please tell me, is there any elegant solution for this task ?