Skip to content

Commit

Permalink
Merge pull request #13 from JordanMartinez/scrollBarsNowOptional
Browse files Browse the repository at this point in the history
Make get/remove content public.
  • Loading branch information
TomasMikula committed Nov 20, 2015
2 parents 6f93817 + 434d94b commit 842feb6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/java/org/fxmisc/flowless/VirtualizedScrollPane.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,19 @@ public VirtualizedScrollPane(V content) {
getChildren().addListener((Observable obs) -> dispose());
}

/**
* Does not unbind scrolling from Content before returning Content.
* @return - the content
*/
public V getContent() {
return content;
}

/**
* Unbinds scrolling from Content before returning Content.
* @return - the content
*/
V removeContent() {
public V removeContent() {
getChildren().clear();
return content;
}
Expand Down

0 comments on commit 842feb6

Please sign in to comment.