Class AbstractSelectOption
java.lang.Object
fr.tiogars.architecture.select.models.AbstractSelectOption
Abstract class representing a select option with common properties.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.AbstractSelectOption(Long id, String label, boolean selected) Constructor to initialize the select option. -
Method Summary
-
Constructor Details
-
AbstractSelectOption
public AbstractSelectOption()Default constructor. -
AbstractSelectOption
Constructor to initialize the select option.- Parameters:
id- the unique identifier of the select optionlabel- the display label of the select optionselected- indicates whether the select option is selected
-
-
Method Details
-
getId
Get the unique identifier of the select option.- Returns:
- the id
-
getCode
Get the code associated with the select option.- Returns:
- the code
-
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
-