public class PrintCockpitCommentLayerComponentController extends DefaultCommentLayerComponentController
DefaultCommentLayerComponentController for printcockpit extension. LayoutService to resolve CommentLayerComponent size.cockpitModelHelper, cockpitTypeService, COMMENT_LAYER_ARG_NAME, COMMENTLAYER_INDEX, commentLayerService, commentService, commentTooltipRenderer, commentType, component, domain, LOG, modelService, NORMAL_BORDER, uiAccessRightService| Constructor and Description |
|---|
PrintCockpitCommentLayerComponentController() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommentIcon(CommentLayerComponent commentLayerComponent,
int x_Position,
int y_Position)
Appends new comment icon on the
commentLayercomponent at the x,y position. |
protected void |
addExistingComments(CommentLayerComponent commentLayerComponent) |
boolean |
canDeleteComment(CommentModel comment)
Evaluates if current user is eligible to delete the target comment instance.
|
boolean |
canMoveCommentIcon(CommentIcon icon)
Evaluates if current user can move given comment on the comment layer.
|
Menupopup |
createContextMenu(CommentLayerComponent component)
Creates context menu component for the right-click actions on the comment layer
|
protected void |
createEditPopupContentForComment(Window newCommentPopup,
CommentLayerComponent clComponent,
CommentLayerAwareModel clAwareModel,
CommentIcon newIcon,
CommentModel commentToEdit,
boolean create)
Create additional content for comment creation and edit popup.
|
protected Window |
createEditPopupForComment(CommentLayerComponent clComponent,
CommentLayerAwareModel clAwareModel,
CommentIcon newIcon,
CommentModel commentToEdit,
boolean create) |
protected CommentIcon |
createNewIcon(CommentIconModel model) |
protected Window |
createReplyPopup(CommentLayerAwareModel model,
AbstractCommentModel abstractCommentModel,
boolean edit) |
void |
deleteCommentFromCommentLayer(CommentLayerComponent component,
CommentIcon icon)
Removes the given icon from the target comment layer component.
|
double[] |
getWidthAndHeight(CommentLayerComponent component,
double scaleFactor)
Return comment layer dimensions according to the given scale factor.
|
protected void |
prepareCommentUpdate(Window newCommentPopup,
AbstractCommentModel commentToSave,
boolean create)
Prepare comment for saving.
|
void |
refreshContextList(CommentLayerAwareModel commentLayerAwareModel,
boolean refreshItems)
Tries to perform refresh of the
ContextAreaCommentTreeComponent |
void |
setCockpitCommentService(CockpitCommentService cockpitCommentService) |
void |
setCockpitCommentUtils(CockpitCommentUtils cockpitCommentUtils) |
void |
setLayoutService(LayoutService layoutService) |
void |
setPrintCollaborationFacade(PrintCollaborationFacade printCollaborationFacade) |
canCreateComment, canCreateComment, canEditComment, canReplyToComment, changeCommentLayerMode, changeCommentLayerMode, changeCommentLayerToDefaultMode, changeCommentLayerToDefaultMode, createCockpitFCKEditor, createCommentMetadata, createEditPopupForComment, createIconContextMenu, displayCommentIcon, displayCommentIcon, drawCommentLayerOverArea, editCommentPopup, getCommentIconForComment, getCommentType, getCurentUser, getCurrentComponent, getDimensionsFromParent, getDomain, getPagePreviewIndex, getRealPositionCoordinate, getTypeService, moveCommentIcon, prepareReplyUpdate, refreshCommentIcon, renderSimpleDecisionNavigation, replyComment, selectCommentIcon, setCockpitModelHelper, setCockpitTypeService, setCommentAttachments, setCommentLayerService, setCommentService, setCommentTooltipRenderer, setModelService, setUiAccessRightService, updateComment, updateComponentIcon, validateCommentLayerpublic PrintCockpitCommentLayerComponentController()
public double[] getWidthAndHeight(CommentLayerComponent component, double scaleFactor)
CommentLayerComponentControllergetWidthAndHeight in interface CommentLayerComponentController<CommentLayerComponent>getWidthAndHeight in class DefaultCommentLayerComponentControllercomponent - - Comment layerscaleFactor - -target scale factorpublic void addCommentIcon(CommentLayerComponent commentLayerComponent, int x_Position, int y_Position)
CommentLayerComponentControllercommentLayercomponent at the x,y position. Calling this method
will create:
CommentLayerComponentModel.getCommentTarget() )CommentMetadataModel ) with the comment layer target item ( i.
e Page preview in print cockpit CommentLayerComponentModel.getCommentLayerTarget()).addCommentIcon in interface CommentLayerComponentController<CommentLayerComponent>addCommentIcon in class DefaultCommentLayerComponentControllercommentLayerComponent - - componentx_Position - - x position (left)y_Position - - y position (top)public Menupopup createContextMenu(CommentLayerComponent component)
CommentLayerComponentControllercreateContextMenu in interface CommentLayerComponentController<CommentLayerComponent>createContextMenu in class DefaultCommentLayerComponentControllercomponent - - comment layer componentpublic boolean canDeleteComment(CommentModel comment)
CommentLayerComponentControllerCommentPermissionCheckStrategy, which can be customized per project installation.canDeleteComment in interface CommentLayerComponentController<CommentLayerComponent>canDeleteComment in class DefaultCommentLayerComponentControllercomment - - target CommentModelprotected void addExistingComments(CommentLayerComponent commentLayerComponent)
addExistingComments in class DefaultCommentLayerComponentControllerpublic void refreshContextList(CommentLayerAwareModel commentLayerAwareModel, boolean refreshItems)
CommentLayerComponentControllerContextAreaCommentTreeComponentrefreshContextList in interface CommentLayerComponentController<CommentLayerComponent>refreshContextList in class DefaultCommentLayerComponentControllerpublic void deleteCommentFromCommentLayer(CommentLayerComponent component, CommentIcon icon)
CommentLayerComponentControllerdeleteCommentFromCommentLayer in interface CommentLayerComponentController<CommentLayerComponent>deleteCommentFromCommentLayer in class DefaultCommentLayerComponentControllercomponent - - Comment layer componenticon - - icon to removeprotected Window createEditPopupForComment(CommentLayerComponent clComponent, CommentLayerAwareModel clAwareModel, CommentIcon newIcon, CommentModel commentToEdit, boolean create)
createEditPopupForComment in class DefaultCommentLayerComponentControllerprotected void createEditPopupContentForComment(Window newCommentPopup,
CommentLayerComponent clComponent,
CommentLayerAwareModel clAwareModel,
CommentIcon newIcon,
CommentModel commentToEdit,
boolean create)
DefaultCommentLayerComponentControllercreateEditPopupContentForComment in class DefaultCommentLayerComponentControllerprotected void prepareCommentUpdate(Window newCommentPopup,
AbstractCommentModel commentToSave,
boolean create)
DefaultCommentLayerComponentControllerprepareCommentUpdate in class DefaultCommentLayerComponentControllerprotected Window createReplyPopup(CommentLayerAwareModel model, AbstractCommentModel abstractCommentModel, boolean edit)
createReplyPopup in class DefaultCommentLayerComponentControllerpublic boolean canMoveCommentIcon(CommentIcon icon)
CommentLayerComponentControllercanMoveCommentIcon in interface CommentLayerComponentController<CommentLayerComponent>canMoveCommentIcon in class DefaultCommentLayerComponentControllericon - - target CommentIconprotected CommentIcon createNewIcon(CommentIconModel model)
createNewIcon in class DefaultCommentLayerComponentControllerpublic void setCockpitCommentService(CockpitCommentService cockpitCommentService)
public void setCockpitCommentUtils(CockpitCommentUtils cockpitCommentUtils)
public void setLayoutService(LayoutService layoutService)
public void setPrintCollaborationFacade(PrintCollaborationFacade printCollaborationFacade)
Copyright © 2017 SAP SE. All Rights Reserved.