|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfclown.objects.PdfObjectWrapper<PdfDictionary>
org.pdfclown.documents.interaction.forms.Field
org.pdfclown.documents.interaction.forms.TextField
@PDF(value=PDF12) public final class TextField
Text field [PDF:1.6:8.6.3].
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.pdfclown.documents.interaction.forms.Field |
---|
Field.FlagsEnum |
Constructor Summary | |
---|---|
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. |
JustificationEnum |
getJustification()
Gets the justification to be used in displaying this field's text. |
int |
getMaxLength()
Gets the maximum length of this 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 |
setJustification(JustificationEnum value)
|
void |
setMaxLength(int value)
|
void |
setMultiline(boolean value)
|
void |
setPassword(boolean value)
|
void |
setSpellChecked(boolean value)
|
void |
setValue(Object value)
|
Methods inherited from class org.pdfclown.documents.interaction.forms.Field |
---|
getActions, getDefaultAppearanceState, getDefaultValue, getFlags, getFullName, getInheritableAttribute, getName, getValue, getWidgets, isExportable, isReadOnly, isRequired, setActions, setExportable, setFlags, setName, setReadOnly, setRequired, wrap |
Methods inherited from class org.pdfclown.objects.PdfObjectWrapper |
---|
checkCompatibility, delete, equals, exists, getBaseDataObject, getBaseObject, getBaseObject, getContainer, getDataContainer, getDocument, getFile, getMetadata, retrieveName, retrieveNamedBaseObject, setBaseObject, setMetadata |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextField(String name, Widget widget, String value)
Method Detail |
---|
public TextField clone(Document context)
PdfObjectWrapper
clone
in class PdfObjectWrapper<PdfDictionary>
context
- Which document the clone has to be registered in.public JustificationEnum getJustification()
public int getMaxLength()
It corresponds to the maximum integer value in case no explicit limit is defined.
public boolean isMultiline()
public boolean isPassword()
public boolean isSpellChecked()
public void setJustification(JustificationEnum value)
getJustification()
public void setMaxLength(int value)
getMaxLength()
public void setMultiline(boolean value)
isMultiline()
public void setPassword(boolean value)
isPassword()
public void setSpellChecked(boolean value)
isSpellChecked()
public void setValue(Object value)
setValue
in class Field
Field.getValue()
|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |