tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsvetelin Saykov" <tsvetelin.say...@rushmore-digital.com>
Subject Re: ImageSource for Contrib Tree Component
Date Tue, 23 Nov 2004 16:01:56 GMT
Hi again,

Here are the images:

, , , , , , , , , , , .

Tsvetelin
  ----- Original Message ----- 
  From: Tsvetelin Saykov 
  To: tapestry-dev@jakarta.apache.org 
  Sent: Tuesday, November 23, 2004 5:43 PM
  Subject: ImageSource for Contrib Tree Component


  Dear All,

  In the latest implementation of the tree I have inserted a various of new images related
to the presentation of nodes. They are: , , , , , , , , , ,  and white space image. Totally
they are 11 images. This default images are part of the contrib package and they will be distributed
with it. They are inserted in tree as  private-asset.

  From the customization point of view it is possible that the people will required to change
these images. Which is the better way of enabling this kind of customization?

  One possible solution is to be defined the interface ITreeImageSource. The implementation
of this class will be factory for IAsset objects (in that case ImageAsset). There will be
added a special non required parameter to Contrib:Tree component. The implementation will
be something like this:

  public interface ITreeImageSource {
      public IAsset getTreeImageAsset(String imageName);
  }

  Each of the images will have its own unique Name. For example : "BottomCornerLine, BottomCornerMinus,
BottomCornerPlus, etc.)
  There will be 2 implementation of this interface: 
      DefaultTreeImageSource - will return the images as a private assets;
      ContextTreeImageSource that will return the images from application context directory
(default): "/images/contrib-tree". This class will have a constructor with String argument
that will be the context directory. In this case the users will be able to change the context
directory.


  I would like to receive your comments about this.

  Tsvetelin


  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.798 / Virus Database: 542 - Release Date: 11/18/2004
Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message