Packagecom.yworks.support
Interfacepublic interface IMarkupExtensionFactory
Implementors CompositeLabelModel, DefaultColumn, DefaultLabel, DefaultRow, DescriptorWrapperLabelModel, LabelCandidateDescriptor, RotatedSideSliderEdgeLabelModel, RotatedSliderEdgeLabelModel, StripeDefaults, Table

Classes implementing the IMarkupExtensionFactory thereby provide a subclass of MarkupExtension that can be used for a more convenient serialization and deserialization of it's content.

If objects of this type are to be serialized by the ReflectionBasedSerializer it serializes their provided MarkupExtension instead.

Analogous the ReflectionBasedDeserializer first tries to deserialize into an according MarkupExtension and then uses it's provideValue method to return the original class type. When doing this it assumes that the MarkupExtension class has the same class name with an 'Extension' attached at the end, e.g. 'MyClass' and 'MyClassExtension'.



Public Methods
 MethodDefined By
  
Creates a markup extension that can be used instead of the original class.
IMarkupExtensionFactory
Method Detail
createMarkupExtension()method
public function createMarkupExtension(context:ILookup):MarkupExtension

Creates a markup extension that can be used instead of the original class.

Parameters

context:ILookup — The context that shall be considered when creating the markup extension.

Returns
MarkupExtension