Class DefaultSelectItem

java.lang.Object
org.springframework.shell.component.flow.DefaultSelectItem
All Implemented Interfaces:
SelectItem

public class DefaultSelectItem extends Object implements SelectItem
Default impl for SelectItem.
  • Constructor Details

    • DefaultSelectItem

      public DefaultSelectItem(String name, String item, boolean enabled, boolean selected)
  • Method Details

    • name

      public String name()
      Description copied from interface: SelectItem
      Gets a name.
      Specified by:
      name in interface SelectItem
      Returns:
      a name
    • item

      public String item()
      Description copied from interface: SelectItem
      Gets an item
      Specified by:
      item in interface SelectItem
      Returns:
      an item
    • enabled

      public boolean enabled()
      Description copied from interface: SelectItem
      Returns if item is enabled.
      Specified by:
      enabled in interface SelectItem
      Returns:
      if item is enabled
    • selected

      public boolean selected()
      Description copied from interface: SelectItem
      Return if the item is selected.
      Specified by:
      selected in interface SelectItem
      Returns:
      if item is selected