|
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.Button
Represents the button field of a interactive forms.
A button is a purely interactive control that responds immediately to user input without retaining a permanent value.
NOTE: This page element cannot be used within a table cell, or tranformation group.
Licensing:
This class is a DynamicPDF Generator Enterprise Edition
feature. One of the following licenses is required for non-evaluation usage:
| Constructor Summary | |
Button(java.lang.String name,
float x,
float y,
float width,
float height)
Creates a new instance of Button class. |
|
| Method Summary | |
void |
draw(PageWriter writer)
Draws the button to the given PageWriter object. |
Action |
getAction()
Gets the action associated with this button. |
Behavior |
getBehavior()
Gets the behavior of a button field. |
FormFont |
getFont()
Gets the font of the field. |
float |
getFontSize()
Gets the font size of the field. |
java.lang.String |
getLabel()
Gets the label/caption of a field. |
void |
setAction(Action action)
Sets the action. |
void |
setBehavior(Behavior behavior)
Sets the field’s highlighting mode, the visual effect to be used when the mouse button is pressed or held down inside its active area. |
void |
setFont(FormFont font)
Sets the font for the field. |
void |
setFontSize(float fontSize)
Sets the font size for the field. |
void |
setLabel(java.lang.String label)
Sets the label/caption of a field. |
| 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 |
getRequiredLicenseLevel, getStrID, setRequiredLicenseLevel, setStrID |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Button(java.lang.String name,
float x,
float y,
float width,
float height)
Button class.
name - Name of a button.x - X coordinate of a button.y - Y coordinate of a button.width - Width of a button.height - Height of a button.| Method Detail |
public void setFont(FormFont font)
public FormFont getFont()
public void setFontSize(float fontSize)
public float getFontSize()
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
public void setBehavior(Behavior behavior)
public Behavior getBehavior()
public void setAction(Action action)
public Action getAction()
public void draw(PageWriter writer)
PageWriter object.
draw in class PageElementGeneratorException - If Form Field with the same name already exist.writer - PageWriter object to receive the button's output.PageWriter
|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||