Mailing list - Entries of 2006


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [qftestJUI] Recognition of GUI Components by Interface


  • Subject: Re: [qftestJUI] Recognition of GUI Components by Interface
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 11 Jul 2006 13:55:16 +0200

Hello Mark,

indeed, Interfaces are not checked for component recognition, only
classes.

Why don't you simply use java.awt.Component as the most generic base
class (or even java.lang.Object to work with the coming SWT version)?

If you really need the Interface information you can use a
FeatureResolver that checks for it.

Anyway, if you have that much control over the source, generic
components should be used in combination with setName and for that the
java.awt.Component solution is perfectly sufficient.

Best regards,
    Greg

"Michaelis, Mark" <mark.michaelis@?.com> writes:

> Hello,
>  
> I would like to make a GUI component as general as possible. Therefore I
> would like to use an interface it implements as base rather than a concrete
> class. Unfortunately it seems as if this does not work and you have a
> concrete class. Is there any workaround known? Or am I just doing something
> wrong?
>  
> Kind Regards
>  Mark
> 
> --
> Mark Michaelis
> Software Engineer Quality Assurance
> 
> CoreMedia AG
> Ludwig-Erhard-Str. 18
> 20459 Hamburg, Germany
> www.coremedia.com

-- 
Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH                     http://www.qfs.de
Tulpenstr. 41                                Tel: +49 8171 919870
DE-82538 Geretsried                          Fax: +49 8171 919876


Videos Downloads Documentation Buy Free Trial