|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public ManagedItemSet
Interface to a simple abstraction of a datamodel. This provides a base from which more sofisticated datamodel can be built. There're 3 default ManagedItemSet provided in Lotus Mashups. They are attributes, userprofile and idescriptor.
| Method Summary | |
|---|---|
void |
save(com.ibm.mashups.iwidget.itemset.ManagedItemSetCallbackModel.postSaveCallbackFn callbackfn)
Deprecated. use commit(callbackfn) instead |
void |
commit(com.ibm.mashups.iwidget.itemset.ManagedItemSetCallbackModel.postSaveCallbackFn callbackfn)
This method requests the queued change be processed. |
ItemSet |
setItemValue(String itemName,
String value,
Boolean readOnly)
Deprecated. use setItemValue(itemName,value) instead |
ItemSet |
setItemValue(String itemName,
String value)
This method sets an item within the ItemSet, creates or replaces an existing entry as needed. |
String |
getItemValue(String itemName)
This method returns the value for the named item from the set. |
String[] |
getAllNames()
This method returns an array of Strings, providing the name of each item. |
ItemSet |
removeItem(String itemName)
Removes the named item from the set. |
ItemSet |
clone()
Deprecated. not used |
Boolean |
isReadOnly(String itemName)
This method returns a Boolean indicating whether or not the item specified by the supplied name can be modified by the user. |
Object |
getItemSetDescription()
Deprecated. not used |
String |
addListener(Function listener)
This function adds listener to this ShareableItemSet. |
Boolean |
removeListener(String listenerId)
This function removes the listener from this ShareableItemSet. |
| Method Detail |
|---|
void save(com.ibm.mashups.iwidget.itemset.ManagedItemSetCallbackModel.postSaveCallbackFn callbackfn)
function(in String managedItemSetName, in Boolean success);
callbackfn -
optional callback functionvoid commit(com.ibm.mashups.iwidget.itemset.ManagedItemSetCallbackModel.postSaveCallbackFn callbackfn)
function(in String managedItemSetName, in Boolean success);
callbackfn -
optional callback function
ItemSet setItemValue(String itemName,
String value,
Boolean readOnly)
itemName -
name of the item. Must never be null.value -
value of the item. Must never be null.readOnly -
optional Boolean attribute to indicate this item is readOnly or not.Default value is false if this parameter is not provided.
null upon failure.
ItemSet setItemValue(String itemName,
String value)
itemName -
name of the item. Must never be null.value -
value of the item. Must never be null.
null upon failure.String getItemValue(String itemName)
itemName -
name of the item. Must never be null.
null upon failure.String[] getAllNames()
null if the set contains no itemItemSet removeItem(String itemName)
itemName -
name of the item that needs to be removed. Must never be null.
null upon failure.ItemSet clone()
Boolean isReadOnly(String itemName)
itemName -
name of the required Item. Must never be null.
null.Object getItemSetDescription()
null.
null.String addListener(Function listener)
listener -
js function that should already be properly scoped. Must never be null.
Boolean removeListener(String listenerId)
listenerId -
listener id that's returned by the system when listener is added. Must never be null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||