Chaining Animations to Canvas or SVG in GWT app? Lienzo? RaphaelGWT?
Hello - I'm coming back to GWT after a long trip into non-web related work. A few years ago I had used RaphaelGWT to create some very nice animated visualizations in a GWT app, but it doesn't look like that project or Raphael itself have been updated in some time. Which may make some sense now that HTML5 canvas support is a bit better. Lienzo appears to have nice support for creating animations, but I don't see an obvious way to chain together a sequence of drawing primitives (for example, draw a circle, delay, draw a bisecting line in the circle, delay, label one half with text, delay...) and potentially cancel that sequence if the render pipeline needs to be restarted before the whole chain finishes. In that earlier app, I recall building something on top of RaphaelGWT for this sort of thing, but my recollection is it was a callback infested nightmare that I can only hope is easier to avoid now than it was in 2011. Is Lienzo a good GWT library for this sort of thing, or should I be looking at something else? Or is there some other GWT-centric approach to creating a canvas element or SVG that queue up a series of graphics operations? Maybe back to RaphaelGWT? Thanks for any advice or suggestions. Jim -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: GWT Developer Plugin for Firefox 9
On Dec 22, 5:29 am, Alan Leung wrote: > Alright, FF9 tested on all OS. Let me know if you run into any problems. > Well, that was the Christmas present I was hoping for... Thanks Alan! -- 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: too much code: GWT Development with Activities and Places
On Sep 26, 2:49 pm, camerojo wrote: > It is the bugs in the GWT core that I feel need to be strongly > prioritized. That is where any development resources that Google > assigns to GWT are most profitably deployed. > > My worry is that I see those valuable resources being applied to new > high level architectural concepts which may or may not be useful to > users, while nasty reported bugs remain for months or even years in > the core functionality. A solid core is critical. I'm don't want to seem unappreciative by adding to a discussion that might be a little critical, but I couldn't agree more strongly with what John said above. I've struggled to get excited about much of the GWT functionality since 2.2 came out and I keep hoping the focus will change back to infrastructure rather than architecture. Core functionality (date/timezone/calendar, drag and drop, etc.) and weird compatibility problems (FireFox key events and similar) seem to languish for so long. Arguably, much of this isn't Google's responsibility, but the vision of GWT as a layer over all the browser craziness implies these areas (along with regular GPE updates, no matter how annoying Mozilla's policies) should be something of a priority. Beyond this, some people seem to make the case that third parties should be filling the gap with various UI widgets, but the lifespan of the various bits of code floating around out there makes using third party parts problematic. I'm amazed at how much pre-2.0, listener- centric code is still out there. I feel like I'm in jungle as soon as I start looking around outside the toolkit. A stable set of core UI widgets (masked text entry, date/time pickers, currency, etc.) would go a long way towards making GWT easy to use to build meaningful apps with a lower learning curve. In a nutshell, I'd have been much more excited to see a healthy list of compatibility fixes and a really nice timezone-savvy date/time picker that I knew would be supported long term rather than all the Roo stuff that came out recently. Not that I don't appreciate everything that's already there, though. GWT is awesome and I just hope to see it keep getting better. -- 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.
Simulating button click in DialogBox with key event?
I know I'm missing something obvious here, but what's the current correct approach to catching a keyboard event to close a DialogBox or do something similar (i.e., simulate clicking the "Save" or "OK" button)? I found an older example that uses onNativePreviewEvent() that seems to be unsupported now, and I've got some other mischief running in a class derived from FocusPanel that overrides onKeyPress(), but but I can't seem to get anything working with anything derived from DialogBox... Thoughts or advice appreciated. -- 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: Feedback on different backends for GWT
It sounds like much of your performance is issues will probably be more database related than anything, so a lot of the other backend decision probably come down to personal preference or experience. I've been working on a GWT project that talks to a Django/MySQL backend for several months. The RPC is all JSON, which requires a bit of marshalling logic on each end, but so far it's not been a maintenance problem (the data model is fairly stable). If you're worried about Python's GIL for concurrent web requests, I don't think that's an issue because you're going to be running different instances of the runtime (each with their own GIL) for parallel web requests. Apart from a personal preference for Python's syntactic economy, I found I could get my head around Django's ORM, session management and other back-end functionality very quickly. Not wanting to rebuild all of this (or relearn in a new framework) is primarily what drove the Django selection. The Java servlet path may just be suffering from a wealth of options, but it felt like a lot more mental effort to put the appropriate platform together. Which probably just means I'm lazy. It's the devil you know... I'm sure somebody with more depth of experience on the various Java server side frameworks would come to different conclusions. As rjcarr points out, GWT-RPC makes a compelling case for going that route especially with the tools evolving more and more. The downsides you've pointed out are definitely there... You're switching between languages all day (forgetting semicolons in Java and putting extraneous ones into the Python), and you catch a lot more runtime issues that a strongly-typed language would have been caught at compile time, but still nothing FireBug and Django's debug responses don't highlight well. -- 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: TabLayoutPanel + dynamic tab content + DialogBox = ?
On Feb 23, 1:08 pm, Greg Dougherty wrote: > Good idea. I've created such a request. Thanks Greg... I posted a comment and starred it, and will keep my fingers crossed. Looks like another round of refactoring this bloody and butchered dialog box tonight for me... -- 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: TabLayoutPanel + dynamic tab content + DialogBox = ?
On Feb 22, 8:02 am, Jeff Larsen wrote: > THe problem is that with dialog box, it resizes itself to be the size of > widget it contains, and since TabLayoutPanel has no defined size, it won't > properly resize itself. > > You could getting the size of the dynamically generated widgets that > TabLayoutPanel contains, then adding that size to the size of the tabs and > setting the dialog box to that explicit size, but I think the cleaner > solution would be to just use TabPanel. Thanks Jeff... Any advice on getting the size of the stuff I'm dynamically building? My problem is if I just add the resulting panels to the TabLayoutPanel, then try something like getAbsoluteHeight() on them, it winds up being zero. I started down the path of building something to estimate the dimensions of the layout as it was constructed, but I realized that was going to be a non-trivial expedition... -- 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.
TabLayoutPanel + dynamic tab content + DialogBox = ?
So... I've got a TabLayoutPanel I'm trying to embed in a DialogBox, where the contents of the tabs are generated at runtime. I've seen the discussion about making sure DOCTYPE is right and that I'm pulling in CSS for the tabs. I've actually got another similar instance of TabLayoutPanel working fine as part of my main (LayoutPanel based) layout, but if I pop up a DialogBox with a TabLayoutPanel in it, I'm missing the actual tab content (the tabs themselves show up fine, styled just like my working instance.) If I explicitly set the height of the TabLayoutPanel to something, I can see the content fine. My problem is all my tab content is dynamically generated, and ideally I'd like to see the TabLayoutPanel (and the containing DialogBox) resize itself. Lots of gnashing of teeth today over this. And so, it occurs to me that DialogBox isn't descended from a LayoutPanel and I'm wondering if TabLayoutPanel is really destined to work in a DialogBox at all when resizing might be concerned... TabPanel is deprecated, and there's no LayoutDialogBox or anything around so I'm wondering how best to proceed. Is there a clean recipe for adding a bunch of content to a TabLayoutPanel and then explicitly getting it to resize itself (and it's non-Layout derived enclosures?). I tried adding all my panel contents and then just calling TabLayoutPanel.OnResize(), but didn't get anything different. Or is my best bet going back to TabPanel and wait for the day that blocks a GWT upgrade? Thoughts or insights appreciated... -- 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: Logging problem, please Help !
Heck, never mind. I had logging disabled in my gwt.xml file, and apparently that still allows logging to happen with a default formatter in Eclipse. Once I enabled logging, the handlers got installed and my messages are formatted (almost) the way I want them. [slaps head, goes looking for more coffee... ] -- 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: Logging problem, please Help !
On Dec 27 2010, 12:11 pm, Mauro Bertapelle wrote: > // initialize logger with custom formatter > static { > Handler handlers[] = Logger.getLogger("").getHandlers(); > for (Handler handler : handlers) { > handler.setFormatter(new CustomFormatter(false)); > } > } > Am I missing something, or do log formatters not work with the log output to the 'Console' tab in Eclipse? I never seem to have any handlers returned from getHandlers(), but somehow I'm getting log output there... That date/class line simply crushes readability, and the Eclipse panel seems like an ideal place to be monitoring output... Feel like an idiot after spending an hour fooling with this... :-( -- 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: Network visualization with GWT
On Feb 15, 4:52 am, Uemit wrote: > or Raphael (http://raphaeljs.com/) but I don't think they > provide a GWT wrapper. I've been using the RaphaelGWT wrapper the Hydro4GE guys built with pretty good cross-browser results... http://code.google.com/p/raphaelgwt/ -- 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: Sharing objects between several windows to enable interaction
You might take a look at the gwt-dnd framework, specifically the 'Example 7' windowing sample... http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/DragDropDemo.html#WindowExample That's one way to have the behavior of multiple windows/views within a single GWT app/browser window. -- 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: Announcing GWT 2.0 Milestone 2
Is there a corresponding build of the GWT Incubator library in sync with MS2? Thanks! --~--~-~--~~~---~--~~ 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: Announcing GWT 2.0 Milestone 1
Is there a build of the GWT incubator library available for download somewhere for use with the GWT 2.0 ms1 build? --~--~-~--~~~---~--~~ 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: How to fire events registered with a HandlerManager?
Thanks Thomas... That and gazing wisely (or at least trying to give the appearance of looking somewhat informed) at TextBoxBase.class got me this... public class MyComposite extends Composite implements HasValueChangeHandlers { private void internalMethodToHandleUpdates() { // handle validation and all sorts of other stuff, then if // if it looks good let outsiders know... ValueChangeEvent.fire( this, "theNewValue" ); } public HandlerRegistration addValueChangeHandler(ValueChangeHandler handler) { return addHandler(handler, ValueChangeEvent.getType()); } } ..which looks like it should work. Still fuzzy on why the widget can't manage an independent list of handlers under the hood, and the event typing system still has me baffled, but this'll get me past the puzzle box that kept me busy yesterday and seems less complex than what I was doing... Thanks for your help! On Aug 20, 2:25 am, Thomas Broyer wrote: > On Aug 20, 2:33 am, jscheller wrote: > > > Hello - > > > So, I've got a composite that has something like this inside it... > > > private HandlerManager changeHandlers = new HandlerManager( null ); > > > public HandlerRegistration addValueChangeHandler(ValueChangeHandler > > handler) > > { return changeHandlers.addHandler(ValueChangeEvent.getType(), > > handler); } > > You shouldn't ever instantiate a HandlerManager (except if you use one > as an "event bus"; but that's another story and at least this rule is > true for widgets); just call the Widget#addHandler(...) method. > > public HandlerRegistration addValueChangeHandler > (ValueChangeHandler handler) { > return addHandler(handler, ValueChangeEvent.getType()); > > > > } > > ...and somewhere down the pipeline, I want to actually fire off an > > event to anyone who registered a handler when the composite decides > > it's represented value has changed and wants the rest of the world to > > know. However, the syntax for actually constructing and firing the > > event off has got me pulling my hair out. > > > I've tried variants of sending the event through the change > > handlers... > > > changeHandlers.fireEvent( new ValueChangeEvent("foo") ); > > changeHandlers.fireEvent( new ValueChangeEvent("foo") ); > > > ...and using the static fire() method in the event class itself... > > > ValueChangeEvent.fire( changeHandlers, "foo"); > > > ...and Eclipse complains loudly about all of these constructions. I > > mean, I know this can't be that hard, but I can't find any good > > examples of things like this using the new (GWT 1.6 or later) event > > handlers, and reading the code sends me down a DOM event/Java generics > > rabbit hole that I'm frankly not experienced enough to deal with > > yet... > > > Any help appreciated! > > ValueChangeEvent.fire(this, "foo"); --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
How to fire events registered with a HandlerManager?
Hello - So, I've got a composite that has something like this inside it... private HandlerManager changeHandlers = new HandlerManager( null ); public HandlerRegistration addValueChangeHandler(ValueChangeHandler handler) { return changeHandlers.addHandler(ValueChangeEvent.getType(), handler); } ...and somewhere down the pipeline, I want to actually fire off an event to anyone who registered a handler when the composite decides it's represented value has changed and wants the rest of the world to know. However, the syntax for actually constructing and firing the event off has got me pulling my hair out. I've tried variants of sending the event through the change handlers... changeHandlers.fireEvent( new ValueChangeEvent("foo") ); changeHandlers.fireEvent( new ValueChangeEvent("foo") ); ...and using the static fire() method in the event class itself... ValueChangeEvent.fire( changeHandlers, "foo"); ...and Eclipse complains loudly about all of these constructions. I mean, I know this can't be that hard, but I can't find any good examples of things like this using the new (GWT 1.6 or later) event handlers, and reading the code sends me down a DOM event/Java generics rabbit hole that I'm frankly not experienced enough to deal with yet... Any help appreciated! Jim --~--~-~--~~~---~--~~ 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: Possible to set -localWorkers compiler flag in Eclipse?
On Aug 19, 5:22 pm, "spike2...@googlemail.com" wrote: > But when I press Compile/Browse in the Hosted Mode I still only use 1 > processor, how do I change that? Are you passing a number after the flag, i.e. "-localWorkers 4" or similar? --~--~-~--~~~---~--~~ 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: Regarding applying Border to Flextable Cells
Swathi - You might try adding "border-style:solid;" and see if that makes things behave more consistently. Either way, get a copy of FireBug installed in FireFox and use the inspection feature to poke around the table causing you trouble. If there's some other style getting applied and undoing your changes, you'll see it immediately. If needed you can modify the style properties in real time there until you see what's tripping you up. Jim On Jul 28, 5:28 am, Swathi Kondepati wrote: > Hi All.. > > I Had problem with applying border to cells of an flextable.Please help > me.Actually the Problem is : > > I applied border to FlexTable cells using CSS styles but i am not > able to view the border for FlexTable cells in *Mozilla FireFox* but able to > view in IE.The cells contain empty strings like > > *flextable.setHTML(1, 1, " "); > flextable.getCellFormatter().setStyleName(1,1, "print-redcolorcheckbox");* > > The code in CSS file is as follows: > > *.print-redcolorcheckbox { > > background-color: #FE6767; > padding: 0.6px 0.6px 0.6px 0.6px; > border: 1px; > border-color: #FF; > > }* > > Please Help me its urgent... > > Thanks in Advance... > > Swathi.K --~--~-~--~~~---~--~~ 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: Possible to set -localWorkers compiler flag in Eclipse?
Thanks Jason! Too much digging in all the preferences and settings trees, only to find this right in front of me... Duh. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Possible to set -localWorkers compiler flag in Eclipse?
Hello - I'm using Eclipse 3.4.2 and GWT 1.7 and wondering if there's some way to set -localworkers (or actually any type of flag) for GWT compiles... Thanks! Jim --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---