Ya, that's more or less how I'm doing it for my guibuilder.  I tried to
stick as close to the api as possible.  It allows for plugins pretty
well.

I guess I only used the PropertyEditor for editors that I was going to
call from my property sheet, but the same interface should work here as
well.

BTW, Mark, I'm totally wrong.  The java.beans package goes all the way
back to 1.2.2 at least.  I think it will work well for what we are doing
here.

I think you're right on Ray, I think the BeanInfo and accompanying
classes of java.beans.* would form a great api to base the plugin
portion on.

Richard
On Tue, 2003-02-11 at 16:21, Raymond DeCampo wrote:
> Richard Bair wrote:
> > The cool thing about this idea is that we'd be able to set properties
> > for any given appender without the need of a ton of custom code.  I'm in
> > the process of building a guibuilder right now as well, so reflection
> > and property sheets are almost second nature ;-)
> > 
> > The one drawback I see with going this route is that creating a really
> > generic tool sometimes means that the user interface isn't as intuitive.
> > 
> > For instance, I think it would make for a cleaner UI to provide the user
> > of a FileAppender a checkbox for bufferedIO and Append, and a spinner
> > control for the BufferSize (or maybe an editable combo box) rather than
> > providing a table that would list each of the properties and would use a
> > different editor depending on the datatype (like the property sheet in
> > VB or the guibuilder I've been writing).
> > 
> 
> My impression was that this is what BeanInfo classes should be used for. 
>   You can specify the editors for specific properties in the BeanInfo 
> classes using the PropertyEditor interface.  As an added bonus it is an 
> already established standard/interface, which should make it that much 
> easier for people to plug in their own appenders.
> 
> Disclaimer:  I've never actually done this so I don't know if it is 
> really viable.
> 
> Ray
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to