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 "".

How would I expose custom properties e.g. "setColor(Color color)" so that the Design mode allows me to edit this property?
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

Author: "Eclipse Plug-ins"
Eric Clayberg
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