|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public ShareableItemSet
Interface to a simple abstraction of a datamodel which is shared across different components.
Method Summary | |
---|---|
ShareableItemSet |
setItemValue(String itemName,
String value)
This method sets an item within the ShareableItemSet, 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. |
ShareableItemSet |
removeItem(String itemName)
Removes the named item from the set. |
void |
commit()
This funtions commits all the changes that's applied to ShareableItemSet. |
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 |
---|
ShareableItemSet 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 itemShareableItemSet removeItem(String itemName)
itemName
-
name of the item that needs to be removed. Must never be null
.
null
upon failure.void commit()
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 |