Interface TextItem

All Superinterfaces:
DropdownButtonItem
All Known Implementing Classes:
AbstractDropdownButton.TextItemImpl

public interface TextItem extends DropdownButtonItem
Represents a text-based item that can be included in a dropdown button component. The TextItem interface allows setting and retrieving the textual content associated with an item in the dropdown menu.
  • Method Details

    • setText

      void setText(String text)
      Sets the text displayed on the component.
      Parameters:
      text - the text to be displayed
    • getText

      String getText()
      Returns the text associated with this component.
      Returns:
      the current text of the component