Skip to content
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

Removed AreaFactory #305

Merged
merged 1 commit into from
May 10, 2016
Merged

Conversation

JordanMartinez
Copy link
Contributor

The class' purposes:

  • clone StyledTextArea or one of its three subclasses (no longer needed due to EditableStyledDocument now being public as an interface)

  • add scroll bars by embedding the area into a VirtualizedScrollPane (more of a convenience method than anything else)

    Cloning is no longer needed. Embedding it had an annoying leads-to-more-boilerplate issue: one couldn't modify the area before it was embedded into the pane.

    So, it seemed simpler to remove this class entirely and just tell developers to embed the area in their own code.

The class' purposes:
 - clone StyledTextArea or one of its three subclasses (no longer needed due to EditableStyledDocument now being public as an interface)
 - add scroll bars by embedding the area into a VirtualizedScrollPane (more of a convenience method than anything else)

 Cloning is no longer needed. Embedding it had an annoying leads-to-more-boilerplate issue: one couldn't modify the area before it was embedded into the pane.

 So, it seemed simpler to remove this class entirely and just tell developers to embed the area in their own code.
@TomasMikula TomasMikula merged commit f081484 into FXMisc:master May 10, 2016
@JordanMartinez JordanMartinez deleted the removeAreaFactory branch May 10, 2016 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants