globaltcad / swing-tree

A small DSL library for building Swing UIs
MIT License
6 stars 0 forks source link

Rename withProperty to withAttr and add Enum Support for Attribute Names #146

Open Gleethos opened 1 month ago

Gleethos commented 1 month ago

The withProperty method directly maps to the JComponent::putClientProperty method. Although it is nice that the current name hints at this connection, we should consider choosing a name which is more in alignment with the way this concept is understood in more mainstream GUI frameworks and more specifically the dominant way of declaring additional key value based data on GUI elements: HTML!