property in .wbp-component.xml

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

property in .wbp-component.xml

Postby George » Wed May 04, 2011 1:26 am

Hello,
i wish to have in my property tab 2 property when i change the first automatically the same change in the second property.
in .wbp-component.xml i have

<method-property title="method1" method="method1(java.lang.String)"/>
<method-property title="method2" method="method2(java.lang.String)"/>

and in .java :

public void method1(String s){
method2(s);
...
}
public void method2(String s){
....

}

the 2 property it appear in property tab and it is works but i dont have the change in second property automatically.

thinks for your help.
George
 
Posts: 29
Joined: Wed Apr 06, 2011 4:25 am

Re: property in .wbp-component.xml

Postby Konstantin.Scheglov » Wed May 04, 2011 4:55 am

You will need to write code to implement this.
Use
Code: Select all
org.eclipse.wb.core.model.broadcast.GenericPropertySetValue
listener to listen for setting value and then change second property.
Konstantin.Scheglov
Moderator
 
Posts: 186
Joined: Tue Oct 18, 2005 8:11 pm
Location: Russian Federation, Lipetsk


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests

cron