i use the GWT TabPanel and want to use a DialogBox in one of these tabs. I think the DialogBox is added to the RootPanel because i see the box in every Tab.
Is there a option to see the box only in the box there the panel was created? Or must i create my own DialogBox or overwrite some methods (.show?)
Greetz,
Destiny
A DialogBox is is a popup and not attached to any of your panels. So you can't use a Dialogox in a TabPanel as it will not be attached to that panel as you found out yourself (it's attached to the RootPanel). If you want to only show this dialogbox when a specific tab is selected you need to hide the dialog box when another tab is selected. You can do this by adding a TabListener on the TabPanel and implement the onBeforeTabSelected method and check which tab is selected and hide or show the dialogbox.
Related
MUI5 Autocomplete does not seem to have a footer option in which you can place a custom "new item" option. The required flow is:
Autocomplete's options drawer is opened
Scroll to the bottom of the options drawer
New custom model is clicked (last option)
Result: A modal is opened to customize the new custom item
What is the best course of action to support such a behaviour?
Adding it manually can collide with the sort/search capabilities of the AutoComplete component.
My aim is to create a tabbed menubar instead of the traditional menubar presented in the latest TinyMCE 4.7.6. I plan to do this by hiding the menubar, then create a toolbar above the normal toolbar. This new toolbar would consist of buttons with the menu names such as File, Edit, Insert, View etc. When one of these buttons is clicked, the normal toolbar buttons would be replaced with the toolbar buttons under the relevant menu item. [I hope I have been clear to this point.]
In case I haven't worded my description well enough, I want to create something like the Microsoft Word 2013 menu style.
Here's my problem. I am unable to create the toolbar that would host the menu buttons (File, Edit etc buttons). The TinyMCE docs say nothing about creating custom toolbars. All there is, is on creating toolbar buttons and adding them to an existing toolbar. Anyone with an idea how this can be done? Thanks.
This is quite some work you want to do, so first of all let me tell you a "ribbon" skin is already existing, check it here
Now if you really want to make your own, first you have to understand the difference between a menubar and a toolbar
On this image there is one menubar and two toolbars
Here is the documentation for the menubar API and for the toolbar this is here
But you should really give a try to the existing skin first.
Is there a way to create a TabPanel like Button out of a regular com.emitrom.gwt4.touch.client.widgets.Button
I mean, TabPanel buttons are used to switch between tabs, and have this "pushed down" effect when a certain tab is selected, as it style blends properly with the TabBar of the TabPanel. I am not after the tab switching function but more on the push button function of a TabPanel button.
With TabPanel buttons are automatically inserted as TabPanel item is inserted. Looking at the code I can see that items are styled with: item.setIconCls(TouchIcons.INFO), so I set my button.setIconCls(TouchIcons.INFO) but the effect is not the same.
For some reason I can't use TabPanel so I just need to have this push button style with regular Button or if there's a PushButton.
Answered here: http://www.emitrom.com/node/313
The Button class does not support this feature. What you could do is use the SegmentedButton class with only one button and setAllowMultiple to true. That should do the trick.
Cheers,
Pat.
Regards.
I would like to create popup or dialog box which should be like another window where i need to have cross (*) mark to close window. please any one can suggeston this..
Gwt has a dialog box. You add layout panels to it and arrange what you want to show in it.
You can use custom button
to add your cross.
I've a huge panel with drop-down lists and checkboxes. To manage them I have to implement the ClickListener interface so that on expanding the drop-down list or clicking on the checkbox some actions are executed.
Then I have to show the dialog box with just one 'OK' button and this dialog should be modal. I create it using via the following constructor
final DialogBox msg = new DialogBox(false, true);
so it should be modal and it is except for drop-down lists and checkboxes because clicking on them calls to the onClick(Widget sender) method which knows nothing about the modality of the dialog box so it could expand the drop-down list or tick the checkbox.
I see that this could be resolved by just one if in that onClick() method where it should check if there is no modal window or there is one. But is there another option to resolve this issue?
Are you looking for setGlassEnabled(boolean)?