Class MCItemHolder

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants, IValidable

public class MCItemHolder extends JButton implements IValidable
See Also:
  • Constructor Details

  • Method Details

    • addBlockSelectedListener

      public void addBlockSelectedListener(ActionListener al)
    • setBlock

      public void setBlock(MItemBlock mItemBlock)
    • getBlock

      public MItemBlock getBlock()
    • containsItem

      public boolean containsItem()
      Returns:
      true if selector has item defined (air doesn't count as an item)
    • containsItemOrAir

      public boolean containsItemOrAir()
      Returns:
      true if selector has item defined (air also counts)
    • paintComponent

      public void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent
    • setValidationShownFlag

      public void setValidationShownFlag(boolean showValidation)
    • 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