TLF Table error

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

TLF Table error

hugo
Hello,

This is my first time, trying to use Table on TLF and even the smallest use
case throws an exception.

The smallest use case:
(textFlow.interactionManager as IEditManager).insertTableElement(new
TableElement());

Exception:
ArgumentError: NewElement not of a type that this can be parent of. TextFlow
cannot own table
        at
flashx.textLayout.elements::FlowGroupElement/replaceChildren()[D:\flex_sdk\Sources\flex-tlf\textLayout\src\flashx\textLayout\elements\FlowGroupElement.as:776]
        at
flashx.textLayout.elements::FlowGroupElement/addChildAt()[D:\flex_sdk\Sources\flex-tlf\textLayout\src\flashx\textLayout\elements\FlowGroupElement.as:906]
        at
AddElementMemento$/perform()[D:\flex_sdk\Sources\flex-tlf\textLayout\src\flashx\textLayout\edit\ModelEdit.as:589]
        at
flashx.textLayout.edit::ModelEdit$/addElement()[D:\flex_sdk\Sources\flex-tlf\textLayout\src\flashx\textLayout\edit\ModelEdit.as:57]
        at
flashx.textLayout.operations::InsertTableElementOperation/doOperation()[D:\flex_sdk\Sources\flex-tlf\textLayout\src\flashx\textLayout\operations\InsertTableElementOperation.as:107]
        at
flashx.textLayout.edit::EditManager/doInternal()[D:\flex_sdk\Sources\flex-tlf\textLayout\src\flashx\textLayout\edit\EditManager.as:772]
        at
flashx.textLayout.edit::EditManager/doOperation()[D:\flex_sdk\Sources\flex-tlf\textLayout\src\flashx\textLayout\edit\EditManager.as:652]
        at
flashx.textLayout.edit::EditManager/insertTableElement()[D:\flex_sdk\Sources\flex-tlf\textLayout\src\flashx\textLayout\edit\EditManager.as:1571]



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/