Skip to content

0.18.28

Choose a tag to compare

@bjorndarri bjorndarri released this 03 Feb 11:37
· 2507 commits to main since this release

Changes

is.codion.common.model

  • FilterModel.VisibleItems.added() added.
  • FilterModel.Items.replace() added.

is.codion.swing.common.model

  • DefaultFilterTableItems.DefaultVisibleItems now always sorts when items are added, even when added at a specific index.
  • FilterTableModel.RowEditor added.

is.codion.swing.common.ui

  • FilterTable.scrollToAddedItem() added.
  • FilterTable.scrollToCoordinate() renamed scrollToRowColumn().

is.codion.framework.domain

  • ColumnDefinition.lazy() and selectable() replaced with selected().
  • MultiValueColumnCondition bug fixed, now rejects empty values for IN and NOT_IN.
  • Entity.Key.get() renamed value().
  • Entity.clearPrimaryKey() moved to Builder.
  • Entities.keyBuilder() moved to Entity.Builder.key().

is.codion.framework.model

  • EntityModel.DetailModels.get() now returns a Map, related refactoring.
  • Remove type inference return values, convenient but unsafe.
  • ModelLink, model type parameters added, removed from static builder factory methods.
  • EntityEditModel.Insert, Update and Delete renamed InsertEntities, UpdateEntities and DeleteEntities.
  • EntityEditModel.afterUpdate() map keys are now an immutable copy of the entity before update, instead of only the original primary key.
  • EntityTableModel.OnInsert.ADD_TOP and ADD_TOP_SORTED replaced with PREPEND and ADD_BOTTOM and ADD_BOTTOM_SORTED with APPEND.
  • EntityEditModel.beforeUpdate() observer data now a Collection instead of a Map.

is.codion.swing.framework.ui

  • Remove type inference return values, convenient but unsafe.
  • EntityPanelBuilder.createPanel(), createEditPanel() and createTablePanel() error message on incorrect model type improved.
  • EntitySearchField.Builder.selectorFactory() function input now EntitySearchField instead of EntitySearchModel.
  • EntitySearchField.DefaultListSelector now uses the search field stringFactory.
  • EntitySearchField.Selector.select(), dialogOwner parameter removed, search field used.