Decorations always appear on either horizontal side of the field, never above or below it. Decorations can be positioned at the top or bottom of either side. Future implementations may provide additional positioning options for decorations.
By default, DecoratedField will consult the {@link FieldDecorationRegistry}to determine how much space should be reserved for each decoration. This allows fields with decorations from different sources to align properly on the same dialog, since the registry tracks the size of all decorations registered. Therefore, it is recommended, but not required, that clients of DecoratedField register the decorations used. In cases where alignment between different fields is not a concern, clients can use setUseMaximumDecorationWidth(false)
and need not register their decorations.
This class is not intended to be subclassed. @since 3.2 @deprecated As of 3.3, clients should use {@link ControlDecoration} instead.
|
|