|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.cete.dynamicpdf.PageElement
|
+--com.cete.dynamicpdf.pageelements.forms.FormElement
|
+--com.cete.dynamicpdf.pageelements.forms.ListBoxField
Represents the choice field of a interactive forms. A base class for all form field of type choice form field.
A choice field contains several text items, one or more of which may be selected as the field value.
Licensing:
This class is a DynamicPDF Generator Enterprise Edition
feature. One of the following licenses is required for non-evaluation usage:
| Constructor Summary | |
protected |
ListBoxField(java.lang.String name,
float x,
float y,
float width,
float height)
Creates a new instance of ListBoxField class. |
| Method Summary | |
void |
addItem(java.lang.String item)
Adds the item to the list. |
java.lang.String |
getDefaultChoice()
Gets the default choice of a choice field. |
java.lang.String |
getExportValue()
Gets the value entry identifies the item currently selected in the choice field. |
FormFont |
getFont()
Gets the font of the field. |
float |
getFontSize()
Gets the font size of the field. |
int |
getIndexOf(java.lang.String item)
Gets the index of a item. |
java.lang.String |
getItem(int index)
Gets the item from the items list with a given index. |
boolean |
isNoExport()
Gets the export state of a choice field. |
void |
remove(int index)
Removes the item from the list. |
void |
setDefaultChoice(java.lang.String defaultChoice)
Sets the default choice of a choice field. |
void |
setExportValue(java.lang.String value)
Sets the value entry identifies the item currently selected in the choice field. |
void |
setFont(FormFont font)
Sets the font for the field. |
void |
setFontSize(float fontSize)
Sets the font size for the field. |
void |
setNoExport(boolean value)
Sets the export state of a choice field. |
int |
size()
Gets the number of items available in the item list. |
| Methods inherited from class com.cete.dynamicpdf.pageelements.forms.FormElement |
getBackgroundColor, getBorderColor, getBorderStyle, getHeight, getMappingName, getName, getRotate, getTextColor, getToolTip, getWidth, getX, getY, isPrintable, isReadOnly, isVisible, setBackgroundColor, setBorderColor, setBorderStyle, setHeight, setMappingName, setName, setPrintable, setReadOnly, setRotate, setTextColor, setToolTip, setVisible, setWidth, setX, setY |
| Methods inherited from class com.cete.dynamicpdf.PageElement |
draw, getRequiredLicenseLevel, getStrID, setRequiredLicenseLevel, setStrID |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected ListBoxField(java.lang.String name,
float x,
float y,
float width,
float height)
ListBoxField class.
name - Name of a choice field.x - X coordinate of a choice field.y - Y coordinate of a choice field.width - Width of a choice field.height - Height of a choice field.| Method Detail |
public void setFont(FormFont font)
public FormFont getFont()
public void setFontSize(float fontSize)
public float getFontSize()
public boolean isNoExport()
public void setNoExport(boolean value)
If set, the field will not be exported by a submit-form action.
public void addItem(java.lang.String item)
item - Item to be added to the list.public java.lang.String getItem(int index)
GeneratorException - if index is out of range.index - Index of the item.public int getIndexOf(java.lang.String item)
item - An item.public void remove(int index)
GeneratorException - if index is out of range.index - Item index to be removed from the list.public int size()
public void setDefaultChoice(java.lang.String defaultChoice)
public java.lang.String getDefaultChoice()
public void setExportValue(java.lang.String value)
public java.lang.String getExportValue()
|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||