com.ibm.mashups.iwidget.widget
Interface Properties


public Properties

Interface defines functions to iterates , updates and persist Properties.


Method Summary
 String getItemValue(String itemName, String locale)
           This method returns the value of the required item
 String[] getAllNames()
           This method returns an array of Strings,providing the name of each item.
 String[] getItemLocales(String itemName)
           This methods returns the locales for the item specified by itemName
 Boolean isReadOnly(String itemName)
           This method allows the caller to check whether a specific item is readOnly or not.
 

Method Detail

getItemValue

String getItemValue(String itemName,
                    String locale)
This method returns the value of the required item

Parameters:
itemName - name of the item.Must never be NULL.
locale - the locale of the value to fetch. if locale isn't defined, the DEFAULT_LOCALE will be used
Returns:
return the value of required item

getAllNames

String[] getAllNames()
This method returns an array of Strings,providing the name of each item.

Returns:
return an array of items names and return NULL if the set contains no item

getItemLocales

String[] getItemLocales(String itemName)
This methods returns the locales for the item specified by itemName

Parameters:
itemName - the name of the item for which do get the locales.
Returns:
return an array of locales valid for the specified itemName, returns an empty array if no localized item values are available.

isReadOnly

Boolean isReadOnly(String itemName)
This method allows the caller to check whether a specific item is readOnly or not.

Parameters:
itemName - the item name of the item to check readOnly
Returns:
true if the item exists and is read only, false otherwise.


Copyright IBM Corp. 2010 All Rights Reserved.