|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.stefanochizzolini.clown.objects.PdfObjectWrapper<PdfDictionary> it.stefanochizzolini.clown.documents.interaction.forms.Field
public abstract class Field
Interactive form field [PDF:1.6:8.6.2].
Nested Class Summary | |
---|---|
static class |
Field.FlagsEnum
Field flags [PDF:1.6:8.6.2]. |
Constructor Summary | |
---|---|
protected |
Field(PdfDirectObject baseObject)
|
protected |
Field(PdfName fieldType,
String name,
Widget widget)
Creates a new field within the given document context. |
Method Summary | |
---|---|
Field |
clone(Document context)
Gets a clone of the object, registered inside the given document context. |
FieldActions |
getActions()
Gets the field's behavior in response to trigger events. |
Object |
getDefaultValue()
Gets the field default value. |
EnumSet<Field.FlagsEnum> |
getFlags()
Gets the field flags. |
String |
getFullName()
Gets the fully-qualified field name. |
protected PdfDirectObject |
getInheritableAttribute(PdfName key)
|
String |
getName()
Gets the partial field name. |
Object |
getValue()
Gets the field value. |
Widget |
getWidget()
|
FieldWidgets |
getWidgets()
Gets the widget annotations that are associated with this field. |
boolean |
isExportable()
Gets whether the field is exported by a submit-form action. |
boolean |
isReadOnly()
Gets whether the user may not change the value of the field. |
boolean |
isRequired()
Gets whether the field must have a value at the time it is exported by a submit-form action. |
void |
setActions(FieldActions value)
|
void |
setExportable(boolean value)
|
void |
setFlags(EnumSet<Field.FlagsEnum> value)
|
void |
setName(String value)
|
void |
setReadOnly(boolean value)
|
void |
setRequired(boolean value)
|
void |
setValue(Object value)
|
static Field |
wrap(PdfReference reference)
Wraps a field reference into a field object. |
Methods inherited from class it.stefanochizzolini.clown.objects.PdfObjectWrapper |
---|
delete, getBaseDataObject, getBaseObject, getContainer, getDocument, getFile, setBaseObject, setContainer, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Field(PdfName fieldType, String name, Widget widget)
protected Field(PdfDirectObject baseObject)
Method Detail |
---|
public static final Field wrap(PdfReference reference)
reference
- Reference to a field object.
public Field clone(Document context)
PdfObjectWrapper
clone
in class PdfObjectWrapper<PdfDictionary>
context
- Which document the clone has to be registered in.public FieldActions getActions()
public Object getDefaultValue()
public EnumSet<Field.FlagsEnum> getFlags()
public FieldWidgets getWidgets()
public Widget getWidget()
public String getFullName()
public String getName()
public Object getValue()
public boolean isExportable()
public boolean isReadOnly()
public boolean isRequired()
public void setActions(FieldActions value)
getActions()
public void setExportable(boolean value)
isExportable()
public void setFlags(EnumSet<Field.FlagsEnum> value)
getFlags()
public void setName(String value)
getName()
public void setReadOnly(boolean value)
isReadOnly()
public void setRequired(boolean value)
isRequired()
public void setValue(Object value)
getValue()
protected PdfDirectObject getInheritableAttribute(PdfName key)
|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |