Class AbstractSelectOption

java.lang.Object
fr.tiogars.architecture.select.models.AbstractSelectOption

public class AbstractSelectOption extends Object
Abstract class representing a select option with common properties.
  • Constructor Details

    • AbstractSelectOption

      public AbstractSelectOption()
      Default constructor.
    • AbstractSelectOption

      public AbstractSelectOption(Long id, String label, boolean selected)
      Constructor to initialize the select option.
      Parameters:
      id - the unique identifier of the select option
      label - the display label of the select option
      selected - indicates whether the select option is selected
  • Method Details

    • getId

      public Long getId()
      Get the unique identifier of the select option.
      Returns:
      the id
    • getCode

      public String getCode()
      Get the code associated with the select option.
      Returns:
      the code
    • getLabel

      public String getLabel()
      Get the display label of the select option.
      Returns:
      the label
    • isSelected

      public boolean isSelected()
      Check if the select option is selected.
      Returns:
      true if selected, false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object