Custom proprety of a custom widget

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

Custom proprety of a custom widget

Postby jldupont » Fri Nov 12, 2010 12:45 pm

Let's say I want to design myself a custom "MultiColorLed" derived from "com.google.gwt.user.client.ui.Image".

How would I expose custom properties e.g. "setColor(Color color)" so that the Design mode allows me to edit this property?
jldupont
 
Posts: 11
Joined: Thu Jun 26, 2008 12:24 pm

Re: Custom proprety of a custom widget

Postby Eric Clayberg » Fri Nov 12, 2010 1:00 pm

Any property that you want to edit should have standard JavaBean getters and setters.
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