PDF Clown
0.0.8

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

java.lang.Object
  extended by it.stefanochizzolini.clown.objects.PdfObjectWrapper<PdfDictionary>
      extended by it.stefanochizzolini.clown.documents.interaction.forms.Field
          extended by it.stefanochizzolini.clown.documents.interaction.forms.TextField

public class TextField
extends Field

Text field [PDF:1.6:8.6.3].

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

Nested Class Summary
 
Nested classes/interfaces inherited from class it.stefanochizzolini.clown.documents.interaction.forms.Field
Field.FlagsEnum
 
Constructor Summary
TextField(PdfDirectObject baseObject)
           
TextField(String name, Widget widget, String value)
          Creates a new text field within the given document context.
 
Method Summary
 TextField clone(Document context)
          Gets a clone of the object, registered inside the given document context.
 int getMaxLength()
          Gets the maximum length of the field's text, in characters.
 boolean isMultiline()
          Gets whether the field can contain multiple lines of text.
 boolean isPassword()
          Gets whether the field is intended for entering a secure password.
 boolean isSpellChecked()
          Gets whether text entered in the field is spell-checked.
 void setMaxLength(int value)
           
 void setMultiline(boolean value)
           
 void setPassword(boolean value)
           
 void setSpellChecked(boolean value)
           
 void setValue(Object value)
           
 
Methods inherited from class it.stefanochizzolini.clown.documents.interaction.forms.Field
getActions, getDefaultValue, getFlags, getFullName, getInheritableAttribute, getName, getValue, getWidget, getWidgets, isExportable, isReadOnly, isRequired, setActions, setExportable, setFlags, setName, setReadOnly, setRequired, wrap
 
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

TextField

public TextField(String name,
                 Widget widget,
                 String value)
Creates a new text field within the given document context.


TextField

public TextField(PdfDirectObject baseObject)
Method Detail

clone

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

Overrides:
clone in class Field
Parameters:
context - Which document the clone has to be registered in.

getMaxLength

public int getMaxLength()
Gets the maximum length of the field's text, in characters.


isMultiline

public boolean isMultiline()
Gets whether the field can contain multiple lines of text.


isPassword

public boolean isPassword()
Gets whether the field is intended for entering a secure password.


isSpellChecked

public boolean isSpellChecked()
Gets whether text entered in the field is spell-checked.


setMaxLength

public void setMaxLength(int value)
See Also:
getMaxLength()

setMultiline

public void setMultiline(boolean value)
See Also:
isMultiline()

setPassword

public void setPassword(boolean value)
See Also:
isPassword()

setSpellChecked

public void setSpellChecked(boolean value)
See Also:
isSpellChecked()

setValue

public void setValue(Object value)
Overrides:
setValue in class Field
See Also:
Field.getValue()

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.