-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into change-upload-bac…
…k-to-script * upstream/master: Bump mockito-core from 3.2.0 to 3.2.4 (#5760) Bump classgraph from 4.8.58 to 4.8.59 (#5761) Improve dependency update rules Update jpackage to build 27 (#5758) Persistent column sortorder (#5730) Fix medline fetcher/importer when using installer (#5752) New Crowdin translations (#5751) Bump byte-buddy-parent from 1.10.4 to 1.10.5 (#5750) Fix checkstyle Fix filename
- Loading branch information
Showing
20 changed files
with
231 additions
and
188 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 6 additions & 13 deletions
19
src/main/java/org/jabref/gui/maintable/ColumnPreferences.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,25 @@ | ||
package org.jabref.gui.maintable; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import javafx.scene.control.TableColumn.SortType; | ||
|
||
public class ColumnPreferences { | ||
|
||
public static final double DEFAULT_WIDTH = 100; | ||
public static final double DEFAULT_COLUMN_WIDTH = 100; | ||
public static final double ICON_COLUMN_WIDTH = 16 + 12; // add some additional space to improve appearance | ||
|
||
private final List<MainTableColumnModel> columns; | ||
private final boolean extraFileColumnsEnabled; | ||
private final Map<String, SortType> columnSortType; | ||
private final List<MainTableColumnModel> columnSortOrder; | ||
|
||
public ColumnPreferences(List<MainTableColumnModel> columns, boolean extraFileColumnsEnabled, Map<String, SortType> columnSortType) { | ||
public ColumnPreferences(List<MainTableColumnModel> columns, List<MainTableColumnModel> columnSortOrder) { | ||
this.columns = columns; | ||
this.extraFileColumnsEnabled = extraFileColumnsEnabled; | ||
this.columnSortType = columnSortType; | ||
this.columnSortOrder = columnSortOrder; | ||
} | ||
|
||
public boolean getExtraFileColumnsEnabled() { return extraFileColumnsEnabled; } | ||
|
||
public List<MainTableColumnModel> getColumns() { | ||
return columns; | ||
} | ||
|
||
public Map<String, SortType> getSortTypesForColumns() { | ||
return columnSortType; | ||
public List<MainTableColumnModel> getColumnSortOrder() { | ||
return columnSortOrder; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.