Is it possible to use this library as the text display area of chat application? My chat application currently uses a web view and I would really like to replace it with something else. But I'm not sure yet, if this library is a good match. I hope you can help me.
I need the following features:
- Display images inline
- Display an avatar image in the first column (spanning multiple lines)
- Display a timestamp after every message
- Access and alter single messages (every message has a unique id)
- Add new messages before or after a specific message (again, this message would be identified by the unique id)
- Keep current scroll position when adding new or altering existing messages
- Listen to the scroll position, so fetching of older messages can be initiated, if the view is scrolled to the top
- Read only display, while text is selectable and copy and paste is supported
My analysis regarding RichTextFX so far:
- can be implemented with custom objects.
- is probably possible by using a paragraph graphic factory.
- is currently not possible
- could probably be implemented by keeping track of paragraphs or text positions in a separate data structure.
- same as 4.
- is directly supported by the library.
- could probably be implemented by using some listener functionality of the
VirtualizedScrollPane.
- is directly supported by the library.
Is this analysis correct? Do you see other problems, which I have missed?
So if I'm not mistaken the biggest problem is number 3, as to my understanding the paragraph factory currently only can display nodes left to a paragraph. How hard would it be to extend the library with a new factory for placing nodes to the right side of a paragraph? Do you have ideas how this could be implemented in another way?
To get a clearer picture of what I'm talking about: Currently my backlog view looks like this (user avatars to the left, message in the middle, timestamp on the right; segment headers in between days):

Is it possible to use this library as the text display area of chat application? My chat application currently uses a web view and I would really like to replace it with something else. But I'm not sure yet, if this library is a good match. I hope you can help me.
I need the following features:
My analysis regarding RichTextFX so far:
VirtualizedScrollPane.Is this analysis correct? Do you see other problems, which I have missed?
So if I'm not mistaken the biggest problem is number 3, as to my understanding the paragraph factory currently only can display nodes left to a paragraph. How hard would it be to extend the library with a new factory for placing nodes to the right side of a paragraph? Do you have ideas how this could be implemented in another way?
To get a clearer picture of what I'm talking about: Currently my backlog view looks like this (user avatars to the left, message in the middle, timestamp on the right; segment headers in between days):
