public class ItemProperties
extends java.lang.Object
Constructor and Description |
---|
ItemProperties(java.util.Map<java.lang.String,java.lang.String> data,
java.lang.String propName,
Item item,
java.lang.Enum event,
java.lang.String ajaxPath) |
Modifier and Type | Method and Description |
---|---|
void |
createProperty(java.lang.String itemJson,
ResponseHandler callback)
Create new property item
|
void |
deleteProperty(long id,
ResponseHandler callback,
boolean skipFlag)
Delete property item
|
java.util.Collection<java.lang.String> |
getProperties()
Return item properties json
|
java.lang.String |
getProperty(long id)
Return property item json
|
void |
updateProperty(java.lang.String itemJson,
ResponseHandler callback) |
void |
updateProperty(java.lang.String itemJson,
java.lang.String callMode,
ResponseHandler callback)
Update property item
|
protected Item item
public ItemProperties(java.util.Map<java.lang.String,java.lang.String> data, java.lang.String propName, Item item, java.lang.Enum event, java.lang.String ajaxPath)
public java.util.Collection<java.lang.String> getProperties()
public java.lang.String getProperty(long id)
id
- item indexpublic void createProperty(java.lang.String itemJson, ResponseHandler callback)
itemJson
- Json itemcallback
- callback functionpublic void updateProperty(java.lang.String itemJson, java.lang.String callMode, ResponseHandler callback)
itemJson
- Json itemcallback
- callback functionpublic void updateProperty(java.lang.String itemJson, ResponseHandler callback)
public void deleteProperty(long id, ResponseHandler callback, boolean skipFlag)
id
- item indexcallback
- callback functionskipFlag
- skip update