ButtonWidgetAnnotation Class
Defines a widget annotation associated with the button field in a PDF document.
Declaration
public class ButtonWidgetAnnotation extends WidgetAnnotation
Remarks
Refer to the following help topic for additional information: Create PDF Forms.
Inherited Members
Inheritance
ButtonWidgetAnnotation(FormField formField, RectangleF bounds)
Initializes a new instance of the ButtonWidgetAnnotation class with specified form field and bounds.
Declaration
public ButtonWidgetAnnotation(FormField formField, RectangleF bounds)
Parameters
| Name | Type | Description |
|---|---|---|
| formField | FormField | The form field associated with the button widget annotation. |
| bounds | RectangleF | The annotation bounds. |
Methods
getAlternateCaption() Method
Returns the alternate caption displayed when the button widget annotation is pressed.
Declaration
public String getAlternateCaption()
Returns
| Type | Description |
|---|---|
| String | The alternate caption. |
getAlternateIcon() Method
Returns the alternate icon displayed when the button widget annotation is pressed.
Declaration
public DXImage getAlternateIcon()
Returns
| Type | Description |
|---|---|
| DXImage | The alternate icon. |
getCaption() Method
Returns the button widget annotation caption.
Declaration
public String getCaption()
Returns
| Type | Description |
|---|---|
| String | The caption. |
getCaptionLayout() Method
Returns the button widget annotation caption layout.
Declaration
public ButtonCaptionLayout getCaptionLayout()
Returns
| Type | Description |
|---|---|
| ButtonCaptionLayout | The caption layout. |
getIconFit() Method
Returns the button widget annotation icon fit settings.
Declaration
public ButtonIconFit getIconFit()
Returns
| Type | Description |
|---|---|
| ButtonIconFit | The icon fit settings. |
getNormalIcon() Method
Returns the normal icon displayed by the button widget annotation.
Declaration
public DXImage getNormalIcon()
Returns
| Type | Description |
|---|---|
| DXImage | The normal icon. |
getRolloverCaption() Method
Returns the rollover caption displayed when the pointer hovers over the button widget annotation.
Declaration
public String getRolloverCaption()
Returns
| Type | Description |
|---|---|
| String | The rollover caption. |
getRolloverIcon() Method
Returns the rollover icon displayed when the pointer hovers over the button widget annotation.
Declaration
public DXImage getRolloverIcon()
Returns
| Type | Description |
|---|---|
| DXImage | The rollover icon. |
setAlternateCaption(String value) Method
Sets the alternate caption displayed when the button widget annotation is pressed.
Declaration
public void setAlternateCaption(String value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | String | The alternate caption. |
setAlternateIcon(DXImage value) Method
Sets the alternate icon displayed when the button widget annotation is pressed.
Declaration
public void setAlternateIcon(DXImage value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | DXImage | The alternate icon. |
setCaption(String value) Method
Sets the button widget annotation caption.
Declaration
public void setCaption(String value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | String | The caption. |
setCaptionLayout(ButtonCaptionLayout value) Method
Sets the button widget annotation caption layout.
Declaration
public void setCaptionLayout(ButtonCaptionLayout value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | ButtonCaptionLayout | The caption layout. |
setIconFit(ButtonIconFit value) Method
Sets the button widget annotation icon fit settings.
Declaration
public void setIconFit(ButtonIconFit value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | ButtonIconFit | The icon fit settings. |
setNormalIcon(DXImage value) Method
Sets the normal icon displayed by the button widget annotation.
Declaration
public void setNormalIcon(DXImage value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | DXImage | The normal icon. |
setRolloverCaption(String value) Method
Sets the rollover caption displayed when the pointer hovers over the button widget annotation.
Declaration
public void setRolloverCaption(String value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | String | The rollover caption. |
setRolloverIcon(DXImage value) Method
Sets the rollover icon displayed when the pointer hovers over the button widget annotation.
Declaration
public void setRolloverIcon(DXImage value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | DXImage | The rollover icon. |