public class FacebookShare extends ShareService
Constructor and Description |
---|
FacebookShare()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent evt)
This method is called when the soft button/Menu item is clicked
|
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 text,
String image,
String mime)
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
|
finish, getOriginal, setImage, setMessage, setOriginalForm
create, 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, toString
public Image getIcon()
Command
public void actionPerformed(ActionEvent evt)
actionPerformed
in interface ActionListener
actionPerformed
in class ShareService
evt
- the Event Objectpublic void share(String text, String image, String mime)
share
in class ShareService
text
- text to shareimage
- image to sharepublic void share(String toShare)
share
in class ShareService
toShare
- text to sharepublic boolean canShareImage()
canShareImage
in class ShareService