Wednesday, January 2, 2013

Something unknown about the celltype of Header in 2.4 api

in the api
http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/user/cellview/client/Header.html#getValue%28%29
H - the Cell type

but in fact, why the following can work
ActionCell<String> addPCCell = new ActionCell<String>("add", new Delegate<String>(){
@Override
public void execute(String projectCd) {
// TODO Auto-generated method stub
System.out.println("addPCCell execute is triggered, projectCd = " + projectCd);
}
});

Header<String> footerAdd = new Header<String>(addPCCell){
@Override
public String getValue() {
// TODO Auto-generated method stub
System.out.println("footerAdd getValue() is called");
return projectCdModel.getSelectedObject();
}
};

the H is String (Header<String>), but not the Cell type (ActionCell<String>), why?
 




--
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/-/nT18qGZmJZEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

CSS DropShadow for DockLayoutPanel?

Hi,
I'm trying to apply a dropshadow around a DockLayoutPanel area. But can't get it to work:

    .shadow {
        -moz-box-shadow: 3px 3px 4px #000;
        -webkit-box-shadow: 3px 3px 4px #000;
        box-shadow: 3px 3px 4px #000;
        /* For IE 8 */
        -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000')";
        /* For IE 5.5 - 7 */
        filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000');
    }


<g:DockLayoutPanel unit='EM' styleName='{style.shadow}'>
<g:center...>
<g:east...>


Result: NO drop shadow at all. What might be wrong here?

--
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/-/7LZYweO6dvkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: dataGrid with onSelectionChange shield the button receive event

sorry, please ignore the first question, I found the execute method is triggered first before onSelectChange event of the datagrid.
but for the second question, I still do not have any clue now.

--
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/-/BCtrKqokh6YJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: dataGrid with onSelectionChange shield the button receive event

to clarify, it is not onclick event, it is the execute method of the ActionCell.

--
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/-/dXyv4akC5lsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

GWT CustomFieldSerializer Recursivity

I've been trying to work on a custom serializer but I've not been able to get it to work. So I've been investigating com.google.gwt.user.server.rpc.impl.SerializabilityUtil. What I'm seeing is a strange recursive loop that looks odd to me. 

I can register a custom field serializer on next to the class or in the rpc core class and both produce the same result. But for this example I'll show the serializer looks like in the loop in rpc core.

class com.google.gwt.user.client.rpc.core.com.googlecode.objectify.impl.ref.StdRef_CustomFieldSerializer - finds the serializer on this iteration
class com.google.gwt.user.client.rpc.core.com.googlecode.objectify.impl.ref.StdRef_CustomFieldSerializer_CustomFieldSerializer - but on this one it looks for this and sets the mapping in this var to null in this map classServerCustomSerializerCache

During the second time it clears the setting in the cache too, which doesn't make sense to me. During the second time it sets the mapped serializer in this var to null, classServerCustomSerializerCache. Any idea if this is to be expected?

While I see it finds my custom field serializer in the code, I get stumped wondering why the code behaves as it does. Well anyway, my goal is to get the custom field serializer white listed, but I can't seem to get it registered. 

Brandon Donnelson
http://c.gwt-examples.com


--
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/-/kZpLkEcYI4kJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Tuesday, January 1, 2013

dataGrid with onSelectionChange shield the button receive event

I have a datagrid which show project code and have a SingleSelectionModel attached to it, the SingleSelectionModel has a SelectionChangeHandler so each times the user select a different record in the project code datagrid, it will fire an onselectionchange event.
in the datagrid, I also has a button, I want when user click on the button, the onClick event is fired.
But the problem is, assume the record 1 is selected originally, when user pressed the record 2 remove button, the remove button onclick event will not be fired, instead the onSelectionChange event of the datagrid is fired.
How to solve this so when the user press a remove button on a non-selected record, the button onclick event is fired, not the onSelectionChanged event?

2)
as shown in the figure, the criteria table height is set to 153px, but when render in IE9, its height is 162.86px!! why?

--
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/-/9TULp16qLFYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

different gwt-textbox height in IE9 and FF13

I found that for gwt-textbox (without modify any of its css attribute), when render in IE9, the height is 22px but NOT including padding-top, padding-bottom, border-top-width, border-bottom-width, so in IE, the gwt-textbox is in fact 22+1+1+1+1 = 26px;
but in FF13, the height 22px is including padding and border, so in Firefox, the gwt-textbox height is really 22px.

why has these difference?

--
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/-/w_Kr-e7lqR8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.