View Javadoc
1 /* 2 * (C) 2002 David Carr david@carr.name 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 */ 18 19 package net.sourceforge.mflow.xul; 20 21 import luxor.core.XulTag; 22 import luxor.spi.JComponentResolver; 23 import luxor.spi.NComponent; 24 import luxor.spi.NComponentFactory; 25 import luxor.spi.XulTagFactory; 26 import luxor.spi.resolver.XulContext; 27 28 import org.jdom.Element; 29 30 /*** 31 * @author carrd 32 */ 33 public class URLLabelDef extends XulTag implements NComponentFactory { 34 /*** 35 * Used to create instances of the {@link XulTag} 36 */ 37 public static final XulTagFactory FACTORY = new XulTagFactory() { 38 public final XulTag createXulTag(final Element element) { 39 return new URLLabelDef(element); 40 } 41 }; 42 43 /*** 44 * @param element an element 45 */ 46 protected URLLabelDef(final Element element) { 47 super(element); 48 } 49 50 /*** 51 * Creates a connection component between the label and the label def 52 * 53 * @param resolver a component resolver 54 * @param ctx the XUL context 55 * @return the peer object 56 */ 57 public final NComponent createNComponent( 58 final JComponentResolver resolver, 59 final XulContext ctx) { 60 return new URLLabelPeer(this); 61 } 62 }

This page was automatically generated by Maven