-
Enhancement
-
Resolution: Fixed
-
P3
-
8
>>>
>>> > Shouldn't effectiveNodeOrientation be a property?
>>>
>>> That's a possibility. It would be a properly that changed when inherited orientation up the ancestor tree changed. Do we have any other properties like this in FX?
>>
>> localToSceneTransform But I admit there is some extra logic needed for such properties that we don't want to add blindly for performance reasons. So it may be better to just rename the getter to simply effectiveNodeOrientation().
>>
>
> It might be that this needs to be a property after all. The issue is that a child may have state that is sets based on effective orientation (say alignment of a text node) and this state needs to be kept up to date with effective orientation. However, providing the method is defined correctly, there is nothing stopping it from becoming a property in future. I understand the performance issue. I will investigate further.
For a property we'd have effectiveNodeOrientationProperty() and getEffectiveNodeOrientation(). For a non-property we'd have something like effectiveNodeOrientation(). So I think we need to decide in the beginning..
- blocks
-
JDK-8100124 Create API for determining the layout direction of a component
- Closed
-
JDK-8100148 Add RTL support to Text node
- Closed
-
JDK-8125160 Text orientation not always inherit
- Resolved
-
JDK-8090340 Add CSS support for attribute selector
- Open
-
JDK-8102057 Add CSS support for the directionality pseudo-class :dir()
- Resolved
- relates to
-
JDK-8100141 Add RTL support to TextField / TextArea / PasswordField
- Closed
-
JDK-8117367 change in node orientation does not traverse the entire tree
- Resolved
-
JDK-8099289 Support component orientation in common UI controls
- Closed
-
JDK-8087529 [MIRROR] setting orientation in scene does not propagate to trim
- Open
-
JDK-8124933 Use effectiveNodeOrientationProperty in Text
- Resolved