Anyone knows how to add an ID to GWT tab panel tab headings so that they can be used in Selenium like applications.
Why not get to element, and set as property:)?
tagPanel.getElement().setAttribute("id", "myId")
Related
I'm trying to customize the about dialog in my eclipse RCP application. I already managed to add my logo and to replace the title and the text body as described under Branding Your Application.
I would also like to add some buttons to it: send a feedback or open the wiki page etc.
Is there a way to do it or achieve a similar functionality?
Any help is much appreciated.
The About diaog (org.eclipse.ui.internal.dialogs.AboutDialog) does not support any configuration.
The 'feature image row' you have highlighted is populated from the IBundleGroupProvider array returned by Platform.getBundleGroupProviders(), I don't see any way to add to this.
I just started learning Google Web Toolkit (GWT). How do I implement header, left navigation bar and footer in my GWT application?
How can i place the header and footer in one page and reuse the same in all other pages?
Please help me how can i achieve the above requirement?
I like using SplitLayoutPanel. Here you will basically only change the center panel and leave northe west etc alone.
You can find a very good overview here.
You can create a template in Ui:Binder with your basic layout, and use this template for all new pages.
Another option is to create a custom widget for you menu, header and footer. Then you again can use a template for new pages, but instead of including each button, label, etc., you just include your custom headerWidget, footerWidget and menuWidget.
As others already suggested, you use one of the LayoutPanels to organize your page. My favorite is LayoutPanel. You add your headerWidget, footerWidget, and menuWidget to this LayoutPanel and specify their position.
I recommend that you use a Ui:Binder for this: it's a more convenient way to do layouts, it's very visual (helps to cut on the number of mistakes), and much easier to maintain.
I am looking for an Open Source lib for GWT 2.3+ which has dynamic TabbedPane (with close tab button, scrolling, events support etc). I googled but couldn't find any. So I need your skilled advice. Is there such a lib and where to find it?
Thanks
SmartGWT? here is the link to the showcase of TabSet component. What do you mean by events? EventBus? I was using the GWTP framework for this purpose.
EDIT:
license
You can easily build it as a custom widget in GWT.
You need a top panel to show your "tabs" and a panel below it to show a tab content. When a user clicks on a tab, you populate the bottom panel with a selected tab content. You can easily add a button to your "tab" widget and attach a ClickHandler to it to remove the corresponding tab from the top panel. This is basic GWT - you don't need an outside library for it.
You could look at the gxt advanced tabs example and the gxt overview
It is gpl3, but that said it is more like Android where the actual development is behind closed doors unless you have a support contract, and then the src code is available when a version is released.
There are some exceptions available if you have a FLOSS project that is not compatible with GPL3 -- say for example your project is under an Apache license but you want to include gxt (of course, the gxt portion of the code must still comply with gpl3 requirements)
gxt license
I have created GWTWebApplication , I have added one tabpanel and added htmltab penels.
now i want to change of tabpanel background style but i could not ,even i try to add decarated panel that case also same.
if i create GWT Javaproject that case it adds some predefine css style .but in webapplication project noting defult css styles
This is my code
TabPanel tabPanel = new TabPanel();
HTMLPanel hPanle1 =new HTMLPanel("");
HTMLPanel hPanle2 =new HTMLPanel("");
tabPanel.add(hpanel1,HPanel);
tabPanel.add(hpanel2,HPanel2);
My requirement is to change the tabbar background color only,and when i select my should be heligheted .
please give me response as soon as possible
It sounds like what you are looking for is a way to change the background of the active tab. You can accomplish this with GWT's built-in classes that it applies automatically to the active nav items.
Just put this in your CSS somewhere:
.tabpanel-activeNavItem {
background: red;
}
You can also look at the classes TabPanelResources and TabPanelStyle, and the css file tabpanel.css for details on the default styles. To understand more about how GWT handles CSS, read their CSS Resource Documentation
I'm trying to build a similar menu like in http://www.gwt-ext.com/demo/#menuButton. But i am using the SmartGWT instead of GWT-Ext and GWT Designer in Eclipse. I have built the SectionStack and add to it 3 sections. My problem is that i do not know what components to add in each section to get the selected items as in the example 'Showcase Explorer' menu of the link. Like the example i want to fill each section with several text lines but if i add just Label components then there are not selectable like in the example (when you view the menu in accordion mode).
Why dont you use http://www.smartclient.com/smartgwt/showcase/#menus_category_treebinding this menu instead?