Java tutorial
// Copyright 2007 the original author or authors. // site: http://www.bjmaxinfo.com // file: $Id: PdfColumnText.java 3919 2008-01-16 04:36:52Z xf $ // created at:2007-07-31 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package corner.orm.tapestry.pdf.components; import org.apache.tapestry.annotations.Parameter; import com.lowagie.text.Document; import com.lowagie.text.Phrase; import com.lowagie.text.pdf.ColumnText; import corner.orm.tapestry.pdf.PdfUtils; import corner.orm.tapestry.pdf.PdfWriterDelegate; /** * ??pdfColumn?. * <P> * ??.. * * @author <a href="mailto:jun.tsai@bjmaxinfo.com">Jun Tsai</a> * @author <a href=mailto:Ghostbb@bjmaxinfo.com>Ghostbb</a> * @version $Revision: 3919 $ * @since 2.3.7 */ public abstract class PdfColumnText extends AbstractColumnText { @Parameter(required = true) public abstract String getValue(); /** * ColumnText. * * @param ct */ @Override protected void renderColumnText(ColumnText ct, PdfWriterDelegate writer, Document doc) { ct.addText(new Phrase(getValue(), PdfUtils.createSongLightFont(0))); } }