public class EmailShare
- Object
- Command
- ShareService
- EmailShare
ImplementsActionListener<ActionEvent>
Constructors
public EmailShare() | Default Constructor |
Methods
public Image getIcon() | Returns the icon representing the command |
public 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 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
actionPerformed, setMessage, setImage, setOriginalForm, getOriginal, finish, setShareResultListener, getShareResultListener, deliverResult
From Command
create, createMaterial, getId, getCommandName, setCommandName, setIcon, toString, getPressedIcon, setPressedIcon, getDisabledIcon, setDisabledIcon, getRolloverIcon, setRolloverIcon, equals, hashCode, isDisposesDialog, setDisposesDialog, isEnabled, setEnabled, getClientProperty, putClientProperty, setDesktopMenu, getDesktopMenu, setDesktopShortcut, setDesktopShortcut, getDesktopShortcutKeyChar, getDesktopShortcutModifiers, getMaterialIcon, setMaterialIcon, getIconGapMM, setIconGapMM, getMaterialIconSize, setMaterialIconSize, getIconFont, setIconFont
Constructor details
EmailShare
public EmailShare()Method details
getIcon
public Image getIcon()