Version History

Current Version

Download

Download

History

source# Changes

## Versions

### 1.1.2
* Update to "sapphire-data" % "1.1.0"
* fixed [https://github.com/sfxcode/sapphire-javafx/issues/23](https://github.com/sfxcode/sapphire-javafx/issues/23)

### 1.1.1
* fixed [https://github.com/sfxcode/sapphire-javafx/issues/21](https://github.com/sfxcode/sapphire-javafx/issues/21)

### 1.1.0
* BREAKING CHANGE: Namespace **SFX** is added as prefix to all Classes and Styles (see Migration.md)
* SFXConfigValues is deprecated use: com.sfxcode.sapphire.data.Configuration
* Fixed DataListViews CSS Bug

### 1.0.6
* WindowsController Cleanup
* WindowsController: createScene,  replaceSceneContentWithNode can now be overwritten
### 1.0.5
Update to "sapphire-data" % "1.0.4"

### 1.0.4
* FXValueFactory Date / DateTime format added

### 1.0.3
* EventHelper added

### 1.0.2
* MasterController takes doubleClick action only for TableRow (not TableHeader)
* FXMLoading replaces package path with custom path if configured (see tutorial config)

### 1.0.1
* scala 2.13.5
* Dependency Updates

### 1.0.0
* combines sapphire-core and sapphire-extension

Migration

source# Migrations

## 1.0.x to sapphire-javafx 1.1*
* Refactoring for a valid prexix:
* Namespace **SFX** is added as prefix to all Classes (e.g. DataListView -> SFXDataListView)
* Classes with existing Prefix **FX** renamed to **SFX** Prefix (e.g. FXApplication -> SFXApplication)
* Styleclasses and styles also get the prefix **sfx-**

### Migration Steps:
* Global Replace 'BaseApplication' with 'SFXApplication'
* Global Replace ' ViewController' with 'SFXViewController'
* Global Replace '.ViewController' with '.SFXViewController'
* Global Replace 'SFXBase' with 'SFX'
* Add to all other unknown classes SFX Prefix (or replace FX Prefix with SFX if exists)
* (FXML) Global Replace FXTableValueFactory with SFXTableValueFactory
* Replace ConfigValues with Configuration from sapphire-data

## 2.0.x to sapphire-javafx 1.*
* replace sapphire.core with sapphire.javafx
* data handling is extracted to a new project: sapphire-data
* CDI, ScalaFX usages please follow the exampes in the sapphire-java demo applications

# Migration for old sapphire-core project

## 1.6.x to 2.0.0
* CDI dependencies are removed
* ApplicationScoped Beans are now Singletons
* Best way to access applicationController is now: ApplicationEnvironment.applicationController[ApplicationController]
* Use CDI if needed with MacWire, Guice, or other CDI Framework (CDI example in issues demo)
* Application must extend now BaseApplication and needs to implement applicationController as val
* FxmlLoader must be renamed to FxmlLocation

```scala
object Application extends BaseApplication {

  // some custom code ...
  override val applicationController: BaseApplicationController = new ApplicationController
}
```

* ApplicationController must extend now BaseApplicationController

```scala
class ApplicationController extends BaseApplicationController with LazyLogging {

  // some custom code ...

}
```

## 1.6.5 to 1.6.6
* FXMLLoading url and resources properties now Options

## 1.6.1 to 1.6.2
* CollectionExtensions and ConfigValues moved to package root
* Remove SceneExtensions

## 1.x to 1.6
* scalafx dependency removed (add dependency on project if needed)
* Includes Removed => use BeanConversions trait
* Prefer WindowController instead of deprecated AppController