Thursday, August 11, 2011

GWT UiBinder - Overload with added method when parameter is 'string'

Please help me!

------------------------------------------------------------------------------------------------------------------------
MyBaseTabPanel.java has a method:
------------------------------------------------------------------------------------------------------------------------
...
public void setTabPosition(TabPosition tabPosition) {
this.tabPosition = tabPosition;
updateStyles();
}
...
------------------------------------------------------------------------------------------------------------------------
MyTabPanel.java extends MyBaseTabPanel.java and overload method
'setTabPosition':
------------------------------------------------------------------------------------------------------------------------
public class MyTabPanel extends MyBaseTabPanel {
...
public void setTabPosition(String tabPosition) {
this.setTabPosition(TabPosition.valueOf(tabPosition.toUpperCase()));
}
...
}
------------------------------------------------------------------------------------------------------------------------
Form.ui.xml:
------------------------------------------------------------------------------------------------------------------------
...
<my:MyTabPanel tabPosition="bottom">
...
</my:MyTabPanel>
</ui:UiBinder>
------------------------------------------------------------------------------------------------------------------------
But this fails!
[ERROR] Cannot parse value: "bottom" as type TabPosition
[ERROR] Cannot parse attribute tabPosition Element <sbgwt:GxtTabPanel
tabPosition='bottom'> (:14)

But if move one of the overload method in MyBaseTabPanel or MyTabPanel
then it works
Why?

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate