Verified Owner
Top Fields Constructors Methods
org.jabref.gui.preferences.customentrytypes

public Class CustomEntryTypesTab

extends AbstractPreferenceTabView<CustomEntryTypesTabViewModel>
Class Inheritance
Imports
java.util.Arrays, .Optional, java.util.stream.Collectors, javafx.beans.property.BooleanProperty, .ReadOnlyStringWrapper, javafx.collections.ObservableList, javafx.geometry.Pos, javafx.scene.Group, .Node, javafx.scene.control.Button, .Label, .TableColumn, .TableRow, .TableView, .TextField, .Tooltip, javafx.scene.control.cell.CheckBoxTableCell, .TextFieldTableCell, javafx.scene.input.ClipboardContent, .DragEvent, .Dragboard, .MouseEvent, .TransferMode, javafx.scene.layout.HBox, .Priority, .Region, .VBox, org.jabref.gui.DragAndDropDataFormats, .StateManager, org.jabref.gui.icon.IconTheme, org.jabref.gui.preferences.AbstractPreferenceTabView, org.jabref.gui.theme.StyleClasses, org.jabref.gui.util.ControlHelper, .CustomLocalDragboard, .ValueTableCellFactory, .ViewModelTableRowFactory, org.jabref.logic.l10n.Localization, org.jabref.model.database.BibDatabaseContext, .BibDatabaseMode, org.jabref.model.entry.BibEntryTypesManager, org.jabref.model.entry.field.Field, .FieldFactory, .FieldProperty, .FieldTextMapper, .UnknownField, org.jabref.model.entry.types.EntryType, com.airhacks.afterburner.injection.Injector, com.tobiasdiez.easybind.EasyBind, org.controlsfx.control.CheckComboBox, org.controlsfx.control.textfield.TextFields

Field Summary

Modifier and TypeField and Description
private final TextField
private final Button
private final TextField
private final Button
private final TableView<EntryTypeViewModel>
private final CheckComboBox<FieldProperty>
private final TableView<FieldViewModel>
private final CustomLocalDragboard
Inherited from org.jabref.gui.preferences.AbstractPreferenceTabView:
dialogServicepreferencestaskExecutorviewModel

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
private void
private Node
private Node
private void
private BooleanProperty
createMultilinePropertyListener(TableColumn.CellDataFeatures<FieldViewModel, Boolean> item)

For multiline property, fields with the same name in each entry type will be updated as the standard fields are global.

public String
getTabName()

Implements org.jabref.gui.preferences.PreferencesTab.getTabName.

Should return the localized identifier to use for the tab.

public String
getTitle()

Overrides default org.jabref.gui.preferences.PreferencesTab.getTitle.

The heading the dialog shows above the tab's content.

private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
Inherited from org.jabref.gui.preferences.AbstractPreferenceTabView:
formgetContentgetRestartWarningsgetSearchableElementssetContentsetValuesstoreSettingsvalidateSettings

Field Detail

addNewEntryTypeback to summary
private final TextField addNewEntryType
addNewEntryTypeButtonback to summary
private final Button addNewEntryTypeButton
addNewFieldback to summary
private final TextField addNewField
addNewFieldButtonback to summary
private final Button addNewFieldButton
entryTypesTableback to summary
private final TableView<EntryTypeViewModel> entryTypesTable
fieldPropertyCheckComboBoxback to summary
private final CheckComboBox<FieldProperty> fieldPropertyCheckComboBox
fieldsback to summary
private final TableView<FieldViewModel> fields
localDragboardback to summary
private final CustomLocalDragboard localDragboard

Constructor Detail

CustomEntryTypesTabback to summary
public CustomEntryTypesTab()

Method Detail

addEntryTypeback to summary
private void addEntryType()
addNewFieldback to summary
private void addNewField()
buildEntryTypesColumnback to summary
private Node buildEntryTypesColumn()
buildFieldsColumnback to summary
private Node buildFieldsColumn()
buildViewback to summary
private void buildView()
createMultilinePropertyListenerback to summary
private BooleanProperty createMultilinePropertyListener(TableColumn.CellDataFeatures<FieldViewModel, Boolean> item)

For multiline property, fields with the same name in each entry type will be updated as the standard fields are global.

getTabNameback to summary
public String getTabName()

Implements org.jabref.gui.preferences.PreferencesTab.getTabName.

Doc from org.jabref.gui.preferences.PreferencesTab.getTabName.

Should return the localized identifier to use for the tab.

Annotations
@Override
getTitleback to summary
public String getTitle()

Overrides default org.jabref.gui.preferences.PreferencesTab.getTitle.

Doc from org.jabref.gui.preferences.PreferencesTab.getTitle.

The heading the dialog shows above the tab's content. Defaults to the tab's name; override where the heading is more specific (e.g. tab "Entry types", heading "Custom entry types").

Annotations
@Override
handleOnDragDetectedback to summary
private void handleOnDragDetected(TableRow<FieldViewModel> row, FieldViewModel fieldViewModel, MouseEvent event)
handleOnDragDroppedback to summary
private void handleOnDragDropped(TableRow<FieldViewModel> row, FieldViewModel originalItem, DragEvent event)
handleOnDragExitedback to summary
private void handleOnDragExited(TableRow<FieldViewModel> row, FieldViewModel fieldViewModel, DragEvent dragEvent)
handleOnDragOverback to summary
private void handleOnDragOver(TableRow<FieldViewModel> row, FieldViewModel originalItem, DragEvent event)
makeRotatedColumnHeaderback to summary
private void makeRotatedColumnHeader(TableColumn<?, ?> column, String text)
resetEntryTypesback to summary
private void resetEntryTypes()
setupEntryTypesTableback to summary
private void setupEntryTypesTable()
setupFieldPropertyCheckComboBoxback to summary
private void setupFieldPropertyCheckComboBox()
setupFieldsTableback to summary
private void setupFieldsTable()
updateAddNewFieldButtonTextback to summary
private void updateAddNewFieldButtonText()