Package jadex.base.gui.modeltree
Class ModelFileFilterMenuItemConstructor
- java.lang.Object
-
- jadex.base.gui.modeltree.ModelFileFilterMenuItemConstructor
-
- All Implemented Interfaces:
IMenuItemConstructor
public class ModelFileFilterMenuItemConstructor extends java.lang.Object implements IMenuItemConstructor
Dynamically create a new menu item structure for starting components.
-
-
Field Summary
Fields Modifier and Type Field Description protected IExternalAccess
exta
The external access.protected java.util.Map<java.lang.String,javax.swing.JCheckBoxMenuItem>
filetypes
The supported file types to menu items.protected javax.swing.JMenu
menu
The menu.static java.lang.String
SELECT_ALL
Constant for select all menu item.static java.lang.String
SELECT_ALL_MODELS
protected javax.swing.tree.TreeModel
treemodel
The root node.
-
Constructor Summary
Constructors Constructor Description ModelFileFilterMenuItemConstructor(AsyncSwingTreeModel treemodel, IExternalAccess exta)
Create a new filter menu item constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JMenuItem
getMenuItem()
Get or create a new menu item (struture).boolean
isAll()
Test if all is selected.boolean
isEnabled()
Test if action is available in current context.void
setSelectedComponentTypes(java.util.Set<java.lang.String> selected)
Select a set of menu items.
-
-
-
Field Detail
-
SELECT_ALL
public static final java.lang.String SELECT_ALL
Constant for select all menu item.- See Also:
- Constant Field Values
-
SELECT_ALL_MODELS
public static final java.lang.String SELECT_ALL_MODELS
- See Also:
- Constant Field Values
-
treemodel
protected javax.swing.tree.TreeModel treemodel
The root node.
-
exta
protected IExternalAccess exta
The external access.
-
menu
protected javax.swing.JMenu menu
The menu.
-
filetypes
protected java.util.Map<java.lang.String,javax.swing.JCheckBoxMenuItem> filetypes
The supported file types to menu items.
-
-
Constructor Detail
-
ModelFileFilterMenuItemConstructor
public ModelFileFilterMenuItemConstructor(AsyncSwingTreeModel treemodel, IExternalAccess exta)
Create a new filter menu item constructor.
-
-
Method Detail
-
isAll
public boolean isAll()
Test if all is selected.- Returns:
- True, if all.
-
setSelectedComponentTypes
public void setSelectedComponentTypes(java.util.Set<java.lang.String> selected)
Select a set of menu items.
-
getMenuItem
public javax.swing.JMenuItem getMenuItem()
Get or create a new menu item (struture).- Specified by:
getMenuItem
in interfaceIMenuItemConstructor
- Returns:
- The menu item (structure).
-
isEnabled
public boolean isEnabled()
Test if action is available in current context.- Returns:
- True, if available.
-
-