Method from org.apache.pdfbox.pdmodel.interactive.form.PDVariableText Detail: |
public boolean doNotScroll() {
return BitFlagHelper.getFlag( getDictionary(), "Ff", FLAG_DO_NOT_SCROLL );
}
|
public boolean doNotSpellCheck() {
return BitFlagHelper.getFlag( getDictionary(), "Ff", FLAG_DO_NOT_SPELL_CHECK );
}
|
protected COSString getDefaultAppearance() {
return da;
}
|
public int getQ() {
int retval = 0;
COSNumber number = (COSNumber)getDictionary().getDictionaryObject( COSName.getPDFName( "Q" ) );
if( number != null )
{
retval = number.intValue();
}
return retval;
}
This will get the 'quadding' or justification of the text to be displayed.
0 - Left(default)
1 - Centered
2 - Right
Please see the QUADDING_CONSTANTS. |
public String getValue() throws IOException {
return getDictionary().getString( "V" );
}
getValue gets the fields value to as a string. |
public boolean isFileSelect() {
return BitFlagHelper.getFlag( getDictionary(), "Ff", FLAG_FILE_SELECT );
}
|
public boolean isMultiline() {
return BitFlagHelper.getFlag( getDictionary(), "Ff", FLAG_MULTILINE );
}
|
public boolean isPassword() {
return BitFlagHelper.getFlag( getDictionary(), "Ff", FLAG_PASSWORD );
}
|
public boolean isRichText() {
return BitFlagHelper.getFlag( getDictionary(), "Ff", FLAG_RICH_TEXT );
}
|
public void setComb(boolean comb) {
BitFlagHelper.setFlag( getDictionary(), "Ff", FLAG_COMB, comb );
}
|
public void setDoNotScroll(boolean doNotScroll) {
BitFlagHelper.setFlag( getDictionary(), "Ff", FLAG_DO_NOT_SCROLL, doNotScroll );
}
|
public void setDoNotSpellCheck(boolean doNotSpellCheck) {
BitFlagHelper.setFlag( getDictionary(), "Ff", FLAG_DO_NOT_SPELL_CHECK, doNotSpellCheck );
}
Set the doNotSpellCheck bit. |
public void setFileSelect(boolean fileSelect) {
BitFlagHelper.setFlag( getDictionary(), "Ff", FLAG_FILE_SELECT, fileSelect );
}
|
public void setMultiline(boolean multiline) {
BitFlagHelper.setFlag( getDictionary(), "Ff", FLAG_MULTILINE, multiline );
}
|
public void setPassword(boolean password) {
BitFlagHelper.setFlag( getDictionary(), "Ff", FLAG_PASSWORD, password );
}
|
public void setQ(int q) {
getDictionary().setInt( COSName.getPDFName( "Q" ), q );
}
This will set the quadding/justification of the text. See QUADDING constants. |
public void setRichText(boolean richText) {
BitFlagHelper.setFlag( getDictionary(), "Ff", FLAG_RICH_TEXT, richText );
}
|
public void setValue(String value) throws IOException {
COSString fieldValue = new COSString(value);
getDictionary().setItem( COSName.getPDFName( "V" ), fieldValue );
//hmm, not sure what the case where the DV gets set to the field
//value, for now leave blank until we can come up with a case
//where it needs to be in there
//getDictionary().setItem( COSName.getPDFName( "DV" ), fieldValue );
if(appearance == null)
{
this.appearance = new PDAppearance( getAcroForm(), this );
}
appearance.setAppearanceValue(value);
}
|
public boolean shouldComb() {
return BitFlagHelper.getFlag( getDictionary(), "Ff", FLAG_COMB );
}
|