Skip to content

0.18.25

Latest
Compare
Choose a tag to compare
@bjorndarri bjorndarri released this 13 Jan 13:41
· 36 commits to main since this release

Changes

is.codion.common.db

  • ConnectionFactory.createConnection() and ConnectionProvider.connection() overload without User parameter added.

is.codion.common.model

  • FilterModel.Refresher.success() and failure() renamed result() and exception() respectively, related renaming.
  • FilterModel.Items no longer extends Observable.
  • FilterModel.Items.add() and remove() now void.
  • ConditionModel.Builder.operands() added along with InitialOperands.

is.codion.framework.domain

  • DefaultEntityValidator.valid() now final.
  • AttributeDefinition.Builder.mnemonicResourceKey() added.
  • ForeignKeyDefiner.softForeignKey() replaced with ForeignKeyDefinition.Builder.soft().
  • EntityDefinition.cacheToString() added, redundant comment cleanup.
  • Entity.Key.entityDefinition() renamed definition().
  • Entity.Key.primaryKey() renamed primary().
  • ObservableValues.empty() renamed isEmpty(), notEmpty() removed.
  • Observable.isNotNull() removed.

is.codion.framework.model

  • EntitySearchModel.Builder.attributes() added.
  • EntitySearchModel.Builder.orderBy() added.
  • EntitySearchModel.entityType() replaced with entityDefinition().
  • EntitySearchModel.stringFunction() now final and no longer Value based.
  • EntitySearchModel.stringFunction() renamed stringFactory().
  • EntitySearchModel.separator() now final and no longer Value based.
  • EntitySearchModel.description() removed.
  • EntitySearchModel.reset(), searchStringModified(), stringFactory() and separator() removed.
  • EntitySearchModel.Selection.string() and strings() added.
  • EntitySearchModel.Selection.string() and strings() now sorted.
  • EntitySearchModel.Search added, related refactoring and renaming.
  • EntitySearchModel.Search.text() replaced with strings(), Builder.separator() and stringFactory() removed.
  • AttributeConditionModelFactory bug fixed, now initializes the equal operand of non-null boolean condition models.

is.codion.swing.common.model

  • FilterComboBoxModel.ItemComboBoxModelBuilder.selected() added.

is.codion.swing.common.ui

  • FilterTableCellRenderer.UISettings.selectionForeground() added.
  • DefaultFilterTableCellRenderer uses UISettings.selectionForeground().
  • LookAndFeelEnabler.platform() added.
  • PlatformLookAndFeelProvider added, related refactoring.
  • LookAndFeelSelectionDialogBuilder.includePlatformLookAndFeels() added along with INCLUDE_PLATFORM_LOOK_AND_FEELS, for excluding platform look and feels from the selection if auxiliary ones are available.
  • Components.textField() no longer forwards call to NumberField in case of numerical values.
  • ColumnConditionPanel.FieldFactory.createLowerField() and createUpperField() now with default implementations.
  • TransferFocusOnEnter.forwardAction() and backwardAction() removed, transfer focus actions now singletons.
  • ColumnConditionPanel.FieldFactory refactored and renamed ComponentFactory, related renaming and refactoring.
  • ConditionPanel.condition() renamed model(), related renaming.

is.codion.swing.framework.model

  • EntityComboBoxModel.entityType() replaced with entityDefinition().

is.codion.swing.framework.ui

  • EntityComponents.textField() now forwards call to NumberField in case of numerical attributes.
  • EntityComponents.textField() now creates an non-focusable, read only text field for item based attributes.
  • EntitySearchField.selectorFactory now final, selectorFactory() removed.
  • EntitySearchField.searchIndicator now final, searchIndicator() removed.
  • EntityComponents.supports() removed, unused.
  • EntitySearchField now displays the selected entities in a multiline tooltip instead of the model description.
  • EntitySearchField refactored.
  • EntitySearchField.Build.separator() and stringFactory() added, related refactoring.
  • EntitySearchField.Builder.selectAllOnFocusGained() removed, related refactoring.
  • EntitySearchField, EntitySearchFieldPanel.MultiSelectionBuilder and SingleSelectionBuilder added along with Factory, related refactoring.
  • EntityComponentFactory renamed EditComponentFactory.
  • EntityComponents.MAXIMUM_TEXT_FIELD_LENGTH configuration value added.
  • EntitySearchField.Builder.editable() added.
  • EntityComponents.MAXIMUM_TEXT_FIELD_LENGTH moved to DefaultEditComponentFactory.
  • EntityTablePanel.orderByFromSortModel() empty order by clause bug fixed, now excludes non-column based attributes correctly.

is.codion.tools.generator.ui

  • DomainGeneratorPanel bug fixed, did not display exceptions happening during async table model refresh.