public class DefaultFileFilterMenuItemConstructor
extends java.lang.Object
implements jadex.commons.gui.IMenuItemConstructor, jadex.commons.IPropertiesProvider
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
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[] |
STANDARD_TYPES
Constant for some standard file extensions.
|
protected javax.swing.tree.TreeModel |
treemodel
The root node.
|
protected java.lang.String[] |
types
The file types.
|
Constructor and Description |
---|
DefaultFileFilterMenuItemConstructor(AsyncSwingTreeModel treemodel)
Create a new filter menu item constructor.
|
DefaultFileFilterMenuItemConstructor(AsyncSwingTreeModel treemodel,
boolean selall)
Create a new filter menu item constructor.
|
DefaultFileFilterMenuItemConstructor(java.lang.String[] types,
AsyncSwingTreeModel treemodel)
Create a new filter menu item constructor.
|
DefaultFileFilterMenuItemConstructor(java.lang.String[] types,
AsyncSwingTreeModel treemodel,
boolean selall)
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.
|
boolean |
isAll()
Test all flag.
|
boolean |
isEnabled()
Test if action is available in current context.
|
void |
setAll(boolean bool)
Set the all flag.
|
jadex.commons.future.IFuture<java.lang.Void> |
setProperties(jadex.commons.Properties props)
Update tool from given properties.
|
void |
setSelectedComponentTypes(java.util.Set selected)
Select a set of menu items.
|
public static final java.lang.String[] STANDARD_TYPES
public static final java.lang.String SELECT_ALL
protected java.lang.String[] types
protected javax.swing.tree.TreeModel treemodel
protected javax.swing.JMenu menu
protected java.util.Map filetypes
public DefaultFileFilterMenuItemConstructor(AsyncSwingTreeModel treemodel)
public DefaultFileFilterMenuItemConstructor(AsyncSwingTreeModel treemodel, boolean selall)
public DefaultFileFilterMenuItemConstructor(java.lang.String[] types, AsyncSwingTreeModel treemodel)
public DefaultFileFilterMenuItemConstructor(java.lang.String[] types, AsyncSwingTreeModel treemodel, boolean selall)
public boolean isAll()
public void setAll(boolean bool)
bool
- True for selecting all.public java.util.List<java.lang.String> getSelectedComponentTypes()
public void setSelectedComponentTypes(java.util.Set selected)
public javax.swing.JMenuItem getMenuItem()
getMenuItem
in interface jadex.commons.gui.IMenuItemConstructor
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
public boolean isEnabled()