DisclosurePanel, disable header "clickthrough"
I have a DisclosurePanel with a few links inside the header. My problem is that when i click one of these links the click-event sink through to the DisclosurePanel header, and folds up the panel. Is there any smart way to stop this? I tried playing around with unsinking the event - but couldn't get it to work. Right now i'm down to putting the DisclosurePanel (with no header) in row 2 of a FlexTable and programming the header with different clickable zones in row 1. But I can't stop suspecting that there are a much smoother way :-/ Any ideas? -michael heide christensen -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Avoid "nested" events in DisclosurePanel
I'm having some difficulties with a DisclosurePanel, and could use some help. In the header of the DisclusorePanel have a link that and what happens when i click that link is that both the link's and the DisclosurePanel's onClick event is fired. Is there a way to suppress the DisclosurePanel's event only when it comes from the link? That is, when you press the link, only the link's onClick is fired, and if you click anywhere else on the DisclosurePanel header the normal DisclosurePanel event is fired. -Michael Heide Christensen -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
PopupPanel and ImageBundles
I'm currently working on a project (using GWT 1.7) where there are a lot of popup's. Also, the projects design states that buttons must be these fancy black things with a gradient effect, and a semi- transparent shadow around them. I implemented this as a Composite button class, with an internal DecoratorPanel. The fancy graphics with transparancy is archieved through png images in css. Popup's works fine, buttons works fine - but not togther IF using Internet Explorer (IE7)! As soon as I put one of the buttons on a PopupPanel it seems like all events are blocked or something. If i have a normal GWT Button, i can see the graphical click effect - but absolutely nothing happens. It then turns out that a friend of mine have encountered the excact same problem - when using an ImageBundle inside a PopupPanel, and as I remember it GWT uses ImageBundles to ensure transparancy when you use png's as backgrounds in css. Any idea how to get around this? -michael heide christensen -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
TabPanel mouseover
I have a TabPanel where some specific styling of the "tab headers" are needed. One style for the selected tab header, and another when the mouse is over a tab header that is not selected. All this work fine ... except that sometimes when changing tabs the mouseOver style is not removed. When adding tabs to the TabPanel I use the add(Widget w, Widget tabWidget) method, where tabWidget is a custom version of Label: --- public class TabHeaderWidget extends Label { public TabHeaderWidget(String s) { super(s); // enable mouseOver/mouseOut events on the label sinkEvents(Event.ONMOUSEOVER|Event.ONMOUSEOUT); } @Override public void onBrowserEvent(Event event) { if (getParent().getStyleName().indexOf("gwt-TabBarItem- selected") == -1) { // only do mouseover effect if the tab is NOT selected. switch (event.getTypeInt()) { case Event.ONMOUSEOVER: mouseOver(); break; case Event.ONMOUSEOUT: mouseOut(); break; } } else { // This was an early attempt to solve the problem :-/ mouseOut(); } } private void mouseOver() { // add style for text color addStyleName("tabhover"); } private void mouseOut() { // remove style for text color removeStyleName("tabhover"); } } --- Any ideas as to why this should not _always_ work? (btw, i'm using gwt1.5.2) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Doubt abut DialogBox
The css classes used by DialogBox is listed here: http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/DialogBox.html On Mar 30, 1:30 am, 5leipn1r wrote: > Hello, > I´m new at this forum, this is my first post. > I'm from Brazil, english is not my primary language, so I apologize > starting now for my poor english. > > - > > My first doubt is about how to work properly with DialogBox. > How do I change title bar style and color, background color, etc... > > Thanks in advice. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Styling specific part of a DockPanel?
I'm using a DockPanel with a menu in DockPanel.WEST and the main content in DockPanel.CENTER. The width of the WEST and CENTER cells are set with something like myDockPanel.setCellWidth(menu, "20%"); myDockPanel.setCellWidth(content, "80%"); My problems start when i want to print a page - but not the menu. I disable the block (a custom Composite) with the menu in it using css (display:none). That kinda works, as the menu is hidden. The WEST part of the DockPanel however is a table cell which looks something like this ... ... and that one is still there :-( So in my printouts there are a fat, empty space on the left side. I have been unable to find a way to add a styleclass to a specific part of the DockPanel so it can be hidden. The best hack i've found is to get the html for the whole DockPanel (myDockPanel.getElement().getInnerHTML()) and then do a few "String.replace" where 20%-->0% and 80%-->100%. It works but its UGLY - and error prone. I'm also dreading to have to write som java-doc for that pile of rubbish :S help. regards Michael Heide Christensen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---