Class CommentLayerComponentModel
java.lang.Object
de.hybris.platform.cockpit.components.mvc.commentlayer.model.CommentLayerComponentModel
- All Implemented Interfaces:
Serializable
Representation of current state of the comment layer component. Plays role of the Model in the comment layer MVC
architecture.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCommentLayerComponentModel(TypedObject commentTarget, TypedObject commentLayerTarget, String mode, CommentLayerAwareModel commentLayerAwareModel) CommentLayerComponentModel(TypedObject commentTarget, TypedObject commentLayerTarget, String mode, CommentLayerAwareModel commentLayerAwareModel, int pageIndex) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddIconModel(CommentIconModel iconModel) intintdoublegetMode()intdoubledoublegetWidth()intbooleanbooleanremoveIcon(CommentIconModel iconModel) voidsetCurrentRightClickX(int currentRightClickX) voidsetCurrentRightClickY(int currentRightClickY) voidsetExposed(boolean exposed) voidsetHeight(double height) voidvoidsetPageIndex(int pageIndex) voidsetScaleFactor(double scaleFactor) voidsetScrollableContainerId(String scrollableContainerId) voidsetSelectedIcon(CommentIconModel selectedIcon) voidsetWidth(double width) voidsetzIndex(int zIndex)
-
Field Details
-
DEFAULT_MODE
- See Also:
-
-
Constructor Details
-
CommentLayerComponentModel
public CommentLayerComponentModel(TypedObject commentTarget, TypedObject commentLayerTarget, String mode, CommentLayerAwareModel commentLayerAwareModel) -
CommentLayerComponentModel
public CommentLayerComponentModel(TypedObject commentTarget, TypedObject commentLayerTarget, String mode, CommentLayerAwareModel commentLayerAwareModel, int pageIndex)
-
-
Method Details
-
getMode
-
setMode
-
getWidth
public double getWidth()- Returns:
- the width
-
setWidth
public void setWidth(double width) - Parameters:
width- the width to set
-
getHeight
public double getHeight()- Returns:
- the height
-
setHeight
public void setHeight(double height) - Parameters:
height- the height to set
-
getScaleFactor
public double getScaleFactor()- Returns:
- the scaleFactor
-
setScaleFactor
public void setScaleFactor(double scaleFactor) - Parameters:
scaleFactor- the scaleFactor to set
-
getCommentTarget
- Returns:
- the commentTarget
-
getSelectedIcon
- Returns:
- the selectedIcon
-
setSelectedIcon
- Parameters:
selectedIcon- the selectedIcon to set
-
getCommentLayerTarget
- Returns:
- the commentLayerTarget
-
getCurrentRightClickX
public int getCurrentRightClickX()- Returns:
- the currentRightClickX
-
setCurrentRightClickX
public void setCurrentRightClickX(int currentRightClickX) - Parameters:
currentRightClickX- the currentRightClickX to set
-
getCurrentRightClickY
public int getCurrentRightClickY()- Returns:
- the currentRightClickY
-
setCurrentRightClickY
public void setCurrentRightClickY(int currentRightClickY) - Parameters:
currentRightClickY- the currentRightClickY to set
-
getzIndex
public int getzIndex()- Returns:
- the zIndex
-
setzIndex
public void setzIndex(int zIndex) - Parameters:
zIndex- the zIndex to set
-
isExposed
public boolean isExposed()- Returns:
- the exposed
-
setExposed
public void setExposed(boolean exposed) - Parameters:
exposed- the exposed to set
-
getCommentLayerAwareModel
- Returns:
- the browserModel
-
getIconModels
- Returns:
- the iconModels
-
addIconModel
-
removeIcon
-
getScrollableContainerId
- Returns:
- the scrollableContainerId
-
setScrollableContainerId
- Parameters:
scrollableContainerId- the scrollableContainerId to set
-
getPageIndex
public int getPageIndex()- Returns:
- the pageIndex
-
setPageIndex
public void setPageIndex(int pageIndex) - Parameters:
pageIndex- the pageIndex to set
-