Interface PopupIterator

All Superinterfaces:
Comparable<PopupIterator>

public interface PopupIterator extends Comparable<PopupIterator>
Represents popup iterator.
  • Method Details

    • parent

      @NotNull @NotNull Popup parent()
      Returns parent popup.
      Returns:
      parent
    • isUnique

      boolean isUnique()
      Returns whether this iterator is unique
      Returns:
      whether to unique
    • markedAsRemoval

      boolean markedAsRemoval()
      Returns whether this popup is marked as removal.
      Returns:
      whether to removal
    • push

      boolean push()
      When added, this iterator will reduce all iterator's index when true.
      Returns:
      whether to reduce
    • getIndex

      int getIndex()
      Gets the index of iterator.
      Returns:
      index
    • getMaxIndex

      int getMaxIndex()
      Gets the max index of iterator.
      Returns:
      index
    • setIndex

      void setIndex(int index)
      Sets the index of iterator.
      Parameters:
      index - index
    • available

      boolean available()
      Checks this popup is available.
      Returns:
      whether to available
    • alwaysCheckCondition

      boolean alwaysCheckCondition()
      Returns whether this popup always checks condition.
      Returns:
      whether to always check
    • remove

      void remove()
      Removes this iterator
    • canSave

      boolean canSave()
      Returns this popup can save.
      Returns:
      can save or not
    • getUUID

      @NotNull @NotNull UUID getUUID()
      Returns uuid.
      Returns:
      uuid
    • getSortType

      @NotNull @NotNull PopupSortType getSortType()
      Returns sort type.
      Returns:
      sort type
    • getKey

      @NotNull @NotNull Object getKey()
      Returns key. It is normally uuid.
      Returns:
      key
    • next

      @NotNull @NotNull @Unmodifiable List<WidthComponent> next()
      Iterates this and returns next value.
      Returns:
      next component
    • name

      @NotNull @NotNull String name()
      Gets name.
      Returns:
      name
    • getPriority

      int getPriority()
      Gets priority
      Returns:
      priority
    • setPriority

      void setPriority(int priority)
      Sets priority
      Parameters:
      priority - priority