-
Notifications
You must be signed in to change notification settings - Fork 237
Question: Is it possible to use RichTextFX as a backlog view in a chat application? #752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It sounds to me like you're trying to fit a square peg (RichTextFX) into a circle hole (your project goals). If you're using RichTextFX (RTFX) for a user to type the message and hits send, then it makes sense to use RTFX. |
Thank you for the fast response, I've feared as much. I think I will have a look at RichTextFX's internals and learn how text selection, VirtualFlow and TextFlow objects play together, so I can create my own custom chat view component. |
Nevermind, I think I've found it. There is a virtual flow-object in the class GenericStyledArea. The paragraphs inside of it seem to be created by TextFlowObjects, which are an extension to JavaFX's TextFlow-class. I think I will find my way from here by myself. Thanks again! |
Feel free to ask additional questions if you want more insight into the internals of this project. |
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):

The text was updated successfully, but these errors were encountered: