PDF Clown
0.0.8

it.stefanochizzolini.clown.documents.interaction.forms
Class Field

java.lang.Object
  extended by it.stefanochizzolini.clown.objects.PdfObjectWrapper<PdfDictionary>
      extended by it.stefanochizzolini.clown.documents.interaction.forms.Field
Direct Known Subclasses:
ButtonField, ChoiceField, SignatureField, TextField

public abstract class Field
extends PdfObjectWrapper<PdfDictionary>

Interactive form field [PDF:1.6:8.6.2].

Since:
0.0.7
Version:
0.0.7
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)

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

Field

protected Field(PdfName fieldType,
                String name,
                Widget widget)
Creates a new field within the given document context.


Field

protected Field(PdfDirectObject baseObject)
Method Detail

wrap

public static final Field wrap(PdfReference reference)
Wraps a field reference into a field object.

Parameters:
reference - Reference to a field object.
Returns:
Field object associated to the reference.

clone

public Field clone(Document context)
Description copied from class: PdfObjectWrapper
Gets a clone of the object, registered inside the given document context.

Specified by:
clone in class PdfObjectWrapper<PdfDictionary>
Parameters:
context - Which document the clone has to be registered in.

getActions

public FieldActions getActions()
Gets the field's behavior in response to trigger events.


getDefaultValue

public Object getDefaultValue()
Gets the field default value.


getFlags

public EnumSet<Field.FlagsEnum> getFlags()
Gets the field flags.


getWidgets

public FieldWidgets getWidgets()
Gets the widget annotations that are associated with this field.


getWidget

public Widget getWidget()

getFullName

public String getFullName()
Gets the fully-qualified field name.


getName

public String getName()
Gets the partial field name.


getValue

public Object getValue()
Gets the field value.


isExportable

public boolean isExportable()
Gets whether the field is exported by a submit-form action.


isReadOnly

public boolean isReadOnly()
Gets whether the user may not change the value of the field.


isRequired

public boolean isRequired()
Gets whether the field must have a value at the time it is exported by a submit-form action.


setActions

public void setActions(FieldActions value)
See Also:
getActions()

setExportable

public void setExportable(boolean value)
See Also:
isExportable()

setFlags

public void setFlags(EnumSet<Field.FlagsEnum> value)
See Also:
getFlags()

setName

public void setName(String value)
See Also:
getName()

setReadOnly

public void setReadOnly(boolean value)
See Also:
isReadOnly()

setRequired

public void setRequired(boolean value)
See Also:
isRequired()

setValue

public void setValue(Object value)
See Also:
getValue()

getInheritableAttribute

protected PdfDirectObject getInheritableAttribute(PdfName key)

PDF Clown
0.0.8

Project home page

Copyright © 2006-2010 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.