message feedback in forms

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

message feedback in forms

Andrea Antonello
Hi Jody,
my bad I forgot to send you the snippet about forms and message
feedback. Hope I am not too late.

So first you get the message manager from the t6oolkit and scrolled form:

IMessageManager mesgManager = new ManagedForm(toolkit,

You can then add as many messages and warnings as you want. an example
for an error might be:

mesgManager.addMessage(aStringMessageKey, "The input value is wrong
because....", null, IMessageProvider.ERROR, (Control) myWidget);

To clean the thing:

And that should be really all. The form engine handles everything else for you.

User-friendly Desktop Internet GIS (uDig)