Class CommentIconModel
- java.lang.Object
-
- de.hybris.platform.cockpit.components.mvc.commentlayer.model.CommentIconModel
-
public class CommentIconModel extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CommentIconModel(CommentModel comment, int x_Position, int y_Position)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommentModelgetComment()Returns the actualCommentModelthat corresponds to the comment icon.java.lang.StringgetParentComponentId()intgetX()intgetY()booleanisSelected()booleanisVisible()voidsetComment(CommentModel comment)voidsetParentComponentId(java.lang.String parentId)voidsetSelected(boolean selected)voidsetVisible(boolean visible)voidsetX(int x_Position)voidsetY(int y_Position)voidtoggleSelected()voidtoggleVisible()
-
-
-
Constructor Detail
-
CommentIconModel
public CommentIconModel(CommentModel comment, int x_Position, int y_Position)
-
-
Method Detail
-
getComment
public CommentModel getComment()
Returns the actualCommentModelthat corresponds to the comment icon.
-
isSelected
public boolean isSelected()
-
getY
public int getY()
-
getX
public int getX()
-
setSelected
public void setSelected(boolean selected)
-
setY
public void setY(int y_Position)
- Parameters:
y_Position- the y to set
-
setX
public void setX(int x_Position)
- Parameters:
x_Position- the x to set
-
toggleSelected
public void toggleSelected()
-
toggleVisible
public void toggleVisible()
-
isVisible
public boolean isVisible()
- Returns:
- the visible
-
setVisible
public void setVisible(boolean visible)
- Parameters:
visible- the visible to set
-
setParentComponentId
public void setParentComponentId(java.lang.String parentId)
-
getParentComponentId
public java.lang.String getParentComponentId()
- Returns:
- the parentComponentId
-
setComment
public void setComment(CommentModel comment)
- Parameters:
comment- the comment to set
-
-