bibliothek.gui.dock.support.menu
Interface MenuPieceListener


public interface MenuPieceListener


Method Summary
 void insert(MenuPiece child, int index, Component... items)
          Adds an item to the menu.
 void remove(MenuPiece child, int index, int length)
          Removes an item from the menu.
 

Method Detail

insert

void insert(MenuPiece child,
            int index,
            Component... items)
Adds an item to the menu.

Parameters:
child - a MenuPiece whose parent is this and which want's to add the item
index - the index of the item, measured relatively to all items of owner
items - the new items

remove

void remove(MenuPiece child,
            int index,
            int length)
Removes an item from the menu.

Parameters:
child - a MenuPiece whose parent is this and which want's to remove the item
index - the index of the item, measured relatively to all items of owner
length - the number of items to remove