Skip to content

Removed AreaFactory#305

Merged
TomasMikula merged 1 commit intoFXMisc:masterfrom
JordanMartinez:removeAreaFactory
May 10, 2016
Merged

Removed AreaFactory#305
TomasMikula merged 1 commit intoFXMisc:masterfrom
JordanMartinez:removeAreaFactory

Conversation

@JordanMartinez
Copy link
Copy Markdown
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