Module org.sejda.sambox
Class PDPrintFieldAttributeObject
java.lang.Object
org.sejda.sambox.pdmodel.common.PDDictionaryWrapper
org.sejda.sambox.pdmodel.documentinterchange.logicalstructure.PDAttributeObject
org.sejda.sambox.pdmodel.documentinterchange.taggedpdf.PDStandardAttributeObject
org.sejda.sambox.pdmodel.documentinterchange.taggedpdf.PDPrintFieldAttributeObject
- All Implemented Interfaces:
COSObjectable
A PrintField attribute object.
- Author:
- Johannes Koch
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringchecked state: neutralstatic final Stringchecked state: offstatic final Stringchecked state: onstatic final Stringstandard attribute owner: PrintFieldstatic final Stringrole: cb: Check boxstatic final Stringrole: pb: Push buttonstatic final Stringrole: rb: Radio buttonstatic final Stringrole: tv: Text-value fieldFields inherited from class org.sejda.sambox.pdmodel.documentinterchange.taggedpdf.PDStandardAttributeObject
UNSPECIFIED -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.PDPrintFieldAttributeObject(COSDictionary dictionary) Creates a new PrintField attribute object with a given dictionary. -
Method Summary
Modifier and TypeMethodDescriptionGets the alternate name of the field (Desc).Gets the checked state.getRole()Gets the role.voidsetAlternateName(String alternateName) Sets the alternate name of the field (Desc).voidsetCheckedState(String checkedState) Sets the checked state.voidSets the role.toString()Methods inherited from class org.sejda.sambox.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, setStringMethods inherited from class org.sejda.sambox.pdmodel.documentinterchange.logicalstructure.PDAttributeObject
arrayToString, arrayToString, create, getOwner, isEmpty, notifyChanged, potentiallyNotifyChanged, setOwner, setStructureElementMethods inherited from class org.sejda.sambox.pdmodel.common.PDDictionaryWrapper
equals, getCOSObject, hashCode
-
Field Details
-
OWNER_PRINT_FIELD
standard attribute owner: PrintField- See Also:
-
ROLE_RB
role: rb: Radio button- See Also:
-
ROLE_CB
role: cb: Check box- See Also:
-
ROLE_PB
role: pb: Push button- See Also:
-
ROLE_TV
role: tv: Text-value field- See Also:
-
CHECKED_STATE_ON
checked state: on- See Also:
-
CHECKED_STATE_OFF
checked state: off- See Also:
-
CHECKED_STATE_NEUTRAL
checked state: neutral- See Also:
-
-
Constructor Details
-
PDPrintFieldAttributeObject
public PDPrintFieldAttributeObject()Default constructor. -
PDPrintFieldAttributeObject
Creates a new PrintField attribute object with a given dictionary.- Parameters:
dictionary- the dictionary
-
-
Method Details
-
getRole
Gets the role.- Returns:
- the role
-
setRole
- Parameters:
role- the role
-
getCheckedState
Gets the checked state. The default value isCHECKED_STATE_OFF.- Returns:
- the checked state
-
setCheckedState
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
Gets the alternate name of the field (Desc).- Returns:
- the alternate name of the field
-
setAlternateName
Sets the alternate name of the field (Desc).- Parameters:
alternateName- the alternate name of the field
-
toString
- Overrides:
toStringin classPDAttributeObject
-