Class AbstractPerFoldPopupMenuItem
- java.lang.Object
-
- adams.gui.tools.wekainvestigator.tab.classifytab.output.perfold.AbstractPerFoldPopupMenuItem
-
- Direct Known Subclasses:
CopySetup
,SubRangeEvaluation
public abstract class AbstractPerFoldPopupMenuItem extends Object
Ancestor for classes that add menu items to the per-fold popup menu.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractOutputGenerator
m_OutputGenerator
the originating output generator.
-
Constructor Summary
Constructors Constructor Description AbstractPerFoldPopupMenuItem()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract JMenuItem
createMenuItem(PerFoldMultiPagePane pane, int[] indices)
Creates the menu item to add to the pane's popup menu.abstract String
getCategory()
The category for grouping menu items.AbstractOutputGenerator
getOutputGenerator()
Returns the output generator.abstract String
getTitle()
The menu item title.void
setOutputGenerator(AbstractOutputGenerator value)
Sets the output generator.static void
updatePopupMenu(PerFoldMultiPagePane pane, AbstractOutputGenerator generator, int[] indices, JPopupMenu menu)
Updates the menu.
-
-
-
Field Detail
-
m_OutputGenerator
protected AbstractOutputGenerator m_OutputGenerator
the originating output generator.
-
-
Method Detail
-
setOutputGenerator
public void setOutputGenerator(AbstractOutputGenerator value)
Sets the output generator.- Parameters:
value
- the generator
-
getOutputGenerator
public AbstractOutputGenerator getOutputGenerator()
Returns the output generator.- Returns:
- the generator
-
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(PerFoldMultiPagePane pane, int[] indices)
Creates the menu item to add to the pane's popup menu.- Parameters:
pane
- the per-fold panel this menu is forindices
- the selected indices- Returns:
- the menu item, null if failed to generate
-
updatePopupMenu
public static void updatePopupMenu(PerFoldMultiPagePane pane, AbstractOutputGenerator generator, int[] indices, JPopupMenu menu)
Updates the menu.- Parameters:
pane
- the per-fold paneowner
- the owning tabgenerator
- the output generator that was used to generate the per-fold paneindices
- the currently selected indicesmenu
- the menu to update
-
-