public abstract class AbstractPagePreviewModel extends Object implements PreviewModel
| Constructor and Description |
|---|
AbstractPagePreviewModel() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddNewEmptyPreviewPage, addPlacements, addPlacements, addPreviewModelListener, copyPlacements, copyPlacements, copyPreviewPages, deletePlacements, deletePreviewPages, getDoublePages, getPreviewPages, getPreviewPagesTotalQuantity, getSlotsCapacity, getTypedPage, initModel, isPagesStartsLeft, isShowDoublePages, movePlacements, movePlacements, movePreviewPages, notifyListeners, removeLastEmptyPage, removePreviewModelListener, setShowDoublePagesprotected ModelHelper getCockpitModelHelper()
public void setCockpitModelHelper(ModelHelper cockpitModelHelper)
protected void setNotification(Notification notification)
protected LayoutService getLayoutService()
public void setLayoutService(LayoutService layoutService)
protected PrintcockpitService getPrintcockpitService()
public void setPrintcockpitService(PrintcockpitService printcockpitService)
protected List<PreviewElementUpdate> initPlacements(PageModel page, PreviewPage previewPage)
PreviewPage basing on the current page's GridMode.page - previewPage - PreviewElementUpdate - which are the the update requests for the front end component's listenersprotected List<PreviewElementUpdate> initPlacements(PageModel page, List<PreviewPage> previewPages)
PreviewPages basing on the current page's GridMode.page - previewPages - PreviewElementUpdate - which are the the update requests for the front end component's listenersprotected GridPreviewPage createNewPage(PreviewModel previewModel, double gridWidth, double gridHeight, int pageIndex)
public void setPlacementsHandlerRegistry(Map<GridMode,PlacementHandler> placementsHandlerRegistry)
placementsHandlerRegistry - the placementsHandlerRegistry to setpublic void setPagePlannerRegistry(PagePlannerRegistry pagePlannerRegistry)
pagePlannerRegistry - the pagePlannerRegistry to setprotected PagePlanner getPagePlannerForPage(PageModel page)
protected PublicationService getPublicationService()
public void setPublicationService(PublicationService publicationService)
publicationService - the publicationService to setprotected TypeService getCockpitTypeService()
public void setCockpitTypeService(TypeService cockpitTypeService)
cockpitTypeService - the cockpitTypeService to setpublic SpreadPosition getGridType(PlacementModel placement, PageModel page)
public SpreadPosition getGridType(PageModel page, int pageIndex)
public void handleAddPlacements(PreviewModel previewModel, Collection<Object> placementsOrProducts, PreviewSlot dropSlot)
protected int getPageIndexForSlot(PreviewSlot nextSlot)
protected PreviewSlot getNextSlot(PreviewSlot slot, List<PreviewPage> previewPages)
public void setDefaultTemplate(PageModel pageModel, ItemPlacementModel placement)
PreviewModelsetDefaultTemplate in interface PreviewModelpublic void setModelService(ModelService modelService)
modelService - the modelService to setprotected ModelService getModelService()
protected Map<GridMode,PlacementHandler> getPlacementsHandlerRegistry()
Copyright © 2017 SAP SE. All Rights Reserved.