KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > gumby > tags > Import


1 package org.sapia.gumby.tags;
2
3 import org.sapia.gumby.factory.ContextAware;
4 import org.sapia.gumby.RenderContext;
5 import org.sapia.util.xml.confix.NullObject;
6
7 /**
8  * @author Yanick Duchesne
9  *
10  * <dl>
11  * <dt><b>Copyright: </b>
12  * <dd>Copyright &#169; 2002-2005 <a HREF="http://www.sapia-oss.org">Sapia Open
13  * Source Software </a>. All Rights Reserved.</dd>
14  * </dt>
15  * <dt><b>License: </b>
16  * <dd>Read the license.txt file of the jar or visit the <a
17  * HREF="http://www.sapia-oss.org/license.html">license page </a> at the Sapia
18  * OSS web site</dd>
19  * </dt>
20  * </dl>
21  */

22 public class Import implements ContextAware, NullObject {
23
24   private RenderContext _context;
25
26   /**
27    * @see org.sapia.gumby.factory.ContextAware#handleContext(org.sapia.gumby.RenderContext)
28    */

29   public void handleContext(RenderContext context) {
30     _context = context;
31   }
32
33   public void setText(String JavaDoc pckg) {
34     _context.getSettings().addImport(pckg);
35   }
36
37 }
38
Popular Tags