Skip to content

Commit

Permalink
controlsfx#858 Applies changes asked by PR reviewer.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjourdain committed Jun 6, 2018
1 parent d5b89ba commit 6763765
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -193,7 +193,7 @@ private Node buildPropertySheetContainer() {
switch( getSkinnable().modeProperty().get() ) {
case CATEGORY: {
// group by category
Map<String, List<Item>> categoryMap = new TreeMap(getSkinnable().getcategoryComparator());
Map<String, List<Item>> categoryMap = new TreeMap(getSkinnable().getCategoryComparator());
for( Item p: getSkinnable().getItems()) {
String category = p.getCategory();
List<Item> list = categoryMap.get(category);
Expand Down
Expand Up @@ -440,7 +440,7 @@ public final void setTitleFilter( String filter ) {
}

// --- categoryComparatorProperty
private final SimpleObjectProperty<Comparator<?>> categoryComparatorProperty =
private final SimpleObjectProperty<Comparator<String>> categoryComparatorProperty =
new SimpleObjectProperty<>(this, "categoryComparator", null); //$NON-NLS-1$

/**
Expand All @@ -450,7 +450,7 @@ public final void setTitleFilter( String filter ) {
* or numerical order.
* @return A SimpleObjectproperty.
*/
public final SimpleObjectProperty<Comparator<?>> categoryComparatorProperty() {
public final SimpleObjectProperty<Comparator<String>> categoryComparatorProperty() {
return categoryComparatorProperty;
}

Expand All @@ -459,7 +459,7 @@ public final SimpleObjectProperty<Comparator<?>> categoryComparatorProperty() {
* @return how the categories should be laid out in
* the PropertySheet.
*/
public final Comparator<?> getcategoryComparator() {
public final Comparator<String> getCategoryComparator() {
return categoryComparatorProperty.get();
}

Expand All @@ -468,7 +468,7 @@ public final Comparator<?> getcategoryComparator() {
* the PropertySheet.
* @param mode
*/
public final void setcategoryComparatorProperty(Comparator<?> categoryComparator) {
public final void setCategoryComparator(Comparator<String> categoryComparator) {
categoryComparatorProperty.set(categoryComparator);
}

Expand Down

0 comments on commit 6763765

Please sign in to comment.