i-net Clear Reports

com.inet.report
Class SignatureForm

java.lang.Object
  extended by com.inet.report.ReportComponent
      extended by com.inet.report.Element
          extended by com.inet.report.SignatureForm
All Implemented Interfaces:
BorderProperties, GeneralProperties, NodeParser, com.inet.report.ReferenceHolder, SignatureProperties, java.io.Serializable, java.lang.Cloneable

public class SignatureForm
extends Element
implements SignatureProperties, BorderProperties

This class describes the visible Signature in PDF documents, that will be shown in Adobe Reader. The visible signature can consist of one, two or none of the standard elements (certificate details and subject name). With two standard elements the signature field will be divided into two parts (left and right). The same effect will be caused through setting the flag devideField even if only one standard element is present.

Since:
9.1
See Also:
Serialized Form

Field Summary
static int INSET_BOTTOM
          Minimal distance from bottom boundary to text (inset)
static int INSET_LEFT
          Distance from left boundary to text (inset)
static int INSET_RIGHT
          Minimal distance from right boundary to text (inset)
static int INSET_TOP
          Distance from top boundary to text (inset)
 
Fields inherited from class com.inet.report.Element
BOX, CHART, CROSSTAB, CROSSTABCELL, CROSSTABCOLUMN, CROSSTABROW, CROSSTABSECTION, DATABASE_PICTURE, FIELD, FIELDPART, FORMFIELD, INTERACTIVE_SORTING, JAVABEAN, LINE, PARAGRAPH, PICTURE, SIGNATURE, SUBREPORT, TEXT, TEXTPART
 
Fields inherited from interface com.inet.report.SignatureProperties
POSITION_LEFT, POSITION_RIGHT
 
Fields inherited from interface com.inet.report.BorderProperties
LINE_STYLE_DASHED, LINE_STYLE_DOTTED, LINE_STYLE_DOUBLE, LINE_STYLE_SINGLE, NO_LINE
 
Fields inherited from interface com.inet.report.GeneralProperties
ALIGN_HORIZONTAL_CENTER, ALIGN_HORIZONTAL_DEFAULT, ALIGN_HORIZONTAL_JUSTIFIED, ALIGN_HORIZONTAL_LEFT, ALIGN_HORIZONTAL_RIGHT
 
Method Summary
 boolean getDivideField()
          Returns the flag indicating whether the signature field must be divided into two parts.
 boolean getShowSubjectName()
          Returns the flag indicating whether the subject common name must be written in a signature field.
 int getTextPosition()
          Returns the position of text-items in the divided signature field: POSITION_LEFT, POSITION_RIGHT.
 boolean getWriteCertificateDate()
          Returns the flag indicating whether the date of signing must be written in certificate details.
 boolean getWriteCertificateDistinguishedName()
          Returns the flag indicating whether the subject distinguished name must be written in certificate details.
 boolean getWriteCertificateLabels()
          Returns the flag indicating whether the labels of signature items must be written in certificate details.
 boolean getWriteCertificateLocation()
          Returns the flag indicating whether the subject location must be written in certificate details.
 boolean getWriteCertificateReason()
          Returns the flag indicating whether the reason of signing must be written in certificate details.
 boolean getWriteCertificateSubjectName()
          Returns the flag indicating whether the subject common name must be written in certificate details.
 void setDivideField(boolean val)
          Sets the flag indicating that the signature field must be divided into two parts.
 void setShowSubjectName(boolean val)
          Sets the flag indicating that the subject common name must be written in a signature field.
 void setTextPosition(int pos)
          Sets the position of text-items in the divided signature field: POSITION_LEFT, POSITION_RIGHT.
 void setWriteCertificateDate(boolean val)
          Sets the flag indicating that the date of signing must be written in certificate details.
 void setWriteCertificateDistinguishedName(boolean val)
          Sets the flag indicating that subject distinguished name must be written in certificate details.
 void setWriteCertificateLabels(boolean val)
          Sets the flag indicating that the labels of signature items must be written in certificate details.
 void setWriteCertificateLocation(boolean val)
          Sets the flag indicating whether the subject location must be written in certificate details.
 void setWriteCertificateReason(boolean val)
          Sets the flag indicating that the reason of signing must be written in certificate details.
 void setWriteCertificateSubjectName(boolean val)
          Sets the flag indicating that subject common name must be written in certificate details.
 
Methods inherited from class com.inet.report.Element
addListener, copy, getBottomLineStyle, getBottomLineStyleFormula, getCanGrowCount, getCanGrowFormula, getCloseBorderOnPageBreakFormula, getDropShadowFormula, getEngine, getField, getForeColor, getForeColorFormula, getHorAlign, getHorAlignFormula, getHyperlinkUrl, getHyperlinkUrlFormula, getLeftLineStyle, getLeftLineStyleFormula, getParent, getPropertyFormulas, getRightLineStyle, getRightLineStyleFormula, getSuppressIfDuplicatedFormula, getTightHorizontalFormula, getToolTipsText, getToolTipsTextFormula, getTopLineStyle, getTopLineStyleFormula, indexOf, isCanGrow, isCloseBorderOnPageBreak, isDropShadow, isSuppressIfDuplicated, isTightHorizontal, paramString, removeListener, setBottomLineStyle, setBottomLineStyleFormula, setCanGrow, setCanGrowCount, setCanGrowFormula, setCloseBorderOnPageBreak, setCloseBorderOnPageBreakFormula, setDropShadow, setDropShadowFormula, setField, setForeColor, setForeColorFormula, setHorAlign, setHorAlignFormula, setHyperlinkUrl, setHyperlinkUrlFormula, setIndex, setLeftLineStyle, setLeftLineStyleFormula, setRightLineStyle, setRightLineStyleFormula, setSuppressIfDuplicated, setSuppressIfDuplicatedFormula, setTightHorizontal, setTightHorizontalFormula, setToolTipsText, setToolTipsTextFormula, setTopLineStyle, setTopLineStyleFormula
 
Methods inherited from class com.inet.report.ReportComponent
getBackColor, getBackColorFormula, getHeight, getKeepTogetherFormula, getSuppressFormula, getType, getWidth, getX, getY, isKeepTogether, isSuppress, setBackColor, setBackColorFormula, setHeight, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormula, setWidth, setX, setY
 
Methods inherited from interface com.inet.report.BorderProperties
getBackColor, getBackColorFormula, getBottomLineStyle, getBottomLineStyleFormula, getCloseBorderOnPageBreakFormula, getDropShadowFormula, getForeColor, getForeColorFormula, getLeftLineStyle, getLeftLineStyleFormula, getRightLineStyle, getRightLineStyleFormula, getTightHorizontalFormula, getTopLineStyle, getTopLineStyleFormula, isCloseBorderOnPageBreak, isDropShadow, isTightHorizontal, setBackColor, setBackColorFormula, setBottomLineStyle, setBottomLineStyleFormula, setCloseBorderOnPageBreak, setCloseBorderOnPageBreakFormula, setDropShadow, setDropShadowFormula, setForeColor, setForeColorFormula, setLeftLineStyle, setLeftLineStyleFormula, setRightLineStyle, setRightLineStyleFormula, setTightHorizontal, setTightHorizontalFormula, setTopLineStyle, setTopLineStyleFormula
 
Methods inherited from interface com.inet.report.GeneralProperties
getKeepTogetherFormula, getSuppressFormula, isKeepTogether, isSuppress, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormula
 
Methods inherited from interface com.inet.report.parser.NodeParser
isDOMParser, parseDOM, parseElement, parseEndElement, parseText
 

Field Detail

INSET_LEFT

public static final int INSET_LEFT
Distance from left boundary to text (inset)

See Also:
Constant Field Values

INSET_RIGHT

public static final int INSET_RIGHT
Minimal distance from right boundary to text (inset)

See Also:
Constant Field Values

INSET_TOP

public static final int INSET_TOP
Distance from top boundary to text (inset)

See Also:
Constant Field Values

INSET_BOTTOM

public static final int INSET_BOTTOM
Minimal distance from bottom boundary to text (inset)

See Also:
Constant Field Values
Method Detail

getDivideField

public boolean getDivideField()
Returns the flag indicating whether the signature field must be divided into two parts.

Specified by:
getDivideField in interface SignatureProperties
Returns:
flag indicating if the signature field will be divided into two parts.

getShowSubjectName

public boolean getShowSubjectName()
Returns the flag indicating whether the subject common name must be written in a signature field. In this case this item will duplicate the item in certificate details.

Specified by:
getShowSubjectName in interface SignatureProperties
Returns:
flag indicating if the subject common name will be written in a signature field.

getTextPosition

public int getTextPosition()
Returns the position of text-items in the divided signature field: POSITION_LEFT, POSITION_RIGHT. If both certificate details and common name are present, this value describes the position of certificate details.

Specified by:
getTextPosition in interface SignatureProperties
Returns:
the position of text-items in the divided signature field.

getWriteCertificateDate

public boolean getWriteCertificateDate()
Returns the flag indicating whether the date of signing must be written in certificate details.

Specified by:
getWriteCertificateDate in interface SignatureProperties
Returns:
flag indicating if the date of signing will be written in certificate details.

getWriteCertificateDistinguishedName

public boolean getWriteCertificateDistinguishedName()
Returns the flag indicating whether the subject distinguished name must be written in certificate details.

Specified by:
getWriteCertificateDistinguishedName in interface SignatureProperties
Returns:
flag indicating if the subject distinguished name will be written in certificate details.

getWriteCertificateLabels

public boolean getWriteCertificateLabels()
Returns the flag indicating whether the labels of signature items must be written in certificate details.

Specified by:
getWriteCertificateLabels in interface SignatureProperties
Returns:
flag indicating if the labels of signature items will be written in certificate details.

getWriteCertificateLocation

public boolean getWriteCertificateLocation()
Returns the flag indicating whether the subject location must be written in certificate details.

Specified by:
getWriteCertificateLocation in interface SignatureProperties
Returns:
flag indicating if the subject location will be written in certificate details.

getWriteCertificateReason

public boolean getWriteCertificateReason()
Returns the flag indicating whether the reason of signing must be written in certificate details.

Specified by:
getWriteCertificateReason in interface SignatureProperties
Returns:
flag indicating if the reason of signing will be written in certificate details.

getWriteCertificateSubjectName

public boolean getWriteCertificateSubjectName()
Returns the flag indicating whether the subject common name must be written in certificate details.

Specified by:
getWriteCertificateSubjectName in interface SignatureProperties
Returns:
flag indicating if the subject common name will be written in certificate details.

setDivideField

public void setDivideField(boolean val)
Sets the flag indicating that the signature field must be divided into two parts. At least one part must contains either certificate details items or subject common name. otherwise this flag must be set to false. If both certificate details and common name are present then this flag must be set to true.

Specified by:
setDivideField in interface SignatureProperties
Parameters:
val - if true the the signature field must be divided into two parts.

setShowSubjectName

public void setShowSubjectName(boolean val)
Sets the flag indicating that the subject common name must be written in a signature field. In this case this item will duplicate the item in certificate details.

Specified by:
setShowSubjectName in interface SignatureProperties
Parameters:
val - if true the subject common name will be written in a signature fields.

setTextPosition

public void setTextPosition(int pos)
Sets the position of text-items in the divided signature field: POSITION_LEFT, POSITION_RIGHT. If both certificate details and common name are present, this value describes the position of certificate details.

Specified by:
setTextPosition in interface SignatureProperties
Parameters:
pos - the position of text-items in the divided signature field.

setWriteCertificateDate

public void setWriteCertificateDate(boolean val)
Sets the flag indicating that the date of signing must be written in certificate details.

Specified by:
setWriteCertificateDate in interface SignatureProperties
Parameters:
val - if true the date of signing will be written in certificate details.

setWriteCertificateDistinguishedName

public void setWriteCertificateDistinguishedName(boolean val)
Sets the flag indicating that subject distinguished name must be written in certificate details.

Specified by:
setWriteCertificateDistinguishedName in interface SignatureProperties
Parameters:
val - if true the subject distinguished name will be written in certificate details.

setWriteCertificateLabels

public void setWriteCertificateLabels(boolean val)
Sets the flag indicating that the labels of signature items must be written in certificate details.

Specified by:
setWriteCertificateLabels in interface SignatureProperties
Parameters:
val - if true the labels of signature items will be written in certificate details.

setWriteCertificateLocation

public void setWriteCertificateLocation(boolean val)
Sets the flag indicating whether the subject location must be written in certificate details.

Specified by:
setWriteCertificateLocation in interface SignatureProperties
Parameters:
val - if true the subject location will be written in certificate details.

setWriteCertificateReason

public void setWriteCertificateReason(boolean val)
Sets the flag indicating that the reason of signing must be written in certificate details.

Specified by:
setWriteCertificateReason in interface SignatureProperties
Parameters:
val - if true the reason of signing will be written in certificate details.

setWriteCertificateSubjectName

public void setWriteCertificateSubjectName(boolean val)
Sets the flag indicating that subject common name must be written in certificate details.

Specified by:
setWriteCertificateSubjectName in interface SignatureProperties
Parameters:
val - if true the subject common name will be written in certificate details.

i-net Clear Reports

Copyright © 1999-2015 by i-net software GmbH