| Modifier and Type | Field and Description |
|---|---|
| private final Comparator | |
| private final Comparator | |
| private final Comparator | |
| private final Comparator | |
| private Optional | |
| private final DialogService | |
| private final ObjectProperty | |
| private final StringProperty | |
| private final CustomLocalDragboard | |
| private final PreferencesService | |
| private final ObjectProperty | |
| private final ListProperty | |
| private final StateManager | |
| private final TaskExecutor |
| Access | Constructor and Description |
|---|---|
| public | GroupTreeViewModel(StateManager stateManager, DialogService dialogService, PreferencesService preferencesService, TaskExecutor taskExecutor, CustomLocalDragboard localDragboard)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addNewSubgroup(GroupNodeViewModel parent, GroupDialogHeader groupDialogHeader)
Opens "New Group Dialog" and adds the resulting group as subgroup to the specified group |
| public void | |
| public void | editGroup(GroupNodeViewModel oldGroup)
Opens "Edit Group Dialog" and changes the given group to the edited one. |
| public ObjectProperty | |
| public StringProperty | |
| private boolean | |
| private void | onActiveDatabaseChanged(Optional<BibDatabaseContext> newDatabase)
Gets invoked if the user changes the active database. |
| pack-priv boolean | Returns: true if just trivial modifications (e.g. color or description) or the relevant group properties are equal, false otherwiseOriginal Group oldGroup, AbstractGroup Edited group newGroup)Check if it is necessary to show a group modified, reassign entry dialog Group name change is handled separately |
| private void | onSelectedGroupChanged(ObservableList<GroupNodeViewModel> newValue)
Gets invoked if the user selects a different group. |
| private void | |
| public void | removeGroupAndSubgroups(GroupNodeViewModel group)
Removes the specified group and its subgroups (after asking for confirmation). |
| public void | |
| public void | removeGroupNoSubgroups(GroupNodeViewModel group)
Removes the specified group (after asking for confirmation). |
| pack-priv void | |
| public void | |
| public void | |
| public ObjectProperty | |
| public ListProperty | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| compAlphabetIgnoreCase | back to summary |
|---|---|
| private final Comparator<GroupTreeNode> compAlphabetIgnoreCase | |
| compAlphabetIgnoreCaseReverse | back to summary |
|---|---|
| private final Comparator<GroupTreeNode> compAlphabetIgnoreCaseReverse | |
| compEntries | back to summary |
|---|---|
| private final Comparator<GroupTreeNode> compEntries | |
| compEntriesReverse | back to summary |
|---|---|
| private final Comparator<GroupTreeNode> compEntriesReverse | |
| currentDatabase | back to summary |
|---|---|
| private Optional<BibDatabaseContext> currentDatabase | |
| dialogService | back to summary |
|---|---|
| private final DialogService dialogService | |
| filterPredicate | back to summary |
|---|---|
| private final ObjectProperty<Predicate<GroupNodeViewModel>> filterPredicate | |
| filterText | back to summary |
|---|---|
| private final StringProperty filterText | |
| localDragboard | back to summary |
|---|---|
| private final CustomLocalDragboard localDragboard | |
| preferences | back to summary |
|---|---|
| private final PreferencesService preferences | |
| rootGroup | back to summary |
|---|---|
| private final ObjectProperty<GroupNodeViewModel> rootGroup | |
| selectedGroups | back to summary |
|---|---|
| private final ListProperty<GroupNodeViewModel> selectedGroups | |
| stateManager | back to summary |
|---|---|
| private final StateManager stateManager | |
| taskExecutor | back to summary |
|---|---|
| private final TaskExecutor taskExecutor | |
| GroupTreeViewModel | back to summary |
|---|---|
| public GroupTreeViewModel(StateManager stateManager, DialogService dialogService, PreferencesService preferencesService, TaskExecutor taskExecutor, CustomLocalDragboard localDragboard) | |
| addNewGroupToRoot | back to summary |
|---|---|
| public void addNewGroupToRoot() Opens "New Group Dialog" and add the resulting group to the root | |
| addNewSubgroup | back to summary |
|---|---|
| public void addNewSubgroup(GroupNodeViewModel parent, GroupDialogHeader groupDialogHeader) Opens "New Group Dialog" and adds the resulting group as subgroup to the specified group | |
| addSelectedEntries | back to summary |
|---|---|
| public void addSelectedEntries(GroupNodeViewModel group) | |
| editGroup | back to summary |
|---|---|
| public void editGroup(GroupNodeViewModel oldGroup) Opens "Edit Group Dialog" and changes the given group to the edited one. | |
| filterPredicateProperty | back to summary |
|---|---|
| public ObjectProperty | |
| filterTextProperty | back to summary |
|---|---|
| public StringProperty filterTextProperty() | |
| isGroupTypeEqual | back to summary |
|---|---|
| private boolean isGroupTypeEqual(AbstractGroup oldGroup, AbstractGroup newGroup) | |
| onActiveDatabaseChanged | back to summary |
|---|---|
| private void onActiveDatabaseChanged(Optional<BibDatabaseContext> newDatabase) Gets invoked if the user changes the active database. We need to get the new group tree and update the view | |
| onlyMinorChanges | back to summary |
|---|---|
| pack-priv boolean onlyMinorChanges(AbstractGroup oldGroup, AbstractGroup newGroup) Check if it is necessary to show a group modified, reassign entry dialog
| |
| onSelectedGroupChanged | back to summary |
|---|---|
| private void onSelectedGroupChanged(ObservableList<GroupNodeViewModel> newValue) Gets invoked if the user selects a different group.
We need to notify the | |
| refresh | back to summary |
|---|---|
| private void refresh() | |
| removeGroupAndSubgroups | back to summary |
|---|---|
| public void removeGroupAndSubgroups(GroupNodeViewModel group) Removes the specified group and its subgroups (after asking for confirmation). | |
| removeGroupKeepSubgroups | back to summary |
|---|---|
| public void removeGroupKeepSubgroups(GroupNodeViewModel group) | |
| removeGroupNoSubgroups | back to summary |
|---|---|
| public void removeGroupNoSubgroups(GroupNodeViewModel group) Removes the specified group (after asking for confirmation). | |
| removeGroupsAndSubGroupsFromEntries | back to summary |
|---|---|
| pack-priv void removeGroupsAndSubGroupsFromEntries(GroupNodeViewModel group) | |
| removeSelectedEntries | back to summary |
|---|---|
| public void removeSelectedEntries(GroupNodeViewModel group) | |
| removeSubgroups | back to summary |
|---|---|
| public void removeSubgroups(GroupNodeViewModel group) | |
| rootGroupProperty | back to summary |
|---|---|
| public ObjectProperty | |
| selectedGroupsProperty | back to summary |
|---|---|
| public ListProperty | |
| sortAlphabeticallyRecursive | back to summary |
|---|---|
| public void sortAlphabeticallyRecursive(GroupTreeNode group) | |
| sortEntriesRecursive | back to summary |
|---|---|
| public void sortEntriesRecursive(GroupTreeNode group) | |
| sortReverseAlphabeticallyRecursive | back to summary |
|---|---|
| public void sortReverseAlphabeticallyRecursive(GroupTreeNode group) | |
| sortReverseEntriesRecursive | back to summary |
|---|---|
| public void sortReverseEntriesRecursive(GroupTreeNode group) | |
| writeGroupChangesToMetaData | back to summary |
|---|---|
| public void writeGroupChangesToMetaData() | |