Re: replace-with and when-property-is . . using it based on browser / user.agent value?

2012-11-26 Thread King_V
Thanks - that did the trick! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/CK9UxsdOnPcJ. To post to this group, send email to google-web-tool

replace-with and when-property-is . . using it based on browser / user.agent value?

2012-11-21 Thread King_V
All, I've seen a few examples where there is talk of substituting a class based on which browser is involved. So, I want to have one version of a class for Firefox, and one for everything else. I've tried the following, taken from examples I've found online:

Re: GWT, dependent projects, GWT Compiling, and deploying

2012-10-31 Thread King_V
Jens, Thanks for your reply - my issue was related to what you suggested - it turns out that my Common project has no server classes, but a number of classes in the shared package, which are extended by classes in the main project's shared package, which those in turn are used by the main proj

GWT, dependent projects, GWT Compiling, and deploying

2012-10-31 Thread King_V
All, I'm not sure how exactly this is supposed to be accomplished, but... I have a GWT project that has no Entry Point. It is basically a number of classes, etc., that will be shared among different projects. A "common" library, if you will. And, I have a project that I'm actually working on

Re: Using the Frame class, and adding Elements to it directly - doesn't display?

2012-06-06 Thread King_V
Thanks, that helped a lot, works as expected now! - Joe On Jun 6, 12:46 pm, Thomas Broyer wrote: > On Wednesday, June 6, 2012 6:13:04 PM UTC+2, King_V wrote: > > > Thomas, > > > Thanks.  I think I might be missing something very obvious, because > > I'm looking

Re: Using the Frame class, and adding Elements to it directly - doesn't display?

2012-06-06 Thread King_V
Thomas, Thanks. I think I might be missing something very obvious, because I'm looking at the APIs, and I have no idea how to do what you're suggesting. Code-wise, how do I get the document within the frame, so that I can add the new Elements to it? - Joe On Jun 5, 6:24 pm, Thomas Broyer wrot

Using the Frame class, and adding Elements to it directly - doesn't display?

2012-06-05 Thread King_V
All, I've got this very short program, and I don't understand why it's not working. I am creating a Frame object, trying to append element children to it, and while the Frame instance seems to be aware of its children, they do not get displayed. Here is what I have. What am I doing wrong? When

Can UI components be tested through JUnit/GWTTestCase?

2012-04-24 Thread King_V
Ok, I found some old messages (several years old) that says this cannot be done. However, when I look at: https://developers.google.com/web-toolkit/doc/latest/DevGuideTesting#DevGuideJUnitSetUp this seems to imply that you can actually test GUI items on a browser with such tests. I might well be

PopupPanel.showRelativeTo an individual date on a DatePicker?

2012-01-31 Thread King_V
Can this be done? I am not using any extensions or other libraries, just GWT 2.4 itself. I have a screen that is used for scheduling, and thus shows several DatePickers next to each other, each showing a different month, and with the month-forward and month-back buttons disabled. Some of the ind

Appearance Pattern - ok, is there a better explanation, a tutorial, a step-by-step?

2012-01-05 Thread King_V
All, Ok, I've read the article at http://code.google.com/p/google-web-toolkit/wiki/CellBackedWIdgets in dealing with the Cell-backed Widgets, and I can't say I'm any better off than I was before reading it. First, the following line: getCell().setTabIndex(tabIndex); doesn't work at all - it req

Re: Multiple DialogBoxes, bringing one to the front of others - a conundrum.

2011-11-28 Thread King_V
What you've suggested appears to ALMOST work. I have two styles in my CSS one called "activeWindow" and the other called "nonWindowZIndex" The former has a z-index of 1, the latter of 2. The trick I found was that I could not add the nonWindowZIndex style to the MenuBar objects. It has to a

Multiple DialogBoxes, bringing one to the front of others - a conundrum.

2011-11-18 Thread King_V
All, Ok, so I'm still, after a bit of hiatus, trying to create a Window- type of class that extends DialogBox. I'm going to call it MyWindow for now. I'm MOST of the way there. I've been able to create a Caption class that will have minimize, maximize, and close buttons. I've been able to get

Re: DialogBoxes and MenuBars . . . zIndexing a bad thing?

2011-11-18 Thread King_V
Button will still work, but a TextBox will never be able to get focus. In IE8, a Button will require a double-click to work, but a TextBox can still be used correctly. I don't know what other side effects will happen with other Widgets. Back to the drawing board On Nov 11, 4:17 pm, King_V

Detect mouse position when click on DatePicker?

2011-11-14 Thread King_V
All, Ok, I'm sure the question can be applied more generically - however, I figured I'd ask it for my particular problem. I have a DatePicker, and a class that implements ValueChangeHandler What I want to do is figure out the mouse's absolute x and y position on the browser window when this ha

Re: DialogBoxes and MenuBars . . . zIndexing a bad thing?

2011-11-11 Thread King_V
Well, this is embarrassing, but maybe the answer will help someone else who's run into the same problem. Override the onBrowserEvent() method in my own subclass of DialogBox as follows: @Override public void onBrowserEvent(Event event) { switch(event.getTypeInt()) { case Event.ONMOU

DialogBoxes and MenuBars . . . zIndexing a bad thing?

2011-11-11 Thread King_V
All, I'm working on my ever-evolving bit of code, and have run across something of an issue. My apologies for the lengthy prelude before I get to the actual question. Firstly, I have a "full-browser-screen" display - a DockLayoutPanel. Within it are a: MenuBar - NORTH FlowPanel - SOUTH N

Re: Using DockPLayoutPanel - can I get an autoexpanding south widget?

2011-11-09 Thread King_V
Danny, Thomas, Thanks for the suggestions. I actually came up with a workaround - though Thomas, I think I like the HeaderPanel idea, and may adapt it to my project instead. What I'm doing currently is: 1) Attach a DockLayoutPanel to the RootPanel 2) Attach a DockPanel to the CENTER of the DockL

Re: MenuBar - how can I cause it to wrap?

2011-11-09 Thread King_V
Uh, let me clarify my structure - what I've described above is more or less accurate, but the DockPanel is specifically the CENTER item of the DockLayoutPanel. Also, I should mention that the individual items will wrap in the menu bar (ie: an item that is called "File Menu" rather than just "File"

MenuBar - how can I cause it to wrap?

2011-11-09 Thread King_V
All, Ok, playing around with GWT in general, MenuBar right now in particular. I have a situation where a demo app screen I have is more or less looking how I want it to. But, I have an issue with MenuBar, and didn't know if there was a simple way around it. If the user shrinks the screen so tha

Using DockPLayoutPanel - can I get an autoexpanding south widget?

2011-11-08 Thread King_V
All, Ok, I realize DockLayoutPanel is a full-screen sort of Panel, that REQUIRES an explicit size for every widget attached. So, given that, I'm wondering if what I want to do is even possible. I'm trying to go for an application-like look. Essentially, the screen will be in three sections: 1)

Re: DatePicker - different styles for different instances?

2011-11-07 Thread King_V
Just posting here to bounce this one up - anyone have any idea if what I'm asking is possible? Or am I asking for something that can't be done? On Oct 21, 10:24 am, King_V wrote: > All, > > Ok, I've used DatePicker, NOT with DateBox, to show a calendar and > a

Re: Ok, CssResources and ClientBundle, what am I doing wrong?

2011-11-07 Thread King_V
Aw, crap - Aiden even specifically said that, and I missed it. Thanks for pointing it out. Now, don't mind me as I smack my palm against my forehead. Twice. - Joe On Nov 4, 4:35 pm, Danny Kirchmeier wrote: > Does your Style1.css now say this: > > @external .gwt-Button; > .gwt-Button{ > backgr

Re: Ok, CssResources and ClientBundle, what am I doing wrong?

2011-11-04 Thread King_V
Aidan, Thanks. I'm still really just learning this stuff, so I'll admit to some cluelessness. Your advice took care of the Exception being thrown. However, I've noticed that the Button is ignoring the style. Am I using this technique incorrectly? I also tried adding "! important" to the style

Ok, CssResources and ClientBundle, what am I doing wrong?

2011-11-04 Thread King_V
All, I'm getting an exception trying to use CssResources and ClientBundle. Admittedly, I'm completely new to it and don't really quite know what I'm doing. So, can someone explain to me why this doesn't work, and what exactly it is that I'm doing wrong? In any case, here's my code. Both classes

DatePicker - different styles for different instances?

2011-10-21 Thread King_V
All, Ok, I've used DatePicker, NOT with DateBox, to show a calendar and allow selection. No problem. In order to get my own styles for some of the components, my own project's .css has a few of the DatePicker css components in it. First question: What is .gwt-DatePicker used for? What parts o