org.vizzini.ui
Interface IJPopupMenuOwner

All Known Subinterfaces:
IViewerSwing
All Known Implementing Classes:
AbstractViewerSwing, ObjectViewerJava3D, ObjectViewerSwing

public interface IJPopupMenuOwner

Defines methods required by a JPopupMenu owner.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

Method Summary
 void addToPopupMenu(Action action)
          Add the given action into the popup menu.
 void addToPopupMenu(JMenuItem menuItem)
          Add the given menu item into the popup menu.
 void insertIntoPopupMenu(Action action, int index)
          Insert the given action into the popup menu at the given index.
 void insertIntoPopupMenu(JMenuItem menuItem, int index)
          Insert the given menu item into the popup menu at the given index.
 

Method Detail

addToPopupMenu

void addToPopupMenu(Action action)
Add the given action into the popup menu.

Parameters:
action - The Action object to add.
Since:
v0.3

addToPopupMenu

void addToPopupMenu(JMenuItem menuItem)
Add the given menu item into the popup menu.

Parameters:
menuItem - The JMenuItem object to add.
Since:
v0.3

insertIntoPopupMenu

void insertIntoPopupMenu(Action action,
                         int index)
Insert the given action into the popup menu at the given index.

Parameters:
action - The Action object to insert.
index - Specifies the position at which to insert the Action, where 0 is the first.
Since:
v0.3

insertIntoPopupMenu

void insertIntoPopupMenu(JMenuItem menuItem,
                         int index)
Insert the given menu item into the popup menu at the given index.

Parameters:
menuItem - The JMenuItem object to insert.
index - Specifies the position at which to insert the menu item, where 0 is the first.
Since:
v0.3


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02