|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ujac.print.BaseDocumentTag org.ujac.print.tag.BaseElementTag org.ujac.print.tag.acroform.BaseAcroFieldTag org.ujac.print.tag.acroform.RadioButtonAcroFieldTag
public class RadioButtonAcroFieldTag
Name: CheckboxAcroFieldTag
Description: Tag implementation for AcroForm radio buttons.
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 |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TAG_NAME
protected RadioGroupAcroFieldTag radioButtonGroup
protected String fieldValue
protected int borderStyle
Constructor Detail |
---|
public RadioButtonAcroFieldTag()
Method Detail |
---|
public String getDescription()
getDescription
in class BaseAcroFieldTag
protected AttributeDefinitionMap buildSupportedAttributes()
buildSupportedAttributes
in class BaseAcroFieldTag
protected AttributeDefinitionMap buildSupportedStyleAttributes()
buildSupportedStyleAttributes
in class BaseAcroFieldTag
public void initialize() throws DocumentHandlerException
initialize
in class BaseElementTag
DocumentHandlerException
- If something went badly wrong.public void openItem() throws DocumentHandlerException
openItem
in class BaseAcroFieldTag
DocumentHandlerException
- Thrown in case something went wrong while processing the document item.public com.lowagie.text.pdf.PdfFormField addFormField(com.lowagie.text.pdf.PdfAcroForm form) throws DocumentHandlerException
addFormField
in class BaseAcroFieldTag
form
- The AcroForm to add the field to.
DocumentHandlerException
- In case something went wrong while adding the form field.public com.lowagie.text.pdf.PdfFormField render(com.lowagie.text.pdf.PdfWriter writer, com.lowagie.text.Rectangle fieldPosition) throws DocumentHandlerException
BaseAcroFieldTag
render
in class BaseAcroFieldTag
writer
- The writer to use.fieldPosition
- The field position (may be null).
DocumentHandlerException
- In case something bad happened.protected float getBorderWidth()
getBorderWidth
in class BaseAcroFieldTag
protected Color getBorderColor()
getBorderColor
in class BaseAcroFieldTag
protected int getBorderStyle()
protected Color getTextColor()
getTextColor
in class BaseAcroFieldTag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |