Class AbstractHistoryPopupMenuItem<H extends adams.gui.core.AbstractNamedHistoryPanel,T extends AbstractInvestigatorTab>
- java.lang.Object
-
- adams.gui.tools.wekainvestigator.history.AbstractHistoryPopupMenuItem<H,T>
-
- Direct Known Subclasses:
AbstractHistoryPopupMenuItem,AbstractHistoryPopupMenuItem,AbstractHistoryPopupMenuItem,AbstractHistoryPopupMenuItem
public abstract class AbstractHistoryPopupMenuItem<H extends adams.gui.core.AbstractNamedHistoryPanel,T extends AbstractInvestigatorTab> extends Object
Ancestor for classes that add menu items to the history popup menu.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description AbstractHistoryPopupMenuItem()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract JMenuItemcreateMenuItem(H history, int[] indices)Creates the menu item to add to the history's popup menu.abstract StringgetCategory()The category for grouping menu items.TgetOwner()Returns the owner.abstract StringgetTitle()The menu item title.voidsetOwner(T value)Sets the owner.static voidupdatePopupMenu(adams.gui.core.AbstractNamedHistoryPanel history, AbstractInvestigatorTab owner, int[] indices, JPopupMenu menu, Class superclass)Updates the menu for the specified superclass of menu items.
-
-
-
Field Detail
-
m_Owner
protected T extends AbstractInvestigatorTab m_Owner
the owner.
-
-
Method Detail
-
setOwner
public void setOwner(T value)
Sets the owner.- Parameters:
value- the owner
-
getOwner
public T getOwner()
Returns the owner.- Returns:
- the owner
-
getCategory
public abstract String getCategory()
The category for grouping menu items.- Returns:
- the group
-
getTitle
public abstract String getTitle()
The menu item title.- Returns:
- the title
-
createMenuItem
public abstract JMenuItem createMenuItem(H history, int[] indices)
Creates the menu item to add to the history's popup menu.- Parameters:
history- the history panel this menu is forindices- the selected indices- Returns:
- the menu item, null if failed to generate
-
updatePopupMenu
public static void updatePopupMenu(adams.gui.core.AbstractNamedHistoryPanel history, AbstractInvestigatorTab owner, int[] indices, JPopupMenu menu, Class superclass)Updates the menu for the specified superclass of menu items.- Parameters:
history- the history panelindices- the currently selected indicesmenu- the menu to updatesuperclass- the superclass for the menu items
-
-