Class PDPrintFieldAttributeObject
- java.lang.Object
-
- com.tom_roush.pdfbox.pdmodel.common.PDDictionaryWrapper
-
- com.tom_roush.pdfbox.pdmodel.documentinterchange.logicalstructure.PDAttributeObject
-
- com.tom_roush.pdfbox.pdmodel.documentinterchange.taggedpdf.PDStandardAttributeObject
-
- com.tom_roush.pdfbox.pdmodel.documentinterchange.taggedpdf.PDPrintFieldAttributeObject
-
- All Implemented Interfaces:
COSObjectable
public class PDPrintFieldAttributeObject extends PDStandardAttributeObject
A PrintField attribute object.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCHECKED_STATE_NEUTRALchecked state: neutralstatic StringCHECKED_STATE_OFFchecked state: offstatic StringCHECKED_STATE_ONchecked state: onstatic StringOWNER_PRINT_FIELDstandard attribute owner: PrintFieldstatic StringROLE_CBrole: cb: Check boxstatic StringROLE_PBrole: pb: Push buttonstatic StringROLE_RBrole: rb: Radio buttonstatic StringROLE_TVrole: tv: Text-value field-
Fields inherited from class com.tom_roush.pdfbox.pdmodel.documentinterchange.taggedpdf.PDStandardAttributeObject
UNSPECIFIED
-
-
Constructor Summary
Constructors Constructor Description PDPrintFieldAttributeObject()Default constructor.PDPrintFieldAttributeObject(COSDictionary dictionary)Creates a new PrintField attribute object with a given dictionary.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlternateName()Gets the alternate name of the field (Desc).StringgetCheckedState()Gets the checked state.StringgetRole()Gets the role.voidsetAlternateName(String alternateName)Sets the alternate name of the field (Desc).voidsetCheckedState(String checkedState)Sets the checked state.voidsetRole(String role)Sets the role.StringtoString()-
Methods inherited from class com.tom_roush.pdfbox.pdmodel.documentinterchange.taggedpdf.PDStandardAttributeObject
getArrayOfString, getColor, getColorOrFourColors, getInteger, getName, getName, getNameOrArrayOfName, getNumber, getNumber, getNumberOrArrayOfNumber, getNumberOrName, getString, isSpecified, setArrayOfName, setArrayOfNumber, setArrayOfString, setColor, setFourColors, setInteger, setName, setNumber, setNumber, setString
-
Methods inherited from class com.tom_roush.pdfbox.pdmodel.documentinterchange.logicalstructure.PDAttributeObject
arrayToString, arrayToString, create, getOwner, isEmpty, notifyChanged, potentiallyNotifyChanged, setOwner, setStructureElement
-
Methods inherited from class com.tom_roush.pdfbox.pdmodel.common.PDDictionaryWrapper
equals, getCOSObject, hashCode
-
-
-
-
Field Detail
-
OWNER_PRINT_FIELD
public static final String OWNER_PRINT_FIELD
standard attribute owner: PrintField- See Also:
- Constant Field Values
-
ROLE_RB
public static final String ROLE_RB
role: rb: Radio button- See Also:
- Constant Field Values
-
ROLE_CB
public static final String ROLE_CB
role: cb: Check box- See Also:
- Constant Field Values
-
ROLE_PB
public static final String ROLE_PB
role: pb: Push button- See Also:
- Constant Field Values
-
ROLE_TV
public static final String ROLE_TV
role: tv: Text-value field- See Also:
- Constant Field Values
-
CHECKED_STATE_ON
public static final String CHECKED_STATE_ON
checked state: on- See Also:
- Constant Field Values
-
CHECKED_STATE_OFF
public static final String CHECKED_STATE_OFF
checked state: off- See Also:
- Constant Field Values
-
CHECKED_STATE_NEUTRAL
public static final String CHECKED_STATE_NEUTRAL
checked state: neutral- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PDPrintFieldAttributeObject
public PDPrintFieldAttributeObject()
Default constructor.
-
PDPrintFieldAttributeObject
public PDPrintFieldAttributeObject(COSDictionary dictionary)
Creates a new PrintField attribute object with a given dictionary.- Parameters:
dictionary- the dictionary
-
-
Method Detail
-
getRole
public String getRole()
Gets the role.- Returns:
- the role
-
setRole
public void setRole(String role)
- Parameters:
role- the role
-
getCheckedState
public String getCheckedState()
Gets the checked state. The default value isCHECKED_STATE_OFF.- Returns:
- the checked state
-
setCheckedState
public void setCheckedState(String checkedState)
Sets the checked state. The value shall be one of:CHECKED_STATE_ON,CHECKED_STATE_OFF(default), orCHECKED_STATE_NEUTRAL.
- Parameters:
checkedState- the checked state
-
getAlternateName
public String getAlternateName()
Gets the alternate name of the field (Desc).- Returns:
- the alternate name of the field
-
setAlternateName
public void setAlternateName(String alternateName)
Sets the alternate name of the field (Desc).- Parameters:
alternateName- the alternate name of the field
-
toString
public String toString()
- Overrides:
toStringin classPDAttributeObject
-
-