org.ujac.print.tag.acroform
Class RadioButtonAcroFieldTag

java.lang.Object
  extended by org.ujac.print.BaseDocumentTag
      extended by org.ujac.print.tag.BaseElementTag
          extended by org.ujac.print.tag.acroform.BaseAcroFieldTag
              extended by org.ujac.print.tag.acroform.RadioButtonAcroFieldTag
All Implemented Interfaces:
JavascriptContainer

public class RadioButtonAcroFieldTag
extends BaseAcroFieldTag

Name: CheckboxAcroFieldTag
Description: Tag implementation for AcroForm radio buttons.

Author:
lauerc

Field Summary
protected  int borderStyle
          The border style.
protected  String fieldValue
          The field value.
protected  RadioGroupAcroFieldTag radioButtonGroup
          The surrounding radio group.
static String TAG_NAME
          The item's name.
 
Fields inherited from class org.ujac.print.tag.acroform.BaseAcroFieldTag
BORDER_TYPE, borderColor, borderType, borderWidth, FIELD_EDITABLE, FIELD_HEIGHT, FIELD_NAME, FIELD_STATUS, FIELD_VALUE, FIELD_WIDTH, FIELD_X, FIELD_Y, fieldName, FORM_URL, height, javascript, width, x, y
 
Fields inherited from class org.ujac.print.BaseDocumentTag
actualContent, attributes, condition, content, customAttributes, DEFAULT_FONT, DEFAULT_FONT_COLOR, DEFAULT_FONT_ENCODING, DEFAULT_FONT_FAMILY, DEFAULT_FONT_SIZE, DEFAULT_FONT_STYLE, DEFAULT_LEADING, DEFAULT_LINE_SPACING, depth, documentHandler, IMAGE_CHUNK_ATTR, log, NUMBER_OF_PAGES_TEMPLATES, parentItem, previousItem, styleParent, supportedAttributeMap, supportedChildMap, supportedStyleAttributeMap, tagFactory
 
Constructor Summary
RadioButtonAcroFieldTag()
          Constructs a RadioButtonAcroFieldTag instance with no specific attributes.
 
Method Summary
 com.lowagie.text.pdf.PdfFormField addFormField(com.lowagie.text.pdf.PdfAcroForm form)
          Adds a field to the given AcroForm.
protected  AttributeDefinitionMap buildSupportedAttributes()
          Gets the list of supported attributes.
protected  AttributeDefinitionMap buildSupportedStyleAttributes()
          Gets the list of supported style attributes.
protected  Color getBorderColor()
          Gets the border color for the field.
protected  int getBorderStyle()
          Gets the border style for the field.
protected  float getBorderWidth()
          Gets the border width for the field.
 String getDescription()
          Gets a brief description for the item.
protected  Color getTextColor()
          Gets the text color for the field.
 void initialize()
          Initializes the item.
 void openItem()
          Opens the item.
 com.lowagie.text.pdf.PdfFormField render(com.lowagie.text.pdf.PdfWriter writer, com.lowagie.text.Rectangle fieldPosition)
          Renders the form field into the current document.
 
Methods inherited from class org.ujac.print.tag.acroform.BaseAcroFieldTag
addJavaScript, applyJavaScript, borderTypeFromString, buildSupportedChilds, closeItem, getAcroForm, getBorderType, getFieldDimensions, getJavascript, getPdfWriter, isTextBodyAllowed, isVisibleElement, setJavascript
 
Methods inherited from class org.ujac.print.tag.BaseElementTag
getElementContainer
 
Methods inherited from class org.ujac.print.BaseDocumentTag
addAttributeDefinition, addChunk, addChunk, addChunk, addContent, addContent, addStyleAttributeDefinition, addToLatestCellContainer, addToLatestElementContainer, addToLatestPdfCellContainer, checkAttributes, colorFromString, createChunk, createFont, ensureNumberOfPagesTemplate, evalAttribute, evalAttribute, extendLeading, extendLeading, extendLeading, extendLeading, filterContents, flushContent, getActualContent, getAttribute, getAttribute, getAttributeDefinition, getAttributeHandler, getAttributes, getBackgroundColor, getBooleanAttribute, getBooleanAttribute, getBorderAttribute, getBorderAttribute, getColorAttribute, getColorAttribute, getCommonAttributesHolder, getContent, getCustomAttributes, getDepth, getDimensionAttribute, getDimensionAttribute, getDimensionAttribute, getDocumentHandler, getExamples, getFloatAttribute, getFloatAttribute, getFont, getHorizontalAlignmentAttribute, getHorizontalAlignmentAttribute, getIntegerAttribute, getIntegerAttribute, getLocalAttribute, getLocalFont, getLocalStyleAttribute, getName, getParentItem, getPhraseContent, getPhraseHeight, getPhraseWidth, getPreviousItem, getRawAttribute, getSortedAttributeDefinitions, getSortedStyleAttributeDefinitions, getStringAttribute, getStringAttribute, getStringAttribute, getStyle, getStyleAttribute, getStyleAttribute, getStyleAttributeDefinition, getStyleAttributes, getStyleClass, getSupportedAttributes, getSupportedChilds, getSupportedChildTags, getSupportedStyleAttributes, getTagFactory, getTextAttribute, getTextAttribute, getTrimmedContent, getVerticalAlignmentAttribute, getVerticalAlignmentAttribute, handleContent, handleFontAttributes, hasContent, int2FontStyle, isAttributeDefined, isAttributeDefined, isAttributeDefined, isAttributeDefined, isAttributeSupported, isAttributeSupported, isAttributeSupported, isAttributeSupported, isDocumentRoot, isEmptyContent, isEmptyString, isIgnoreFlush, isItemClosed, isItemOpened, isPhraseEmpty, isRendered, isStructureChecksDisabled, isStyleable, isStyleAttributeDefined, isTrimBody, isTrimNextHead, isValid, isVirtualContainer, locator, preInitialize, printPhrase, processContents, processContents, resetContent, rotatePhrase, setAttributes, setBackgroundColor, setCustomAttributes, setDepth, setDocumentHandler, setItemClosed, setItemOpened, setLocalFont, setLocalFont, setName, setParentItem, setPreviousItem, setTagFactory, setTrimBody, setTrimNextHead, trimContentHead, trimContentTail, typeCastValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_NAME

public static final String TAG_NAME
The item's name.

See Also:
Constant Field Values

radioButtonGroup

protected RadioGroupAcroFieldTag radioButtonGroup
The surrounding radio group.


fieldValue

protected String fieldValue
The field value.


borderStyle

protected int borderStyle
The border style.

Constructor Detail

RadioButtonAcroFieldTag

public RadioButtonAcroFieldTag()
Constructs a RadioButtonAcroFieldTag instance with no specific attributes.

Method Detail

getDescription

public String getDescription()
Gets a brief description for the item.

Overrides:
getDescription in class BaseAcroFieldTag
Returns:
The item's description.

buildSupportedAttributes

protected AttributeDefinitionMap buildSupportedAttributes()
Gets the list of supported attributes.

Overrides:
buildSupportedAttributes in class BaseAcroFieldTag
Returns:
The attribute definitions.

buildSupportedStyleAttributes

protected AttributeDefinitionMap buildSupportedStyleAttributes()
Gets the list of supported style attributes.

Overrides:
buildSupportedStyleAttributes in class BaseAcroFieldTag
Returns:
The attribute definitions.

initialize

public void initialize()
                throws DocumentHandlerException
Initializes the item.

Overrides:
initialize in class BaseElementTag
Throws:
DocumentHandlerException - If something went badly wrong.

openItem

public void openItem()
              throws DocumentHandlerException
Opens the item.

Overrides:
openItem in class BaseAcroFieldTag
Throws:
DocumentHandlerException - Thrown in case something went wrong while processing the document item.

addFormField

public com.lowagie.text.pdf.PdfFormField addFormField(com.lowagie.text.pdf.PdfAcroForm form)
                                               throws DocumentHandlerException
Adds a field to the given AcroForm.

Specified by:
addFormField in class BaseAcroFieldTag
Parameters:
form - The AcroForm to add the field to.
Throws:
DocumentHandlerException - In case something went wrong while adding the form field.

render

public com.lowagie.text.pdf.PdfFormField render(com.lowagie.text.pdf.PdfWriter writer,
                                                com.lowagie.text.Rectangle fieldPosition)
                                         throws DocumentHandlerException
Description copied from class: BaseAcroFieldTag
Renders the form field into the current document.

Overrides:
render in class BaseAcroFieldTag
Parameters:
writer - The writer to use.
fieldPosition - The field position (may be null).
Returns:
The rendered form field.
Throws:
DocumentHandlerException - In case something bad happened.

getBorderWidth

protected float getBorderWidth()
Gets the border width for the field.

Overrides:
getBorderWidth in class BaseAcroFieldTag
Returns:
The border width.

getBorderColor

protected Color getBorderColor()
Gets the border color for the field.

Overrides:
getBorderColor in class BaseAcroFieldTag
Returns:
The border color.

getBorderStyle

protected int getBorderStyle()
Gets the border style for the field.

Returns:
The border width.

getTextColor

protected Color getTextColor()
Gets the text color for the field.

Overrides:
getTextColor in class BaseAcroFieldTag
Returns:
The text color.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.