|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.info.LyTag
leon.info.LyInfo
leon.info.LyObjectInfo
leon.info.LySticker
public final class LySticker
This class represents a sticker. It contains the following attributes : - the action on which the sticker is displayed, - the owner of this sticker, - the object on which the sticker is displayed, - the content of the sticker, - the x position of the sticker, - the y position of the sticker, - the width of the sticker, - the height of the sticker.
LyObjectInfo
Nested Class Summary |
---|
Nested classes/interfaces inherited from class leon.info.LyTag |
---|
LyTag.Model |
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Fields inherited from class leon.info.LyObjectInfo |
---|
NULL, PART_ALL, PART_BIND, PART_DATA, PART_GUI, PART_LABEL |
Constructor Summary | |
---|---|
LySticker(java.lang.String id,
java.lang.String user,
LyAction action,
java.lang.String objectId,
java.lang.String content,
int x,
int y,
int width,
int height)
Constructor for a sticker. |
Method Summary | |
---|---|
LySticker |
cloneSticker()
Clone a sticker. |
boolean |
deleteFile()
Method for deleting sticker file. |
void |
free()
Method for freeing extra info (and sub-infos). |
LyAction |
getAction()
Get the action referred by this sticker. |
java.lang.String |
getContent()
Get the content of this sticker. |
int |
getHeight()
Get the height of this sticker. |
java.lang.String |
getObjectId()
Get the object id referred by this sticker. |
java.lang.String |
getUser()
Get owner of this sticker. |
int |
getWidth()
Get the width of this sticker. |
int |
getX()
Get the x position of this sticker. |
int |
getY()
Get the y position of this sticker. |
boolean |
saveFile(LyXmlWriterInterface writer)
Method for saving sticker file. |
void |
setAction(LyAction action)
Sets the action referred by this sticker. |
void |
setContent(java.lang.String content)
Set the content of the sticker. |
void |
setHeight(int height)
Set the height of the sticker. |
void |
setWidth(int width)
Set the width of the sticker. |
void |
setX(int x)
Set the x position of the sticker. |
void |
setY(int y)
Set the y position of the sticker. |
void |
writeXml(java.io.PrintWriter pw)
Writes XML corresponding to this sticker element. |
void |
writeXml(java.io.PrintWriter pw,
boolean header,
boolean body)
Method to rewrite XML corresponding to this component. |
Methods inherited from class leon.info.LyObjectInfo |
---|
clone, getAlias, getData, getDataList, getDatas, getFilePrefix, getGroup, getInternalAlias, getInternalFilePrefix, getInternalName, getMarks, getName, getTemplate, getTip, getUserData, hasMark, hasMarks, hasTemplate, isTemplate, putData, putData, removeData, toName |
Methods inherited from class leon.info.LyInfo |
---|
getApplication, getFile, getId, getInclude, isIncluded, isInternal, isInternal, isLoaded, isLocked, load, setApplication, setFile, toString |
Methods inherited from class leon.info.LyTag |
---|
getCommentsEnd, getCommentsStart, getEnvironment, getModelType, getParent, getRootProject, hasAncestor, isExtern, setCommentsEnd, setCommentsStart, wasCloned |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface leon.info.infointerface.LyExtraInfoInterface |
---|
getFile, setFile |
Methods inherited from interface leon.parser.LyCommentInterface |
---|
getCommentsEnd, getCommentsStart, setCommentsEnd, setCommentsStart |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LySticker(java.lang.String id, java.lang.String user, LyAction action, java.lang.String objectId, java.lang.String content, int x, int y, int width, int height)
id
- the identifier of the sticker.user
- id of the user that owns the sticker.action
- action on which the sticker is displayed.objectId
- id of the object on which the sticker is displayed.content
- content of the sticker.x
- x position of the sticker.y
- y position of the sticker.width
- width of the sticker.height
- height of the sticker.Method Detail |
---|
public LySticker cloneSticker()
public void free()
free
in interface LyExtraInfoInterface
public boolean saveFile(LyXmlWriterInterface writer)
saveFile
in interface LyExtraInfoInterface
public boolean deleteFile()
deleteFile
in interface LyExtraInfoInterface
public void writeXml(java.io.PrintWriter pw, boolean header, boolean body)
writeXml
in interface LyExtraInfoInterface
pw
- The printWriter on which the XML is written.header
- Boolean indicating if header must be written.header
- Boolean indicating if body must be written.public void writeXml(java.io.PrintWriter pw)
writeXml
in interface LyExtraInfoInterface
pw
- PrintWriter on which the XML is written.public LyAction getAction()
public java.lang.String getObjectId()
public java.lang.String getContent()
public int getX()
public int getY()
public int getWidth()
public int getHeight()
public java.lang.String getUser()
getUser
in interface LyExtraInfoInterface
public void setAction(LyAction action)
action
- action concerned by this sticker.public void setContent(java.lang.String content)
content
- the content of the sticker.public void setX(int x)
x
- the x position of the sticker.public void setY(int y)
y
- the y position of the sticker.public void setWidth(int width)
width
- the width of the sticker.public void setHeight(int height)
height
- the height of the sticker.
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |