RFR: 8290844: Add Skin.install() method [v2]
    Jeanette Winzenburg 
    fastegal at openjdk.org
       
    Thu Aug 11 12:33:38 UTC 2022
    
    
  
On Wed, 10 Aug 2022 22:14:53 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
>> - added Skin.install()
>> - javadoc changes for Skinnable.setSkin(Skin)
>> 
>> no code changes for Skinnable.setSkin(Skin) yet.
>
> Andy Goryachev has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8290844: javadoc
modules/javafx.controls/src/main/java/javafx/scene/control/Skin.java line 78:
> 76:     /**
> 77:      * Called by {@link Control#setSkin(Skin)} on a pristine control, or after the
> 78:      * previous skin has been uninstalled via its {@link #dispose()} method.
Hmm .. as formulated that sounds to me like an implementation detail of Control (which shouldn't appear here). We might think of something unrelated to specific users.
Also: the congenial partner of a Skin is a Skinnable - all narrowing to a special implementator of Skinnable here should be avoided. We have an open issue for the invers, that is Skinnable overspecifying itself as Control [JDK-8260364](https://bugs.openjdk.org/browse/JDK-8260364)
-------------
PR: https://git.openjdk.org/jfx/pull/845
    
    
More information about the openjfx-dev
mailing list