|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPdfObjectContainer
com.crionics.jpdf.forms.AbstractField
com.crionics.jpdf.forms.TextField
public class TextField
Represents a Textfield form object
| Method Summary | |
|---|---|
static TextField |
createInstance(PdfDocument doc,
java.lang.String name,
int pageIndex,
java.awt.Rectangle rect)
|
java.lang.String |
getDefaultValue()
Returns the Form Field default value. |
int |
getMaxChars()
Returns the maximum number of chars allowed for this field |
int |
getTextJustification()
Returns the text justification, LEFT, CENTERED or RIGHT |
java.lang.String |
getValue()
Returns the Form Field value. |
boolean |
hasValue()
return true if the field has a value defined |
boolean |
isCheckSpelled()
Returns true if the spell checker should check this field |
boolean |
isMultiline()
returns true if the field is multiline |
boolean |
isPassword()
returns true if the field is a password |
boolean |
isRichText()
return true if the field accepts Rich Text xml values. |
boolean |
isScrollingLongText()
returns true if the field is scrolling long text |
void |
setCheckSpelled(boolean checkSpell)
Sets a flag which tells if the viewer should spell check the field |
void |
setDefaultValue(java.lang.String value)
Sets the Form Field default value. |
void |
setMaxChars(int max)
Sets the maximum number of characters allowed for this field |
void |
setMultiline(boolean multiline)
Set the setting which controls if the field accepts strings that show on more than one line |
void |
setPassword(boolean password)
Sets the flag as a password field, clears Value and Default Value when property is set |
void |
setRichText(boolean richText)
Sets if the field accepts rich text input. |
void |
setScrollLongText(boolean scrollLongText)
Set the setting which controls if the field to resize the its content to fit the area or the field, or allow the scrolling of its content. |
void |
setTextJustification(int justification)
Sets the text justification, must be one of the values in ITextJustification |
void |
setValue(java.lang.String value)
Sets the Form Field value. |
| Methods inherited from class com.crionics.jpdf.forms.AbstractField |
|---|
getAssociatedPageIndex, getBorderColor, getBorderStyle, getBorderWidth, getFillColor, getName, getOrientation, getPosition, getTextColor, getTextFont, getTextSize, getToolTip, isHidden, isPrintable, isReadOnly, setBorderColor, setBorderStyle, setBorderWidth, setFillColor, setHidden, setOrientation, setPosition, setPrintable, setReadOnly, setTextColor, setTextFont, setTextFont, setTextSize, setToolTip |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static TextField createInstance(PdfDocument doc,
java.lang.String name,
int pageIndex,
java.awt.Rectangle rect)
throws PdfException,
java.io.IOException
PdfException
java.io.IOException
public java.lang.String getDefaultValue()
throws PdfException,
java.io.IOException
PdfException - Raised if a problem occurred while parsing the file.
java.io.IOException - Raised if a problem occurred while reading the file.
public int getMaxChars()
throws PdfException,
java.io.IOException
PdfException - Raised if a problem occurred while parsing the file.
java.io.IOException - Raised if a problem occurred while reading the file.
public int getTextJustification()
throws PdfException,
java.io.IOException
PdfException - Raised if a problem occurred while parsing the file.
java.io.IOException - Raised if a problem occurred while reading the file.
public java.lang.String getValue()
throws PdfException,
java.io.IOException
PdfException - Raised if a problem occurred while parsing the file.
java.io.IOException - Raised if a problem occurred while reading the file.
public boolean hasValue()
throws java.io.IOException,
PdfException
PdfException - Raised if a problem occurred while parsing the file.
java.io.IOException - Raised if a problem occurred while reading the file.public boolean isCheckSpelled()
public boolean isMultiline()
public boolean isPassword()
public boolean isRichText()
public boolean isScrollingLongText()
public void setCheckSpelled(boolean checkSpell)
throws PdfException,
java.io.IOException
checkSpell - true will activate spell checking on this field
PdfException - Raised if a problem occurred while parsing the file.
java.io.IOException - Raised if a problem occurred while reading the file.
public void setDefaultValue(java.lang.String value)
throws PdfException,
java.io.IOException
value - The Form Field default value to set.
PdfException - Raised if a problem occurred while parsing the file.
java.io.IOException - Raised if a problem occurred while reading the file.
public void setMaxChars(int max)
throws PdfException,
java.io.IOException
max - the maximum number of characters for this field
PdfException - Raised if a problem occurred while parsing the file.
java.io.IOException - Raised if a problem occurred while reading the file.
public void setMultiline(boolean multiline)
throws PdfException,
java.io.IOException
multiline - true if the field accept multiline inputs
PdfException - Raised if a problem occurred while parsing the file.
java.io.IOException - Raised if a problem occurred while reading the file.
public void setPassword(boolean password)
throws PdfException,
java.io.IOException
password - true is field data must be hidden
PdfException - Raised if a problem occurred while parsing the file.
java.io.IOException - Raised if a problem occurred while reading the file.
public void setRichText(boolean richText)
throws PdfException,
java.io.IOException
richText - true if the field accepts rich text input
PdfException - Raised if a problem occurred while parsing the file.
java.io.IOException - Raised if a problem occurred while reading the file.
public void setScrollLongText(boolean scrollLongText)
throws PdfException,
java.io.IOException
scrollLongText - true if the field scroll long text, false to resize the font.
PdfException - Raised if a problem occurred while parsing the file.
java.io.IOException - Raised if a problem occurred while reading the file.
public void setTextJustification(int justification)
throws PdfException,
java.io.IOException
justification - one of ITextJustification
PdfException - Raised if a problem occurred while parsing the file.
java.io.IOException - Raised if a problem occurred while reading the file.
public void setValue(java.lang.String value)
throws PdfException,
java.io.IOException
value - The Form Field value to set.
PdfException - Raised if a problem occurred while parsing the file.
java.io.IOException - Raised if a problem occurred while reading the file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||