Package com.webmethods.caf.faces.bean
Class BaseViewBean.ClientIdsContentProvider
java.lang.Object
com.webmethods.caf.faces.bean.BaseViewBean.ClientIdsContentProvider
- All Implemented Interfaces:
IContentProvider
- Enclosing class:
- BaseViewBean
Providers that maps raw control ids to client-side element ids.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected UIComponent
Reference to theUIComponent
at the root of the view. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[]
Returns list of properties supported by this content provider.Class<?>
Returns java type of the given propertyReturns value of the given propertyboolean
hasProperty
(Object propertyKey) Checks if the given property is supported by this content providerprotected void
listAllKeys
(List list, UIComponent component) Recursively adds all ids of descendants of component (inclusive) to list.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.webmethods.caf.faces.data.IContentProvider
toString
-
Field Details
-
root
Reference to theUIComponent
at the root of the view.
-
-
Constructor Details
-
ClientIdsContentProvider
Constructor. Populates all the controls ids and their respective client-side element ids.- Parameters:
root
-UIComponent
at the root of the view.
-
-
Method Details
-
getPropertyKeys
Description copied from interface:IContentProvider
Returns list of properties supported by this content provider. Can returnObject[0]
, never null.- Specified by:
getPropertyKeys
in interfaceIContentProvider
- Returns:
- array of property keys which is typically of type
String
orInteger
-
getType
Description copied from interface:IContentProvider
Returns java type of the given property- Specified by:
getType
in interfaceIContentProvider
- Parameters:
propertyKey
- the property key of typeString
orInteger
- Returns:
- property java
Class
- Throws:
PropertyNotFoundException
- if property is not supported
-
getValue
Description copied from interface:IContentProvider
Returns value of the given property- Specified by:
getValue
in interfaceIContentProvider
- Parameters:
propertyKey
- the property key of typeString
orInteger
- Returns:
- value of the property, can be
null
- Throws:
PropertyNotFoundException
- if property is not supportedELException
-
hasProperty
Description copied from interface:IContentProvider
Checks if the given property is supported by this content provider- Specified by:
hasProperty
in interfaceIContentProvider
- Parameters:
propertyKey
- property key of typeString
orInteger
- Returns:
true
if property is supported
-
listAllKeys
Recursively adds all ids of descendants of component (inclusive) to list.
-