Interface MenuPieceListener


public interface MenuPieceListener
This listener is added to a MenuPiece and gets informed when the content of the piece changes.
Author:
Benjamin Sigg
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    insert(MenuPiece piece, int index, Component... items)
    Called if some items have been added to piece.
    void
    remove(MenuPiece piece, int index, int length)
    Called if some items have been removed from piece
  • Method Details

    • insert

      void insert(MenuPiece piece, int index, Component... items)
      Called if some items have been added to piece.
      Parameters:
      piece - a MenuPiece whose content changed
      index - the index of the item, measured relatively to all items of owner
      items - the new items
    • remove

      void remove(MenuPiece piece, int index, int length)
      Called if some items have been removed from piece
      Parameters:
      piece - the MenuPiece whose content changed
      index - the index of the item, measured relatively to all items of owner
      length - the number of items to remove