-
-
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.
Do not resize main table columns in search dialog window
- Loading branch information
1 parent
9955a33
commit a396d6c
Showing
8 changed files
with
177 additions
and
13 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
src/main/java/org/jabref/gui/maintable/AbstractColumnPreferences.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.jabref.gui.maintable; | ||
|
||
import java.util.List; | ||
|
||
public interface AbstractColumnPreferences { | ||
|
||
public static final double DEFAULT_COLUMN_WIDTH = 100; | ||
public static final double ICON_COLUMN_WIDTH = 16 + 12; // add some additional space to improve appearance | ||
|
||
public List<MainTableColumnModel> getColumns(); | ||
|
||
public List<MainTableColumnModel> getColumnSortOrder(); | ||
} |
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
24 changes: 24 additions & 0 deletions
24
src/main/java/org/jabref/gui/maintable/SearchDialogColumnPreferences.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.jabref.gui.maintable; | ||
|
||
import java.util.List; | ||
|
||
public class SearchDialogColumnPreferences implements AbstractColumnPreferences{ | ||
|
||
private final List<MainTableColumnModel> columns; | ||
private final List<MainTableColumnModel> columnSortOrder; | ||
|
||
public SearchDialogColumnPreferences(List<MainTableColumnModel> columns, List<MainTableColumnModel> columnSortOrder) { | ||
this.columns = columns; | ||
this.columnSortOrder = columnSortOrder; | ||
} | ||
|
||
@Override | ||
public List<MainTableColumnModel> getColumns() { | ||
return columns; | ||
} | ||
|
||
@Override | ||
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