Class DefaultSelectItem
java.lang.Object
org.springframework.shell.component.flow.DefaultSelectItem
- All Implemented Interfaces:
SelectItem
Default impl for
SelectItem
.-
Constructor Summary
ConstructorDescriptionDefaultSelectItem
(String name, String item, boolean enabled, boolean selected) -
Method Summary
-
Constructor Details
-
DefaultSelectItem
-
-
Method Details
-
name
Description copied from interface:SelectItem
Gets a name.- Specified by:
name
in interfaceSelectItem
- Returns:
- a name
-
item
Description copied from interface:SelectItem
Gets an item- Specified by:
item
in interfaceSelectItem
- Returns:
- an item
-
enabled
public boolean enabled()Description copied from interface:SelectItem
Returns if item is enabled.- Specified by:
enabled
in interfaceSelectItem
- Returns:
- if item is enabled
-
selected
public boolean selected()Description copied from interface:SelectItem
Return if the item is selected.- Specified by:
selected
in interfaceSelectItem
- Returns:
- if item is selected
-