Skip to content

0.18.32

Choose a tag to compare

@bjorndarri bjorndarri released this 31 Mar 14:03
· 2376 commits to main since this release

Changes

is.codion.common.model

  • UserPreferences.getUserPreference(key, defaultValue) now requires a non-null default value, can no longer return null.
  • MultiSelection.Indexes and Items override get() annotated with @nonnull.
  • DefaultConditionModel.isEqualWildcard() bug fixed, bypassed the automic wildcards.

is.codion.swing.common.ui

  • FilterTable bug fixed, doubleClickAction no longer triggered if disabled.
  • ComponentBuilder.toolTipText(Observable) added for a dynamic tool tip.
  • ComponentBuilder.validIndicator() added along with ValidIndicatorFactory.
  • ComponentBuilder.modifiedIndicator() added along with ModifiedIndicatorFactory.
  • DefaultInputDialogBuilder.show(closeDialog) bug fixed, now uses onOk() instead of okAction(), which bypassed the valid state.
  • ComponentBuilder.validIndicator(validator) argument now Predicate instead of Consumer.
  • DefaultFilterTableColumnModel.hideColumn() bug fixed, event triggered too early.
  • Icons.ICON_COLOR and iconColor() removed, enableIconColorConsumer() and disableIconColorConsumer() removed.
  • Utilities.propertyChangeEvent() renamed propertyObserver().
  • SearchHighlighter.updateHighlights() bug fixed, now only tries to update highlight if a matching position is found, failed on look and feel change with text selected.
  • SearchHighlighter, search no longer case-sensitive by default.
  • TransferFocusOnEnter now an enum.
  • ComponentBuilder.transferFocusOnEnter(TransferFocusOnEnter) added, related refactoring.

is.codion.framework.domain

  • ValidationException now extends IllegalArgumentException.
  • EntityType.resourceBundleName() now returns Optional.
  • AttributeDefinition.minimumValue() and maximumValue() now return Optional.
  • AttributeDefinition.format(), dateTimePattern() and dateTimeFormatter() now return Optional.
  • AttributeDefinition.description() now returns Optional.
  • Entity.isNotNull() removed.
  • Entity.Key.isNotNull() removed.
  • EntityDefinition.entity() factory methods no longer accept null for values and originalValues, empty maps expected instead.
  • JSpecify annotations added.

is.codion.framework.model

  • AbstractEntityEditModel.refresh() bug fixed, now handles the case when a primary key attribute has been modified.
  • AbstractEntityTableModel.refresh(keys) bug fixed, now includes the same attributes as the query model, when selecting.
  • EntityEditModel.EntityEditor.EditorValue.message() added.
  • EntityQueryModel.SelectAttributes added, returned by attributes().
  • EntityQueryModel.createSelect() added, DefaultEntityQueryModel refactored.
  • EntityQueryModel.query() renamed dataSource().
  • EntityQueryModel no longer implements Supplier, get() renamed query().
  • EntityQueryModel.createSelect() renamed select().
  • EntityEditModel.EntityEditor.isNotNull() removed.

is.codion.swing.framework.ui

  • EntityDialogs.selectionDialog() parameter now EntityTablePanel.
  • EntitySelectionDialogBuilder.dialogSize() and configureTablePanel() removed, includeSearchButton() added.
  • EntityDialogs.EditAttributeDialogBuilder.defaultValue() and applier() added.
  • EntityPanel.Builder no longer implements equals() and hashCode() based on entityType, restricts entity panel caching to a single panel per entity type.
  • EntityEditComponentPanel, toolTip validation message split from ComponentValidator.
  • EntitySearchField.Builder.selectionToolTip() added, enabled by default for multi-selection instances.
  • EntityTablePanel bug fixed, both constructors now call initializeConditionsAndFilters().
  • EntityTablePanel.updateUI() bug fixed, now includes editPanel.
  • EntityTablePanel, redundant disabling of filters on column hidden removed, handled by FilterTable.
  • EntityTablePanel.Config.QUERY_HIDDEN_COLUMNS replaced with EXCLUDE_HIDDEN_COLUMNS, EntityTablePanel.queryHiddenColumns() removed.
  • EntitySearchField, special handling for transferring focus on enter removed.
  • EntityDialogs.selectionDialog() bug fixed, now initializes the EntityTablePanel.

is.codion.framework.servlet

  • EntityService.USE_VIRTUAL_THREADS configuration value added.
  • EntityService now configures handlers before starting.