Skip to main content
Inspiring
April 15, 2011
Answered

Multiple textflows

  • April 15, 2011
  • 1 reply
  • 928 views

Hi,

I'm new at the Text Layout Framework.

And I need multiple textflows without losing the abilities of the tlf editor.

To be more precise:

I have an XML with multiple paragraphs that must be edited and i will split each paragraph into a separate textflow. Finally I want to display each paragraph in it's own container and make it all editable with one tlf editor. (I don't need to flow between the containers)

So the question is:

Is it possible to have multiple containers/textflows and just one tlf editor that controls the selected container/textflow? (And updating the values when I select an other textcontainer?)

Is there someone who can point me to the right direction to control the communication between the containers and the editor?

Thanks in advance.

Glen

This topic has been closed for replies.
Correct answer Jin-Huang

If I understand it correctly I will have an interactionManager for each  textflow which can be set on the same location so the user won't notice  the interactionManager is replaced?

answer: There is only one cursor in the screen, no matter how many containers. But you can set cursor to your location do what you want to do, and move it again, do operation, and move ..... So what you want to do can be several operations in an order.

And is it possible to have these containers (textflows) in a wrapping  container (with scrollbars when I have to many to display) and have the  editmanager outside?

answer: it can scroll but no scrollbar if you use TLF only, because TLF is a framework which provide enough information for you to implement your own bar.

TCM (TextContainerManager) in the framework is easier to handle scroll issue.

Maybe some components in flex has scrollbars, you can have a try on TextArea FTETextField in flex, TLFTextField in flash pro, they are all based on the framework.

1 reply

Adobe Employee
April 15, 2011

The design Now:

One textflow  has only one composer. one composer can have multiple  containercontrollers. one containercontroller can controll only one  container.

If there are multiple containercontrollers, it is flow between the containers.

If it is not flow between containers, one textflow can only be deployed to one container.

Every textflow has its own editManger, which is textFlow.interactionManager. But for users, it seems only one editor.

When to update is what you can control. You can call editManager.oneOperation() in focusout handler.

Bal_GlenAuthor
Inspiring
April 15, 2011

If I understand it correctly I will have an interactionManager for each textflow which can be set on the same location so the user won't notice the interactionManager is replaced?

Is it easy to set the location of the interactionManager separatly from the containers?

And is it possible to have these containers (textflows) in a wrapping container (with scrollbars when I have to many to display) and have the editmanager outside?

I try to visualise it with a table:

Container with textflows

Textflow number 1 with editable textThe editManager / InteractionManager
Textflow number 2 with editable text
Textflow number 3 with editable text
Textflow number 4 with editable text
Textflow number 5 with editable text, to go to number 6 i need to scroll in this container

Jin-HuangCorrect answer
Adobe Employee
April 15, 2011

If I understand it correctly I will have an interactionManager for each  textflow which can be set on the same location so the user won't notice  the interactionManager is replaced?

answer: There is only one cursor in the screen, no matter how many containers. But you can set cursor to your location do what you want to do, and move it again, do operation, and move ..... So what you want to do can be several operations in an order.

And is it possible to have these containers (textflows) in a wrapping  container (with scrollbars when I have to many to display) and have the  editmanager outside?

answer: it can scroll but no scrollbar if you use TLF only, because TLF is a framework which provide enough information for you to implement your own bar.

TCM (TextContainerManager) in the framework is easier to handle scroll issue.

Maybe some components in flex has scrollbars, you can have a try on TextArea FTETextField in flex, TLFTextField in flash pro, they are all based on the framework.