public class EmailShare extends ShareService
| Constructor and Description |
|---|
EmailShare()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canShareImage()
The implementing service needs to declare if it is capable to share an
image
|
Image |
getIcon()
Returns the icon representing the command
|
void |
share(String toShare)
This is the sharing method which should be implemented by the service.
|
void |
share(String toShare,
String image,
String mimeType)
This is the image sharing method which should be implemented by the
service, if the service returned true on the canShareImage() method
Notice not all services are able to share text and image together, in this
case the image sharing will be preferred by these services
|
actionPerformed, finish, getOriginal, setImage, setMessage, setOriginalFormcreate, createMaterial, equals, getClientProperty, getCommandName, getDisabledIcon, getIconFont, getIconGapMM, getId, getMaterialIcon, getMaterialIconSize, getPressedIcon, getRolloverIcon, hashCode, isDisposesDialog, isEnabled, putClientProperty, setCommandName, setDisabledIcon, setDisposesDialog, setEnabled, setIcon, setIconFont, setIconGapMM, setMaterialIcon, setMaterialIconSize, setPressedIcon, setRolloverIcon, toStringpublic Image getIcon()
Commandpublic void share(String toShare, String image, String mimeType)
share in class ShareServicetoShare - text to shareimage - image to sharepublic void share(String toShare)
share in class ShareServicetoShare - text to sharepublic boolean canShareImage()
canShareImage in class ShareService