gzz-dev
[Top][All Lists]
Advanced

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

Re: [Gzz] PEG ``vob_bgvob--humppake``: Background Vob interface


From: Tuomas Lukka
Subject: Re: [Gzz] PEG ``vob_bgvob--humppake``: Background Vob interface
Date: Thu, 6 Mar 2003 09:26:02 +0200
User-agent: Mutt/1.4i

> 
> Or would the following be correct?
> 
>    Interface BgVob:
>                                                                               
>   
>         public void setBorderColor(Color c) {}
>         public Color getBorderColor() {}

Uhh, no. You can't have method bodies in interfaces, and in interfaces
all methods are by default public. So this should be

         void setBorderColor(Color c);
         Color getBorderColor();

>    AbstractBgVob implements ColoredVob, BgVob:
> 
>         public boolean drawBorder = true;
>         protected List colors = new List(5);
>         protected Color bg = Color.white;

+ the set/get method implementations.

        Tuomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]