|
||||||||||
| 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.AbstractButtonField
public abstract class AbstractButtonField
Methods used by Linked Form Fields (Radio Buttons or Check Boxes). Some Form Fields can be linked, so that when one of them is set, all the others are reset automatically.
| Method Summary | |
|---|---|
java.util.ArrayList |
getAvailableValues()
Recovers the different possible values associated with this Field. |
java.lang.String |
getDefaultValue()
Returns the Form Field default value. |
java.lang.String |
getValue()
Returns the Form Field value. |
boolean |
getValueAsBoolean()
Returns the state of the field. |
boolean |
isLinked()
Determines if this Field is part of a group of Fields or not, see getAvailableValues(). |
void |
setDefaultValue(java.lang.String value)
|
void |
setTextFont(java.lang.String name)
|
void |
setValue(boolean state)
Sets the value of the Field. |
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, setTextSize, setToolTip |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.util.ArrayList getAvailableValues()
throws java.io.IOException,
PdfException
setValue(String).
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public java.lang.String getDefaultValue()
throws PdfException,
java.io.IOException
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public java.lang.String getValue()
throws PdfException,
java.io.IOException
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public boolean getValueAsBoolean()
throws PdfException,
java.io.IOException
isLinked()).
PdfException - If a problem occured while parsing the document, or if the
field is linked.
java.io.IOException - If a problem occured while parsing the file.
public boolean isLinked()
throws java.io.IOException,
PdfException
getAvailableValues().
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.public final void setDefaultValue(java.lang.String value)
public final void setTextFont(java.lang.String name)
setTextFont in class AbstractField
public void setValue(boolean state)
throws PdfException,
java.io.IOException
isLinked(). Note this method
calls setValue(String)with the corresponding string ("TRUE" or
"FALSE").
state - The new state to set.
PdfException - If a problem occured while parsing the document, or if the
field is linked.
java.io.IOException - If a problem occured while parsing 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 occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||