Package jadex.base.gui.modeltree
Class RemovePathAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jadex.commons.gui.ToolTipAction
-
- jadex.base.gui.modeltree.RemovePathAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public class RemovePathAction extends ToolTipAction
Action for removing a path.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static javax.swing.UIDefaults
icons
The image icons.protected ITreeAbstraction
treepanel
The tree.
-
Constructor Summary
Constructors Constructor Description RemovePathAction(ITreeAbstraction treepanel)
Create a new action.RemovePathAction(java.lang.String name, javax.swing.Icon icon, java.lang.String desc, ITreeAbstraction treepanel)
Create a new action.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
Action performed.static javax.swing.Icon
getIcon()
Get the icon.static java.lang.String
getName()
Get the name.static java.lang.String
getTooltipText()
Get the tooltip text.boolean
isEnabled()
Test if action is available in current context.-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
icons
protected static final javax.swing.UIDefaults icons
The image icons.
-
treepanel
protected ITreeAbstraction treepanel
The tree.
-
-
Constructor Detail
-
RemovePathAction
public RemovePathAction(ITreeAbstraction treepanel)
Create a new action.
-
RemovePathAction
public RemovePathAction(java.lang.String name, javax.swing.Icon icon, java.lang.String desc, ITreeAbstraction treepanel)
Create a new action.
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Test if action is available in current context.- Specified by:
isEnabled
in interfacejavax.swing.Action
- Overrides:
isEnabled
in classjavax.swing.AbstractAction
- Returns:
- True, if available.
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
Action performed.
-
getName
public static java.lang.String getName()
Get the name.
-
getIcon
public static javax.swing.Icon getIcon()
Get the icon.- Returns:
- The icon.
-
getTooltipText
public static java.lang.String getTooltipText()
Get the tooltip text.- Returns:
- The tooltip text.
-
-