radiance-ember
for build instructions of the latest stable release.
In your Java app, this is how you would mark a BreadcrumbBarSelector
to use the HEADER
decoration area type:
BreadcrumbFileSelector bar = new BreadcrumbFileSelector();
SubstanceCortex.ComponentOrParentChainScope.setDecorationType(bar,
SubstanceSlices.DecorationAreaType.HEADER);
And here is how the same code would look like in Kotlin using Ember-provided extension on the JComponent
class:
val bar = BreadcrumbFileSelector()
bar.setDecorationType(SubstanceSlices.DecorationAreaType.HEADER)
Ember scopes mirror scopes defined in SubstanceCortex
:
EmberWindowScope
- configuring and querying state at the level of the applicationWindow
s.EmberRootPaneScope
- configuring and querying state at the level of the applicationJRootPane
s.EmberComponentScope
- configuring and querying state at the level of the applicationComponent
s.EmberComponentOrParentScope
- configuring and querying state at the level of individual applicationComponent
s or all immediate child components of a container.EmberComponentOrParentChainScope
- configuring and querying state at the level of individual applicationComponent
s or all nested child components of a container.
Note that these are Kotlin annotations marking the extension functions on the relevant Swing classes. There is no global scope annotation as none of the SubstanceCortex.GlobalScope
APIs are exposed via Ember (yet).