public class ModelFileFilterMenuItemConstructor
extends java.lang.Object
implements jadex.commons.gui.IMenuItemConstructor, jadex.commons.IPropertiesProvider
Modifier and Type | Field and Description |
---|---|
protected jadex.bridge.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.
|
protected javax.swing.tree.TreeModel |
treemodel
The root node.
|
Constructor and Description |
---|
ModelFileFilterMenuItemConstructor(AsyncSwingTreeModel treemodel,
jadex.bridge.IExternalAccess exta)
Create a new filter menu item constructor.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.JMenuItem |
getMenuItem()
Get or create a new menu item (struture).
|
jadex.commons.future.IFuture<jadex.commons.Properties> |
getProperties()
Write current state into properties.
|
java.util.List<java.lang.String> |
getSelectedComponentTypes()
Get all selected component types.
|
jadex.commons.future.IFuture<java.util.Set<java.lang.String>> |
getSupportedComponentTypes()
Returns the supported component types.
|
boolean |
isAll()
Test if all is selected.
|
boolean |
isEnabled()
Test if action is available in current context.
|
jadex.commons.future.IFuture<java.lang.Void> |
setProperties(jadex.commons.Properties props)
Update tool from given properties.
|
void |
setSelectedComponentTypes(java.util.Set<java.lang.String> selected)
Select a set of menu items.
|
public static final java.lang.String SELECT_ALL
protected javax.swing.tree.TreeModel treemodel
protected jadex.bridge.IExternalAccess exta
protected javax.swing.JMenu menu
protected java.util.Map<java.lang.String,javax.swing.JCheckBoxMenuItem> filetypes
public ModelFileFilterMenuItemConstructor(AsyncSwingTreeModel treemodel, jadex.bridge.IExternalAccess exta)
public boolean isAll()
public java.util.List<java.lang.String> getSelectedComponentTypes()
public void setSelectedComponentTypes(java.util.Set<java.lang.String> selected)
public jadex.commons.future.IFuture<java.util.Set<java.lang.String>> getSupportedComponentTypes()
public javax.swing.JMenuItem getMenuItem()
getMenuItem
in interface jadex.commons.gui.IMenuItemConstructor
public boolean isEnabled()
public jadex.commons.future.IFuture<jadex.commons.Properties> getProperties()
getProperties
in interface jadex.commons.IPropertiesProvider
public jadex.commons.future.IFuture<java.lang.Void> setProperties(jadex.commons.Properties props)
setProperties
in interface jadex.commons.IPropertiesProvider