public class FacebookShare
- Object
- Command
- ShareService
- FacebookShare
ImplementsActionListener<ActionEvent>
FaceBookAccess
OAuth/Graph flow which is no longer supported by Facebook. Use a BrowserComponent
pointed at a Facebook share URL, or delegate to the native share sheet. This class will be
removed in a future release.Constructors
public FacebookShare() | Default Constructor |
Methods
public Image getIcon() | Returns the icon representing the command |
public boolean equals(Object o) | compare two commands |
public int hashCode() | Allows storing commands in a vector/hashtable |
public void actionPerformed(ActionEvent evt) | This method is called when the soft button/Menu item is clicked |
public 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 b… |
public void share(String toShare) | This is the sharing method which should be implemented by the service. |
public boolean canShareImage() | The implementing service needs to declare if it is capable to share an image |
Inherited fields
From Command
DESKTOP_MENU, DESKTOP_MENU_APP, DESKTOP_MENU_ABOUT, DESKTOP_MENU_PREFERENCES, DESKTOP_MENU_QUIT, DESKTOP_MENU_FILE, DESKTOP_MENU_EDIT, DESKTOP_MENU_VIEW, DESKTOP_MENU_WINDOW, DESKTOP_MENU_HELP, DESKTOP_SHORTCUT_KEY, DESKTOP_SHORTCUT_MODIFIERS, DESKTOP_SHORTCUT_MODIFIER_PRIMARY, DESKTOP_SHORTCUT_MODIFIER_SHIFT, DESKTOP_SHORTCUT_MODIFIER_ALT
Inherited methods
From ShareService
setMessage, setImage, setOriginalForm, getOriginal, finish, setShareResultListener, getShareResultListener, deliverResult
From Command
create, createMaterial, getId, getCommandName, setCommandName, setIcon, toString, getPressedIcon, setPressedIcon, getDisabledIcon, setDisabledIcon, getRolloverIcon, setRolloverIcon, isDisposesDialog, setDisposesDialog, isEnabled, setEnabled, getClientProperty, putClientProperty, setDesktopMenu, getDesktopMenu, setDesktopShortcut, setDesktopShortcut, getDesktopShortcutKeyChar, getDesktopShortcutModifiers, getMaterialIcon, setMaterialIcon, getIconGapMM, setIconGapMM, getMaterialIconSize, setMaterialIconSize, getIconFont, setIconFont
Constructor details
FacebookShare
public FacebookShare()Method details
getIcon
public Image getIcon()Returns
equals
public boolean equals(Object o)Parameters
oObject- a Command Object to compare
Returns
hashCode
public int hashCode()Returns
actionPerformed
public void actionPerformed(ActionEvent evt)Parameters
evtActionEvent- the Event Object