stylePropertyOf
Creates a style property with the restore and rewrite options of SwingModifier.property. A style property and a modifier property with the same descriptor name share the original value to restore.
Return
the style property for descriptor.
Parameters
the descriptor of the component property to set.
the restoration policy when the style stops setting the property.
the rewrite option of SwingModifier.property; null by default.
the other properties affected by this write.
Creates a style property whose value is applied by a custom element. A declaration replaces an earlier one with the same key. The element's equality, target constraints and restoration behavior apply as in a modifier. A style writes its descriptor-backed properties before its custom elements. Each group follows declaration order.
element must return a SwingModifier.NodeElement or a ParentLayoutElement that folds no parent data. Returning any other element causes the style to fail when it runs. Additive elements are rejected; declare listeners in the component's modifier. A layout element takes precedence over a modifier element with the same key. An inheritable layout element is omitted when the parent's protocol refuses it.
Return
the style property for element.
Parameters
builds the element that applies a value of this property.