| 
 | DynamicPDF by ceTe Software | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cete.dynamicpdf.PageElement
com.cete.dynamicpdf.pageelements.TaggablePageElement
com.cete.dynamicpdf.pageelements.forms.FormElement
com.cete.dynamicpdf.pageelements.forms.Button
public class 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 Buttonclass. | |
| Method Summary | |
|---|---|
|  void | draw(PageWriter writer)Draws the button to the given PageWriterobject. | 
|  Action | getAction()Gets the action associated with this button. | 
|  Behavior | getBehavior()Gets the behavior of a button field. | 
|  Font | 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(Font 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, getOutput, getReaderEvents, getRotate, getTextColor, getToolTip, getWidth, getX, getY, isPrintable, isReadOnly, isVisible, setBackgroundColor, setBorderColor, setBorderStyle, setHeight, setMappingName, setName, setOutput, setPrintable, setReadOnly, setRotate, setTag, setTextColor, setToolTip, setVisible, setWidth, setX, setY | 
| Methods inherited from class com.cete.dynamicpdf.pageelements.TaggablePageElement | 
|---|
| getTag, getTagOrder, setTagOrder | 
| 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(Font font)
font - the font for the field.public Font getFont()
public void setFontSize(float fontSize)
fontSize - the font size for the field.public float getFontSize()
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label - the label/caption of a field.public void setBehavior(Behavior behavior)
behavior - the behavior of the button.public Behavior getBehavior()
public void setAction(Action action)
action - the action.public Action getAction()
public void draw(PageWriter writer)
PageWriter object.
draw in class TaggablePageElementGeneratorException - 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 | ||||||||