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 » Fri Apr 29, 2011 7:06 am

Hello
I want a property of a component in the properties tab that is in the form of a combobox that contains string and the user to select.
so what i should write in .wbp-component.xml of the component?
thinks for your help
George
 
Posts: 29
Joined: Wed Apr 06, 2011 4:25 am

Re: property in wbp-component.xml

Postby Konstantin.Scheglov » Fri Apr 29, 2011 9:01 am

You can use "stringList" property editor for this.
Attachments
CompositeA.wbp-component.xml
Component description
(486 Bytes) Downloaded 9 times
CompositeA.java
Component
(460 Bytes) Downloaded 7 times
Konstantin.Scheglov
Moderator
 
Posts: 186
Joined: Tue Oct 18, 2005 8:11 pm
Location: Russian Federation, Lipetsk

Re: property in wbp-component.xml

Postby George » Fri Apr 29, 2011 9:43 am

Exactely what i search and it work 100%.Thinks
George
 
Posts: 29
Joined: Wed Apr 06, 2011 4:25 am

Re: property in wbp-component.xml

Postby Eric Clayberg » Fri Apr 29, 2011 9:45 am

Glad that worked for you.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: property in wbp-component.xml

Postby George » Sat Apr 30, 2011 3:01 am

Hello,
Now if i want that the list of string be dynamic.
so for example i have method return a List of string. so in my property i will see this list and i have the possibility to choose one of the list.
thinks
George
 
Posts: 29
Joined: Wed Apr 06, 2011 4:25 am

Re: property in wbp-component.xml

Postby Eric Clayberg » Sat Apr 30, 2011 11:40 am

Now you are getting into the realm of creating your own custom property editor. You will need to look at the WindowBuilder open source project and look at the definitions of the existing property editors. If you use the same interfaces, patterns and extension points, you should be fine.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests

cron