• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Page Information

    Loading...
  1. Dashboard
  2. Undefined Space
  3. OpenJFX
  4. CSS API to support custom UI Controls

Page History

Versions Compared

Old Version 22

changes.mady.by.user J. Duke

Saved on Dec 13, 2012

compared with

New Version 23

changes.mady.by.user J. Duke

Saved on Dec 13, 2012

  • Previous Change: Difference between versions 21 and 22
  • Next Change: Difference between versions 23 and 24
  • View Page History

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Code Block
public abstract boolean isSettable(Watermark node) {
    return corner == null || corner.isBound() == false;
  }
  public abstract WritableValue<String> getWritableValue(Watermark node) {
    return cornerProperty();
  }

Anchor
property_expansion
property_expansion
Note that isSettable should be implemented in a way that does not cause the expansion of the property. The isSettable check is performed before the CSS value is looked up. If the property is not settable, then no further CSS processing is done for that property (on any given pulse). The getWritableValue method is invoked only if there is a CSS value to apply. Thus, if the property is not settable or there is no CSS value, the property is not expanded[#1 Wiki Markup<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="010ac4fc-561b-4f74-b039-e2bcdac31e5d"><ac:parameter ac:name="">property_expansion</ac:parameter></ac:structured-macro>Note that {{isSettable}} should be implemented in a way that does not cause the expansion of the property. The {{isSettable}} check is performed before the CSS value is looked up. If the property is not settable, then no further CSS processing is done for that property (on any given pulse). The {{getWritableValue}} method is invoked only if there is a CSS value to apply. Thus, if the property is not settable or there is no CSS value, the property is not expanded\[[#1]\].

The CSS engine does not call setValue directly on the WritableValue. Rather, the code calls a set method on the CssMetaData which, in turn, calls applyStyle on the StyleableProperty. This level of indirection allows a CssMetaData to intercept the value before the calculated style value is applied (in other words, before setValue is called on the corresponding property). This is used primarily for Number based properties where the parameterized type is Number but the actual type might be Integer and so the value's intValue() method needs to be invoked.

...

Overview
Content Tools
ThemeBuilder

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.23
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 339, "requestCorrelationId": "b97a9801dabe6fe3"}