public class WidgetTypeLoader extends AbstractTypeLoader
WidgetType.WIDGET_TYPE_PREFIX and
properties having qualifiers like "_widget_[enclosingtypecode].[parametername]".| Modifier and Type | Class and Description |
|---|---|
protected class |
WidgetTypeLoader.MyWidgetType |
| Constructor and Description |
|---|
WidgetTypeLoader() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttributeCodeFromPropertyQualifier(String propertyQualifier)
Splits up a property qualifier and returns the attribute part of it.
|
List<Object> |
getAvailableValues(TypeModel type,
PropertyDescriptor propertyDescriptor,
TypeService typeService)
Returns all possible values for the given property, e.g.
|
Set<String> |
getExtendedTypeCodes(TypedObject item)
Returns the type codes of all extended types for the given item.
|
Collection<ExtendedType> |
getExtendedTypesForTemplate(ItemType type,
String templateCode,
TypeService typeService)
Returns the extended types for a given template.
|
String |
getTypeCodeFromPropertyQualifier(String propertyQualifier)
Splits up a property qualifier and returns the type part of it.
|
TypeModel |
getValueType(ObjectType enclosingType,
PropertyDescriptor propertyDescriptor,
TypeService typeService)
Returns the value type for the given property descriptor.
|
ExtendedType |
loadType(String code,
TypeService typeService)
Returns an extended type for the given code.
|
protected WidgetType |
loadWidgetType(String code) |
getModelService, getPropertyService, getTypeService, setCockpitPropertyService, setModelService, setTypeServicepublic TypeModel getValueType(ObjectType enclosingType, PropertyDescriptor propertyDescriptor, TypeService typeService)
ExtendedTypeLoadergetValueType in interface ExtendedTypeLoadergetValueType in class AbstractTypeLoaderenclosingType - The type that owns the propertypublic Set<String> getExtendedTypeCodes(TypedObject item)
ExtendedTypeLoaderpublic List<Object> getAvailableValues(TypeModel type, PropertyDescriptor propertyDescriptor, TypeService typeService)
ExtendedTypeLoadergetAvailableValues in interface ExtendedTypeLoadergetAvailableValues in class AbstractTypeLoadertype - The value type of the propertypropertyDescriptor - The property.public ExtendedType loadType(String code, TypeService typeService)
ExtendedTypeLoadercode - The code of the desired typetypeService - The cockpit type serviceprotected WidgetType loadWidgetType(String code)
public String getAttributeCodeFromPropertyQualifier(String propertyQualifier)
ExtendedTypeLoadergetAttributeCodeFromPropertyQualifier in interface ExtendedTypeLoadergetAttributeCodeFromPropertyQualifier in class AbstractTypeLoaderpublic String getTypeCodeFromPropertyQualifier(String propertyQualifier)
ExtendedTypeLoadergetTypeCodeFromPropertyQualifier in interface ExtendedTypeLoadergetTypeCodeFromPropertyQualifier in class AbstractTypeLoaderpublic Collection<ExtendedType> getExtendedTypesForTemplate(ItemType type, String templateCode, TypeService typeService)
ExtendedTypeLoadergetExtendedTypesForTemplate in interface ExtendedTypeLoadergetExtendedTypesForTemplate in class AbstractTypeLoadertype - The item type of the template.templateCode - The template code (without the type part, e.g. CPU for Product.CPU).Copyright © 2017 SAP SE. All Rights Reserved.