1 16 package org.mortbay.html; 17 18 19 20 24 public class Link extends Block 25 { 26 27 28 31 public Link(String href) 32 { 33 super("a"); 34 attribute("href",href); 35 } 36 37 38 42 public Link(String href,Object link) 43 { 44 this(href); 45 add(link); 46 } 47 48 49 51 public Link target(String t) 52 { 53 if (t!=null && t.length()>0) 54 attribute("target",t); 55 return this; 56 } 57 } 58 59 60 61 62 | Popular Tags |