Interface IUIAnimatedSingleIndexedSelectionComp

All Superinterfaces:
IComponent, ICustomDataProvider, IGProp<GProp<?>[]>, IMessageBox, IPropCnr, IUIComp, IUIIndexedSelectionComp, IUISelectionComp, IUISingleIndexedSelectionComp, IVSComponentListener, IVSComponentState, IVSFieldListener
All Known Implementing Classes:
EUIAccordion, EUISwapContainer, EUITabContainer, UIAccordion, UISwapContainer, UITabContainer

public interface IUIAnimatedSingleIndexedSelectionComp extends IUISingleIndexedSelectionComp
The interface for a selection component supporting index-based selections.
Author:
Christopher Mindus
  • Method Details

    • isAnimated

      boolean isAnimated()
      Returns the animation flag.
      Returns:
      If the selection is done with animation or not.
    • setSelection

      String setSelection(int index, boolean isAnimated)
      Sets the selection as a single selected item at specified index.
      Parameters:
      index - The single item to select at index, -1 to clear the selection.
      isAnimated - The animation flag.
      Returns:
      null for success, otherwise an error message why the selection failed.
    • setSelection

      default String setSelection(int index)
      Sets the selection as a single selected item at specified index without animation.
      Specified by:
      setSelection in interface IUIIndexedSelectionComp
      Parameters:
      index - The single item to select at index, -1 to clear the selection.
      Returns:
      null for success, otherwise an error message why the selection failed.