Class JItemListField<T>

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, IValidable
Direct Known Subclasses:
BiomeListField, DamageTypeListField, DefaultFeaturesListField, EnchantmentListField, FileListField, FluidListField, MCItemListField, ModElementListField, SpawnableEntityListField, TabListField

public abstract class JItemListField<T> extends JPanel implements IValidable
See Also:
  • Field Details

    • elementsList

      protected final JList<T> elementsList
    • mcreator

      protected final MCreator mcreator
  • Constructor Details

    • JItemListField

      protected JItemListField(MCreator mcreator)
    • JItemListField

      protected JItemListField(MCreator mcreator, boolean excludeButton)
    • JItemListField

      protected JItemListField(MCreator mcreator, boolean excludeButton, boolean allowTags)
  • Method Details

    • setWarnOnRemoveAll

      public void setWarnOnRemoveAll(boolean warnOnDeleteAll)
    • hideButtons

      public void hideButtons()
    • disableItemCentering

      public void disableItemCentering()
    • getElementsToAdd

      protected abstract List<T> getElementsToAdd()
    • getTagsToAdd

      protected List<T> getTagsToAdd()
    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class JComponent
    • addChangeListener

      public void addChangeListener(ChangeListener changeListener)
    • getListElements

      public List<T> getListElements()
    • setListElements

      public void setListElements(@Nullable List<T> elements)
    • isExclusionMode

      public boolean isExclusionMode()
    • setExclusionMode

      public void setExclusionMode(boolean isExcluded)
    • paint

      public void paint(Graphics g)
      Overrides:
      paint in class JComponent
    • getValidationStatus

      public Validator.ValidationResult getValidationStatus()
      Specified by:
      getValidationStatus in interface IValidable
    • setValidator

      public void setValidator(Validator validator)
      Specified by:
      setValidator in interface IValidable
    • getValidator

      public Validator getValidator()
      Specified by:
      getValidator in interface IValidable