public class SitePreviewThumbnailAction extends AbstractListViewAction
| Type | Property and Description |
|---|---|
protected boolean |
isAdjustingEnabledFrom
Gets the value of the property adjustingEnabledFromProperty.
|
ListViewAction.ContextalwaysEnabled, IN_EDITOR_AREA_SECTION_PANELAFFECTED_ITEMS_KEY| Constructor and Description |
|---|
SitePreviewThumbnailAction() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
adjustPreviewUrl(String url)
Removes all whitespaces from the given url.
|
protected void |
doCreateContext(ListViewAction.Context context) |
protected Image |
generateImage(String url,
String cutyCaptExecutable,
String workingDir,
int width,
long timeout)
Generates a preview
Image for a given website. |
protected CMSAdminSiteService |
getCmsAdminSiteService() |
Menupopup |
getContextPopup(ListViewAction.Context context)
Gets the context popup of the action button.
|
EventListener |
getEventListener(ListViewAction.Context context)
Gets the
EventListener which is to be registered for the Events#ON_CLICK event. |
String |
getImageURI(ListViewAction.Context context)
Gets the image URI which represents the action button.
|
MediaUpdateService |
getMediaUpdateService() |
Menupopup |
getPopup(ListViewAction.Context context)
Gets the popup of the action button.
|
String |
getTooltip(ListViewAction.Context context)
Gets the tooltip of the action button.
|
TypeService |
getTypeService() |
protected boolean |
isAdjustingEnabledFromProperty()
Gets the value of the property adjustingEnabledFromProperty.
|
protected boolean |
isAvailable(ListViewAction.Context context)
Checks whether this action is available for particular context.
|
void |
setPreviewUrlAdjustingEnabled(boolean previewUrlAdjustingEnabled) |
createContext, createContext, getItem, getMultiSelectEventListener, getMultiSelectImageURI, getMultiSelectPopup, getSelectedItems, getStatusCode, isAlwaysEnabled, sendEvent, sendUpdateItemsEvent, setAlwaysEnabledprotected boolean isAdjustingEnabledFromProperty
protected void doCreateContext(ListViewAction.Context context)
doCreateContext in class AbstractListViewActionpublic Menupopup getContextPopup(ListViewAction.Context context)
ListViewActionnull if no popup is
availableprotected CMSAdminSiteService getCmsAdminSiteService()
public EventListener getEventListener(ListViewAction.Context context)
ListViewActionEventListener which is to be registered for the Events#ON_CLICK event.public String getImageURI(ListViewAction.Context context)
ListViewActionpublic Menupopup getPopup(ListViewAction.Context context)
ListViewActionnull if no popup is availablepublic String getTooltip(ListViewAction.Context context)
ListViewActionprotected boolean isAvailable(ListViewAction.Context context)
public MediaUpdateService getMediaUpdateService()
public TypeService getTypeService()
protected Image generateImage(String url, String cutyCaptExecutable, String workingDir, int width, long timeout)
Image for a given website. See
SitePreviewTools.generatePreviewImage(String, String, String, int, long). This implementation calls
adjustPreviewUrl(String) to adjust the url.protected String adjustPreviewUrl(String url)
generateImage(String, String, String, int, long). Override it to do your custom adjustments.protected boolean isAdjustingEnabledFromProperty()
public void setPreviewUrlAdjustingEnabled(boolean previewUrlAdjustingEnabled)
Copyright © 2017 SAP SE. All Rights Reserved.