Top Description Fields Constructors Methods
org.apache.pdfbox.pdmodel.documentinterchange.taggedpdf

public Class PDPrintFieldAttributeObject

extends PDStandardAttributeObject
Class Inheritance
Imports
org.apache.pdfbox.cos.COSDictionary

A PrintField attribute object.
Author
Johannes Koch

Field Summary

Modifier and TypeField and Description
private static final String
public static final String
CHECKED_STATE_NEUTRAL

checked state: neutral

public static final String
CHECKED_STATE_OFF

checked state: off

public static final String
CHECKED_STATE_ON

checked state: on

private static final String
public static final String
OWNER_PRINT_FIELD

standard attribute owner: PrintField

private static final String
public static final String
ROLE_CB

role: cb: Check box

public static final String
ROLE_PB

role: pb: Push button

public static final String
ROLE_RB

role: rb: Radio button

public static final String
ROLE_TV

role: tv: Text-value field

Inherited from org.apache.pdfbox.pdmodel.documentinterchange.taggedpdf.PDStandardAttributeObject:
UNSPECIFIED

Constructor Summary

AccessConstructor and Description
public
PDPrintFieldAttributeObject()

Default constructor.

public
PDPrintFieldAttributeObject(COSDictionary
the dictionary
dictionary
)

Creates a new PrintField attribute object with a given dictionary.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the alternate name of the field
getAlternateName
()

Gets the alternate name of the field (Desc).

public String

Returns:

the checked state
getCheckedState
()

Gets the checked state.

public String

Returns:

the role
getRole
()

Gets the role.

public void
setAlternateName(String
the alternate name of the field
alternateName
)

Sets the alternate name of the field (Desc).

public void
setCheckedState(String
the checked state
checkedState
)

Sets the checked state.

public void
setRole(String
the role
role
)

Sets the role.

public String
Inherited from org.apache.pdfbox.pdmodel.documentinterchange.taggedpdf.PDStandardAttributeObject:
getArrayOfStringgetColorgetColorOrFourColorsgetIntegergetNamegetNamegetNameOrArrayOfNamegetNumbergetNumbergetNumberOrArrayOfNumbergetNumberOrNamegetStringisSpecifiedsetArrayOfNamesetArrayOfNumbersetArrayOfStringsetColorsetFourColorssetIntegersetNamesetNumbersetNumbersetString

Field Detail

CHECKEDback to summary
private static final String CHECKED
CHECKED_STATE_NEUTRALback to summary
public static final String CHECKED_STATE_NEUTRAL

checked state: neutral

CHECKED_STATE_OFFback to summary
public static final String CHECKED_STATE_OFF

checked state: off

CHECKED_STATE_ONback to summary
public static final String CHECKED_STATE_ON

checked state: on

DESCback to summary
private static final String DESC
OWNER_PRINT_FIELDback to summary
public static final String OWNER_PRINT_FIELD

standard attribute owner: PrintField

ROLEback to summary
private static final String ROLE
ROLE_CBback to summary
public static final String ROLE_CB

role: cb: Check box

ROLE_PBback to summary
public static final String ROLE_PB

role: pb: Push button

ROLE_RBback to summary
public static final String ROLE_RB

role: rb: Radio button

ROLE_TVback to summary
public static final String ROLE_TV

role: tv: Text-value field

Constructor Detail

PDPrintFieldAttributeObjectback to summary
public PDPrintFieldAttributeObject()

Default constructor.

PDPrintFieldAttributeObjectback to summary
public PDPrintFieldAttributeObject(COSDictionary dictionary)

Creates a new PrintField attribute object with a given dictionary.

Parameters
dictionary:COSDictionary

the dictionary

Method Detail

getAlternateNameback to summary
public String getAlternateName()

Gets the alternate name of the field (Desc).

Returns:String

the alternate name of the field

getCheckedStateback to summary
public String getCheckedState()

Gets the checked state. The default value is CHECKED_STATE_OFF.

Returns:String

the checked state

getRoleback to summary
public String getRole()

Gets the role.

Returns:String

the role

setAlternateNameback to summary
public void setAlternateName(String alternateName)

Sets the alternate name of the field (Desc).

Parameters
alternateName:String

the alternate name of the field

setCheckedStateback to summary
public void setCheckedState(String checkedState)

Sets the checked state. The value shall be one of:

Parameters
checkedState:String

the checked state

setRoleback to summary
public void setRole(String role)

Sets the role. The value of Role shall be one of the following:

Parameters
role:String

the role

toStringback to summary
public String toString()

Overrides org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDAttributeObject.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override