Vertical align elements in FlowPanel?

2012-12-28 Thread membersound
Hi, how can I vertically center elements within a FlowPanel? I have several FocusPanels inside a FlowPanel, which means they are stacked on each other. One of the focuspanels has an image, which should be centered both horizontally and vertically within that focuspanel. But no matter what I

Get widget variable name from event?

2012-12-28 Thread membersound
Hi, is it possible to retrieve the name of an element that triggers an event? For example, if I have a FocusPanel which triggers a MouseOverEvent, can I get the variable name of that panel somehow from the event? @UiField FocusPanel panel; @UiHandler(panel) void mouseOver(MouseOverEvent ev) {

How to display an empty Panel/FocusPanel?

2012-12-28 Thread membersound
Hi, I want to have a FocusPanel without any content, but it should trigger some MouseFocus events. Are there any spacer elements in GWT which I could place into the FocusPanel? At the moment I'm just using a transparent little image that I place into the FocusPanel by: g:FocusPanel g:Image

Re: Get widget variable name from event?

2012-12-28 Thread Jens
No you can't. All you can do is Object source = event.getSource(); if(source == panel) { //event fired by specific panel } But this only makes sense if you have multiple event sources for a single method, e.g. @UiHandler({panel1, panel2}) void onMouseOver(MouseOverEvent event) {

CSS Styling of FocusPanel?

2012-12-28 Thread membersound
From eg TextBox I know that it is possible to alter the css style of an element by setting the dependentName like this: textBox.setStyleDependentName(readonly, true); .gwt-TextBox-readonly { background-color: lightgrey; border: none; } How can I do the same with FocusPanel? I tried

DataGrid / CellTable: ValueChangeEvent from CheckBoxCell in a custom built header

2012-12-28 Thread Alex opn
Hello folks, I've encountered a problem with a CheckBoxCellhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/CheckboxCell.htmlin a custom built header for a

How to the same MouseHandler to multiple components?

2012-12-28 Thread membersound
I have several same components that at this stage just perform the same operation. g:FocusPanel ui:field=panel g:FocusPanel ui:field=panel2 g:FocusPanel ui:field=panel3 @UiField FocusPanel panel, panel2, panel3; @UiHandler(panel) void handleClick(MouseDownEvent event) { //... }

How to add MouseHandler in constructor? (NPE)

2012-12-28 Thread membersound
I know I can just bind any ui component to any events by using @UiHandler like this: g:FocusPanel ui:field=panel @UiField FocusPanel panel; @UiHandler(panel) void handleClick(MouseDownEvent event) { //... } So far so good, but how can I manually add a mouse handler within the class

Re: DataGrid / CellTable: ValueChangeEvent from CheckBoxCell in a custom built header

2012-12-28 Thread Alex opn
CheckBoxColumn should be CheckboxHeader! Sorry for the confusion! Am Freitag, 28. Dezember 2012 14:18:00 UTC+1 schrieb Alex opn: Hello folks, I've encountered a problem with a

Attach multiple MouseHandlers to the same component via UiBinder?

2012-12-28 Thread membersound
Is there something to attach multiple Handlers to the same component? Similar to the following (which is not valid of course, but you get it): @UiHandler(myComponent) void onMouseDown(MouseDownEvent ev | MouseOutEvent ev) { //... } Or do I necessarily have to create 2 different handler

Re: How to add MouseHandler in constructor? (NPE)

2012-12-28 Thread Jens
In your constructor you have to do it after initWidget(uiBinder.createAndBindUi(this)); All your @UiField variables are filled by the call to uiBinder.createAndBindUi(this). Also if you use @UiField(provided = true) then you have to instantiate the field yourself before

RFED flushed context reaches server without nested entity changes

2012-12-28 Thread Avanish Raju
Hi GWT Gurus, I've been trying to get GWT RequestFactoryEditorDriver working for my entities with relationship - A contains a ListB. My editors display my data just fine now, and changes to a.name persist perfectly as well. Also, when I change the value of a b.name and do a driver.flush(), on

Re: browser specific file names after GWT compilation ?

2012-12-28 Thread Thomas Broyer
On Wednesday, December 26, 2012 6:21:09 PM UTC+1, ajay...@gmail.com wrote: GWT compiles java code in to html and java scripts. And it creates some files like B9409F85E92A0CC3FFD0D41AD0307BE5.cache.html (alphanumeric .cache.html). Is there a way to have these file names as fixed file names

Re: How to rewrite ClientBundle images to static uibinder images?

2012-12-28 Thread Thomas Broyer
On Thursday, December 27, 2012 2:52:46 PM UTC+1, membersound wrote: I know how to use images in general with uibinder, like: .ui.xml: g:Image resource='{res.image}' / .java: public interface Resources extends ClientBundle { @Source(image.png) @ImageOptions(repeatStyle =

Re: Cannot compile gtw maven plugin example from mojo.codehaus.org

2012-12-28 Thread Thomas Broyer
See https://code.google.com/p/google-web-toolkit/wiki/WorkingWithMaven Don't use the gwt-maven-plugin archetype as a starting point. On Thursday, December 27, 2012 6:59:04 PM UTC+1, Anatoly Chervyakov wrote: Hello folks I am interested in learning GWT and I'd like to use Maven as a build tool

Re: Protocol Buffers for GWT: Issue 2649

2012-12-28 Thread Thomas Broyer
On Friday, December 28, 2012 12:33:19 AM UTC+1, Goktug Gokdogan wrote: On Fri, Dec 21, 2012 at 8:20 PM, Thomas Broyer t.br...@gmail.comjavascript: wrote: On Saturday, December 22, 2012 2:50:00 AM UTC+1, Goktug Gokdogan wrote: GWT's built-in library space is already bloated and

JMockit compatible with GWTTestCase?

2012-12-28 Thread James Scott
Hello all- I'm trying to use JMockit in a GWTTestCase (JUnit 3, for what it's worth) and I'm not having any luck. I have jmockit.jar on my classpath for the test, but when I run it, I get this error message: [ERROR] Line 50: No source code is available for type mockit.NonStrictExpectations;

Re: GWT Crawlable (SEO)

2012-12-28 Thread Jens
The servlet filter is only for the crawler and the crawler will not navigate your app using PlaceChangeEvents. The crawler just loads an URL that will hit your server and your servlet filter. If the bot finds a hyperlink like #!myPlace then it calls your server using

Re: Vertical align elements in FlowPanel?

2012-12-28 Thread Mike Dee
You may be able to do it with CSS, but FlowPanels are not meant for controlling layout as you desire (centering). Can you try one of the other Panels, like VerticalPanel or LayoutPanel? On Friday, December 28, 2012 1:40:01 AM UTC-8, membersound wrote: Hi, how can I vertically center

Re: how to create columns with common header in data grid.

2012-12-28 Thread Mike Dee
I wanted something similar but did it differently. I created a CellTable with just a header row above another CellTable. The top CellTable had an extra header and nothing else. On Thursday, December 27, 2012 3:14:27 AM UTC-8, shray rawat wrote:

Re: How to know the css used by the datagrid header?

2012-12-28 Thread Mike Dee
The style name is probably obfuscated. The default styles for CellTable are not in the standard.css with other GWT styles. You can find them in com.google.gwt.user.cellview.client.CellTable.css. If you want to change them, make a copy, change the styles, and pass it to your CellTable

JMockit compatible with GWTTestCase?

2012-12-28 Thread Jens
Its not compatible. Why do you need to mock things in a GWTTestCase? You normally do it in an ordinary JUnit Test to mock out classes that use GWT.create() or JSNI. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this