forked from JabRef/jabref
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
458de5b
commit 9d40be2
Showing
4 changed files
with
143 additions
and
29 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
src/main/java/org/jabref/gui/openoffice/StyleSelectCslItemViewModel.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,38 @@ | ||
package org.jabref.gui.openoffice; | ||
|
||
import javafx.beans.property.SimpleStringProperty; | ||
import javafx.beans.property.StringProperty; | ||
import org.jabref.logic.citationstyle.CitationStyle; | ||
import org.jabref.logic.openoffice.style.OOBibStyle; | ||
|
||
public class StyleSelectCslItemViewModel { | ||
|
||
private final StringProperty title = new SimpleStringProperty(""); | ||
private final StringProperty file = new SimpleStringProperty(""); | ||
private final StringProperty source = new SimpleStringProperty(""); | ||
|
||
private final CitationStyle style; | ||
|
||
public StyleSelectCslItemViewModel(CitationStyle style) { | ||
this.title.setValue(style.getTitle()); | ||
this.file.setValue(style.getFilePath()); | ||
this.source.setValue(style.getSource()); | ||
this.style = style; | ||
} | ||
|
||
public StringProperty titleProperty() { | ||
return title; | ||
} | ||
|
||
public StringProperty fileProperty() { | ||
return file; | ||
} | ||
|
||
public StringProperty sourceProperty() { | ||
return source; | ||
} | ||
|
||
public CitationStyle getStyle() { | ||
return style; | ||
} | ||
} |
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