Class JSimpleEntriesList<T extends JSimpleListEntry<U>,U>

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
JAttributeModifierList, JBoundingBoxList, JEntityAnimationList, JEntityDataList, JModelLayerList, JPotionList, JSpawnEntriesList

public abstract class JSimpleEntriesList<T extends JSimpleListEntry<U>,U> extends JSingleEntriesList<T,U>
See Also:
  • Constructor Details

  • Method Details

    • entryAddedByUserHandler

      public void entryAddedByUserHandler()
      Called after an entry created upon user action is successfully added to this list.
    • newEntry

      @Nullable protected abstract T newEntry(JPanel parent, List<T> entryList, boolean userAction)
      Parameters:
      parent - The container panel that displays all entries in this list.
      entryList - The list to add the new entry to.
      userAction - Whether this method was triggered by user action in UI.
      Returns:
      A new entry to be added to this list, null to cancel entry creation.
    • getEntries

      public final List<U> getEntries()
      Specified by:
      getEntries in class JSingleEntriesList<T extends JSimpleListEntry<U>,U>
    • setEntries

      public final void setEntries(List<U> newEntries)
      Specified by:
      setEntries in class JSingleEntriesList<T extends JSimpleListEntry<U>,U>
    • reloadDataLists

      public void reloadDataLists()
      Overrides:
      reloadDataLists in class JEntriesList