Class CommentLayerComponentModel
- java.lang.Object
-
- de.hybris.platform.cockpit.components.mvc.commentlayer.model.CommentLayerComponentModel
-
- All Implemented Interfaces:
java.io.Serializable
public class CommentLayerComponentModel extends java.lang.Object implements java.io.SerializableRepresentation of current state of the comment layer component. Plays role of the Model in the comment layer MVC architecture.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_MODE
-
Constructor Summary
Constructors Constructor Description CommentLayerComponentModel(TypedObject commentTarget, TypedObject commentLayerTarget, java.lang.String mode, CommentLayerAwareModel commentLayerAwareModel)CommentLayerComponentModel(TypedObject commentTarget, TypedObject commentLayerTarget, java.lang.String mode, CommentLayerAwareModel commentLayerAwareModel, int pageIndex)
-
Method Summary
-
-
-
Field Detail
-
DEFAULT_MODE
public static final java.lang.String DEFAULT_MODE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CommentLayerComponentModel
public CommentLayerComponentModel(TypedObject commentTarget, TypedObject commentLayerTarget, java.lang.String mode, CommentLayerAwareModel commentLayerAwareModel)
-
CommentLayerComponentModel
public CommentLayerComponentModel(TypedObject commentTarget, TypedObject commentLayerTarget, java.lang.String mode, CommentLayerAwareModel commentLayerAwareModel, int pageIndex)
-
-
Method Detail
-
getMode
public java.lang.String getMode()
-
setMode
public void setMode(java.lang.String mode)
-
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
public TypedObject getCommentTarget()
- Returns:
- the commentTarget
-
getSelectedIcon
public CommentIconModel getSelectedIcon()
- Returns:
- the selectedIcon
-
setSelectedIcon
public void setSelectedIcon(CommentIconModel selectedIcon)
- Parameters:
selectedIcon- the selectedIcon to set
-
getCommentLayerTarget
public TypedObject 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
public CommentLayerAwareModel getCommentLayerAwareModel()
- Returns:
- the browserModel
-
getIconModels
public java.util.List<CommentIconModel> getIconModels()
- Returns:
- the iconModels
-
addIconModel
public boolean addIconModel(CommentIconModel iconModel)
-
removeIcon
public boolean removeIcon(CommentIconModel iconModel)
-
getScrollableContainerId
public java.lang.String getScrollableContainerId()
- Returns:
- the scrollableContainerId
-
setScrollableContainerId
public void setScrollableContainerId(java.lang.String scrollableContainerId)
- 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
-
-