Skip to content

0.18.14

Compare
Choose a tag to compare
@bjorndarri bjorndarri released this 23 Sep 12:57
· 307 commits to main since this release

Changes

is.codion.common.core

  • PropertyStore, property access now based on predicates instead of key prefixes.
  • ValueObserver and ValueSupplier no longer extend Supplier.
  • EventObserver renamed Observer and moved to observable package.
  • observable package renamed observer.
  • DefaultObserver.removeWeakListener() and removeWeakConsumer() bug fixed, could possibly return true even if the listener was not removed, due to a null weak reference being removed.
  • AbstractItem collator now ThreadLocal based.
  • Mutable split from Observable.
  • MethodLogger.Entry.hasChildEntries() removed.
  • Item no longer Serializable, only the implementations.
  • Mutable.clear() added.

is.codion.common.model

  • FilterModel.items() now Observable based, related refactoring.
  • FilterModel.Items added, related refactoring.
  • FilterModel.containsItem(), visible() and filtered() moved to Items, containsItem() renamed contains().
  • FilterModel.filterItems() moved to Items, renamed filter().
  • FilterModel.Refresher.success() now includes the refresh result.
  • FilterModel.includeCondition() renamed visiblePredicate().
  • TableSelectionModel moved to FilterModel and split into SingleSelectionModel and SelectionModel.
  • SingleSelectionModel.selectionNotEmpty() removed.
  • FilterModel.Items.VisibleItems and FilteredItems added, Items.visible(), filtered(), indexOf() and itemAt() moved.
  • FilterModel.visiblePredicate() moved to Items.
  • FilterModel.VisibleItems and FilteredItems.size() added.
  • FilterModel.SelectionModel.isSelected() removed, SelectedItems and SelectedIndexes.contains() added.
  • FilterModel.SingleSelectionModel and SelectionModel moved to common.model.selection package.
  • FilterModel.selectionModel() renamed selection().
  • SelectionModel, most methods renamed.
  • SelectionModel.clear() moved to SingleSelectionModel.
  • FilterModel.sortItems() renamed sort().
  • FilterModel.Items.count() added, Items.Visible and Filtered.size() renamed count().
  • TableConditionModel and ColumnConditionModel moved to condition package.
  • TableSummaryModel and ColumnSummaryModel moved to package summary.
  • TableConditionModel.conditionModel() renamed condition().
  • ColumnConditionModel.columnClass() renamed valueClass().
  • ColumnConditionModel renamed ConditionModel.
  • TableConditionModel and ConditionModel.conditionChanged() renamed changed().
  • TableConditionModel.conditions() and enabled(identifier) removed, condition() renamed get(), optional() added.

is.codion.swing.common.model

  • DefaultFilterComboBoxModel refactored.
  • FilterTableModel.dataChanged() removed.
  • FilterTableModel, a few methods moved to FilterModel.
  • FilterTableModel.indexOf() and itemAt() moved to FilterModel.Items.
  • FilterTableModel, methods for adding and removing items moved to FilterModel.
  • DefaultFilterComboBoxModel.Selected bug fixed, refactoring mistake.
  • FilterModel.Items.VisibleItems and FilteredItems renamed Visible and Filtered respectively.
  • FilterTableModel.filterModel() renamed conditionModel().
  • FilterTableModel.conditionModel() renamed conditions().

is.codion.swing.common.ui

  • FilterTable, now propagates the associated MouseEvent as the source of the ActionEvent when doubleClickAction is performed.
  • MenuBuilder no longer extends MenuItemBuilder.
  • ComponentDialogBuilder.closeEvent() renamed closeObserver().
  • ColumnConditionPanel.focusGainedEvent() renamed focusGainedObserver().
  • DefaultMenuBuilder bug fixed, now trims and prevents multiple separators.
  • Control.commandControl(), actionControl() and toggleControl() renamed command(), action() and toggle() respectively.
  • FilterTable.filterPanel() renamed conditionPanel().
  • ColumnConditionPanel.conditionModel() renamed condition().

is.codion.framework.model

  • EntityEditModel.valueEdited() renamed edited().
  • EntityEditModel.entity() now Mutable based.
  • EntityTableConditionModel.enabled() now StateObserver based.
  • EntityQueryModel split from EntityTableModel.
  • AbstractEntityEditModel.DefaultUpdate.UpdateResult.handle() bug fixed, no longer triggers EntityEditPanel.beforeEntity().
  • EntityTableConditionModel renamed EntityConditionModel.
  • EntityConditionModelFactory renamed EntityColumnConditionModelFactory.
  • EntityQueryModel.query() added for overriding the default query mechanism.
  • EntityTableModel.selectionChanged() removed.
  • EntitySearchModel.Selection added.
  • AbstractEntityTableModel.find() bug fixed, now searches through all items, not just visible.
  • AbstractEntityTableModel.indexOf() now loop based.
  • EntityTableModel.find() and indexOf() removed.
  • AbstractEntityTableModel.tableModel() renamed filterModel().
  • EntityEditEvents.addListener() methods replaced with observer() methods.
  • EntityConditionModel.attributeCondition() renamed attribute() added.
  • EntityQueryModel.conditionModel() renamed conditions().
  • EntityColumnConditionModelFactory renamed back to EntityConditionModelFactory.

is.codion.swing.framework.model

  • EntityComboBoxModel.setForeignKeyFilterKeys() renamed filterByForeignKey(), getForeignKeyFilterKeys() renamed foreignKeyFilterKeys().
  • AbstractEntityTableModel extracted from SwingEntityTableModel.
  • SwingEntityTableModel.tableModel() factory method replaced with constructor overloads, related refactoring.
  • SwingEntityConditionModelFactory renamed SwingEntityColumnConditionModelFactory.
  • SwingEntityColumnConditionModelFactory renamed back to SwingEntityConditionModelFactory

is.codion.swing.framework.ui

  • EntityTablePanel bug fixed, Config.SHOW_REFRESH_PROGRESS_BAR now used for default config value.
  • EntityDialogs bug fixed, now respects the location if specified.
  • EntityTablePanel, edit panel dialog location now follows mouse when displayed on double click.
  • EntityApplicationPanel.exitEvent() renamed exitObserver().
  • EntityDependenciesPanel no longer public, needs a better api.

is.codion.framework.domain

  • DefaultKey.isNull(column) now throws exception in case the column is not part of the key.

is.codion.framework.server

  • AbstractRemoteEntityConnection.closedEvent() renamed closedObserver().

is.codion.tools.monitor.model

  • ConnectionPoolMonitor.statisticsEvent() renamed statisticsObserver().
  • ConnectionPoolMonitor.statisticsObserver() renamed statisticsUpdated().

is.codion.tools.loadtest.ui

  • ItemRandomizerPanel.selectedItems() now Observable based.