| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private final BooleanBinding | |
| private final BooleanBinding | |
| private static final int | |
| private final ObservableList | |
| private @Nullable Future | |
| private @Nullable org.jabref.logic.util.BackgroundTask | |
| private final ListChangeListener | |
| private final BibDatabaseContext | |
| private final SimpleObjectProperty | |
| private boolean | |
| private final ObservableList | |
| private final SimpleBooleanProperty | |
| private final GroupTreeNode | |
| private final SimpleBooleanProperty | |
| private final boolean | |
| private final CustomLocalDragboard | |
| private static final Logger | |
| private final Set | matchedEntries
Internal cache of matched entry IDs. |
| private final ReadOnlyIntegerWrapper | matchedEntriesCount
UI-facing count derived from |
| private boolean | |
| private final Object | matchedEntriesLock
Guards both the matched-entry cache and the derived hit-count property so readers observe a consistent pair. |
| private boolean | |
| private boolean | |
| private final InvalidationListener | |
| private final GuiPreferences | |
| private final List | |
| private final GroupNodeViewModel. | |
| private final StateManager | |
| private final TaskExecutor |
| Access | Constructor and Description |
|---|---|
| public | GroupNodeViewModel(@NonNull BibDatabaseContext databaseContext, @NonNull StateManager stateManager, @NonNull TaskExecutor taskExecutor, @NonNull GroupTreeNode groupNode, @NonNull CustomLocalDragboard localDragBoard, @NonNull GuiPreferences preferences)
|
| public | GroupNodeViewModel(BibDatabaseContext databaseContext, StateManager stateManager, TaskExecutor taskExecutor, AbstractGroup group, CustomLocalDragboard localDragboard, GuiPreferences preferences)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | acceptableDrop(Dragboard dragboard)
Decides if the content stored in the given |
| public List | addEntriesToGroup(List<BibEntry> entries)
Returns: what the assignment changed, for the caller to record — this does not touch the journal itself, because whether the assignment is a step of its own or part of a larger one is the caller's to know Todo warn before assigning to a group whose membership is written to a field other than
|
| private void | |
| public GroupTreeNode | |
| public BooleanBinding | |
| public BooleanBinding | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| private void | |
| private void | |
| private JabRefIcon | |
| pack-priv void | |
| public void | |
| pack-priv void | |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public SimpleBooleanProperty | |
| public Optional | |
| private Optional | |
| private Optional | |
| pack-priv static GroupNodeViewModel | getAllEntriesGroup(BibDatabaseContext newDatabase, StateManager stateManager, TaskExecutor taskExecutor, CustomLocalDragboard localDragBoard, GuiPreferences preferences)
|
| public Optional | |
| public ObservableList | |
| public Color | |
| public String | |
| public String | |
| public GroupTreeNode | |
| public IntegerBinding | |
| public JabRefIcon | |
| public Optional | |
| public String | |
| private int | |
| public boolean | |
| public SimpleBooleanProperty | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| pack-priv boolean | |
| private boolean | isMatchEffective(GroupNodeViewModel vm, BibEntry entry)
Returns whether the given entry should be considered part of this group for the purpose of the groups sidebar (hit counter, highlighting, etc.). |
| public boolean | |
| public void | moveTo(GroupNodeViewModel target)
Moves this group, without recording: a drag can move several groups at once, so the step is
opened by whoever handles the gesture — see |
| public void | |
| private void | onDatabaseChanged(ListChangeListener.
Gets invoked if an entry in the current database changes. |
| private Optional | |
| private void | |
| private void | |
| private void | |
| public void | |
| pack-priv void | |
| public String | |
| private GroupNodeViewModel | |
| private void | |
| pack-priv void |
| allSelectedEntriesMatched | back to summary |
|---|---|
| private final BooleanBinding allSelectedEntriesMatched | |
| anySelectedEntriesMatched | back to summary |
|---|---|
| private final BooleanBinding anySelectedEntriesMatched | |
| BULK_CHANGE_THRESHOLD | back to summary |
|---|---|
| private static final int BULK_CHANGE_THRESHOLD | |
| children | back to summary |
|---|---|
| private final ObservableList<GroupNodeViewModel> children | |
| currentUpdateFuture | back to summary |
|---|---|
| private @Nullable Future<?> currentUpdateFuture | |
| currentUpdateTask | back to summary |
|---|---|
| private @Nullable org.jabref.logic.util.BackgroundTask<List<BibEntry>> currentUpdateTask | |
| databaseChangeListener | back to summary |
|---|---|
| private final ListChangeListener<BibEntry> databaseChangeListener | |
| databaseContext | back to summary |
|---|---|
| private final BibDatabaseContext databaseContext | |
| displayName | back to summary |
|---|---|
| private final SimpleObjectProperty<String> displayName | |
| disposed | back to summary |
|---|---|
| private boolean disposed | |
| entriesList | back to summary |
|---|---|
private final ObservableList<BibEntry> entriesList
| |
| expandedProperty | back to summary |
|---|---|
| private final SimpleBooleanProperty expandedProperty | |
| groupNode | back to summary |
|---|---|
| private final GroupTreeNode groupNode | |
| hasChildren | back to summary |
|---|---|
| private final SimpleBooleanProperty hasChildren | |
| isRoot | back to summary |
|---|---|
| private final boolean isRoot | |
| localDragBoard | back to summary |
|---|---|
| private final CustomLocalDragboard localDragBoard | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| matchedEntries | back to summary |
|---|---|
| private final Set<String> matchedEntries Internal cache of matched entry IDs. Kept as a plain | |
| matchedEntriesCount | back to summary |
|---|---|
| private final ReadOnlyIntegerWrapper matchedEntriesCount UI-facing count derived from | |
| matchedEntriesInitialized | back to summary |
|---|---|
| private boolean matchedEntriesInitialized | |
| matchedEntriesLock | back to summary |
|---|---|
| private final Object matchedEntriesLock Guards both the matched-entry cache and the derived hit-count property so readers observe a consistent pair. | |
| matchedEntriesUpdateInProgress | back to summary |
|---|---|
| private boolean matchedEntriesUpdateInProgress | |
| matchedEntriesUpdatePending | back to summary |
|---|---|
| private boolean matchedEntriesUpdatePending | |
| onInvalidatedGroup | back to summary |
|---|---|
private final InvalidationListener onInvalidatedGroup
| |
| preferences | back to summary |
|---|---|
| private final GuiPreferences preferences | |
| searchIndexFutures | back to summary |
|---|---|
| private final List<Future<?>> searchIndexFutures | |
| searchIndexListener | back to summary |
|---|---|
| private final GroupNodeViewModel. | |
| stateManager | back to summary |
|---|---|
| private final StateManager stateManager | |
| taskExecutor | back to summary |
|---|---|
| private final TaskExecutor taskExecutor | |
| GroupNodeViewModel | back to summary |
|---|---|
| public GroupNodeViewModel(@NonNull BibDatabaseContext databaseContext, @NonNull StateManager stateManager, @NonNull TaskExecutor taskExecutor, @NonNull GroupTreeNode groupNode, @NonNull CustomLocalDragboard localDragBoard, @NonNull GuiPreferences preferences) | |
| GroupNodeViewModel | back to summary |
|---|---|
| public GroupNodeViewModel(BibDatabaseContext databaseContext, StateManager stateManager, TaskExecutor taskExecutor, AbstractGroup group, CustomLocalDragboard localDragboard, GuiPreferences preferences) | |
| acceptableDrop | back to summary |
|---|---|
| public boolean acceptableDrop(Dragboard dragboard) Decides if the content stored in the given
| |
| addEntriesToGroup | back to summary |
|---|---|
public List
| |
| addMatchedEntry | back to summary |
|---|---|
| private void addMatchedEntry(String entryId) | |
| addSubgroup | back to summary |
|---|---|
| public GroupTreeNode addSubgroup(AbstractGroup subgroup) | |
| allSelectedEntriesMatchedProperty | back to summary |
|---|---|
| public BooleanBinding allSelectedEntriesMatchedProperty() | |
| anySelectedEntriesMatchedProperty | back to summary |
|---|---|
| public BooleanBinding anySelectedEntriesMatchedProperty() | |
| canAddEntriesIn | back to summary |
|---|---|
| public boolean canAddEntriesIn() | |
| canAddGroupsIn | back to summary |
|---|---|
| public boolean canAddGroupsIn() | |
| canBeDragged | back to summary |
|---|---|
| public boolean canBeDragged() | |
| canRemove | back to summary |
|---|---|
| public boolean canRemove() | |
| clearMatchedEntries | back to summary |
|---|---|
| private void clearMatchedEntries() | |
| completeMatchedEntriesUpdate | back to summary |
|---|---|
| private void completeMatchedEntriesUpdate() | |
| createDefaultIcon | back to summary |
|---|---|
| private JabRefIcon createDefaultIcon() | |
| dispose | back to summary |
|---|---|
| pack-priv void dispose() | |
| draggedOn | back to summary |
|---|---|
| public void draggedOn(GroupNodeViewModel target, DroppingMouseLocation mouseLocation) | |
| ensureMatchedEntriesLoaded | back to summary |
|---|---|
| pack-priv void ensureMatchedEntriesLoaded() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| expandedProperty | back to summary |
|---|---|
| public SimpleBooleanProperty expandedProperty() | |
| findGroupNodeViewModel | back to summary |
|---|---|
| public Optional | |
| findGroupNodeViewModelByEquality | back to summary |
|---|---|
| private Optional | |
| findGroupNodeViewModelByIdentity | back to summary |
|---|---|
| private Optional | |
| getAllEntriesGroup | back to summary |
|---|---|
| pack-priv static GroupNodeViewModel getAllEntriesGroup(BibDatabaseContext newDatabase, StateManager stateManager, TaskExecutor taskExecutor, CustomLocalDragboard localDragBoard, GuiPreferences preferences) | |
| getChildByPath | back to summary |
|---|---|
| public Optional | |
| getChildren | back to summary |
|---|---|
| public ObservableList | |
| getColor | back to summary |
|---|---|
| public Color getColor() | |
| getDescription | back to summary |
|---|---|
| public String getDescription() | |
| getDisplayName | back to summary |
|---|---|
| public String getDisplayName() | |
| getGroupNode | back to summary |
|---|---|
| public GroupTreeNode getGroupNode() | |
| getHits | back to summary |
|---|---|
| public IntegerBinding getHits() | |
| getIcon | back to summary |
|---|---|
| public JabRefIcon getIcon() | |
| getParent | back to summary |
|---|---|
| public Optional | |
| getPath | back to summary |
|---|---|
| public String getPath() | |
| getPositionInParent | back to summary |
|---|---|
| private int getPositionInParent() | |
| hasAllSuggestedGroups | back to summary |
|---|---|
| public boolean hasAllSuggestedGroups() | |
| hasChildrenProperty | back to summary |
|---|---|
| public SimpleBooleanProperty hasChildrenProperty() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| hasSimilarSearchGroup | back to summary |
|---|---|
| public boolean hasSimilarSearchGroup(SearchGroup searchGroup) | |
| hasSubgroups | back to summary |
|---|---|
| public boolean hasSubgroups() | |
| isAllEntriesGroup | back to summary |
|---|---|
| public boolean isAllEntriesGroup() | |
| isEditable | back to summary |
|---|---|
| public boolean isEditable() | |
| isMatchedBy | back to summary |
|---|---|
| pack-priv boolean isMatchedBy(String searchString) | |
| isMatchEffective | back to summary |
|---|---|
| private boolean isMatchEffective(GroupNodeViewModel vm, BibEntry entry) Returns whether the given entry should be considered part of this group for the purpose of the groups sidebar (hit counter, highlighting, etc.). We cannot simply use groupNode.matches(entry) here. That only checks the rule of this single group and ignores the configured hierarchy type and any child groups created in the view model (for example automatic subgroups) This method applies the hierarchy type: INDEPENDENT: match this group only, INCLUDING: match this group or any child group, REFINING: match this group and all ancestor groups. | |
| isRoot | back to summary |
|---|---|
| public boolean isRoot() | |
| moveTo | back to summary |
|---|---|
| public void moveTo(GroupNodeViewModel target) Moves this group, without recording: a drag can move several groups at once, so the step is
opened by whoever handles the gesture — see | |
| moveTo | back to summary |
|---|---|
| public void moveTo(GroupTreeNode target, int targetIndex) | |
| onDatabaseChanged | back to summary |
|---|---|
| private void onDatabaseChanged(ListChangeListener. Gets invoked if an entry in the current database changes. Implementation Note Search groups are updated in | |
| parseIcon | back to summary |
|---|---|
| private Optional | |
| refreshGroup | back to summary |
|---|---|
| private void refreshGroup() | |
| removeMatchedEntry | back to summary |
|---|---|
| private void removeMatchedEntry(String entryId) | |
| replaceMatchedEntries | back to summary |
|---|---|
| private void replaceMatchedEntries(List<BibEntry> entries) | |
| setDisplayName | back to summary |
|---|---|
| public void setDisplayName(String newName) | |
| toggleExpansion | back to summary |
|---|---|
| pack-priv void toggleExpansion() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| toViewModel | back to summary |
|---|---|
| private GroupNodeViewModel toViewModel(GroupTreeNode child) | |
| updateAllEntriesCount | back to summary |
|---|---|
| private void updateAllEntriesCount() | |
| updateMatchedEntries | back to summary |
|---|---|
| pack-priv void updateMatchedEntries() | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void |
| SearchIndexListener | back to summary |
|---|---|
| pack-priv SearchIndexListener() | |
| listen | back to summary |
|---|---|
public void listen(IndexStartedEvent event)
| |
| listen | back to summary |
|---|---|
public void listen(IndexAddedOrUpdatedEvent event)
| |
| listen | back to summary |
|---|---|
public void listen(IndexRemovedEvent event)
| |
| listen | back to summary |
|---|---|
public void listen(IndexClosedEvent event)
| |