public enum RichTextComponent.SizeMode

  1. Object
  2. Enum<RichTextComponent.SizeMode>
  3. RichTextComponent.SizeMode

ImplementsComparable<RichTextComponent.SizeMode>

Controls how the component sizes itself relative to its content.

Enum constants

SHRINKReport a preferred height equal to the wrapped content height at the assigned width.
SCROLLKeep the parent-assigned size and scroll content vertically when it overflows.

Methods

public static RichTextComponent.SizeMode[] values()
public static RichTextComponent.SizeMode valueOf(String name)

Inherited methods

Enum constant details

SHRINK

SHRINK
Report a preferred height equal to the wrapped content height at the assigned width.

SCROLL

SCROLL
Keep the parent-assigned size and scroll content vertically when it overflows.

Method details

values

public static RichTextComponent.SizeMode[] values()

valueOf

public static RichTextComponent.SizeMode valueOf(String name)