Class AbstractInitialCloseBaseAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- de.funfried.netbeans.plugins.editor.closeleftright.AbstractBaseAction
-
- de.funfried.netbeans.plugins.editor.closeleftright.actions.AbstractInitialCloseBaseAction
-
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
- Direct Known Subclasses:
CloseLeftAction,CloseOtherProjectTabsAction,CloseRightAction,CloseSameProjectTabsAction
public abstract class AbstractInitialCloseBaseAction extends AbstractBaseAction
Base class for closing left or right tabs actions.- Author:
- bahlef
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleaninitialCloseFlag indicating to close all left or all right tabs.-
Fields inherited from class de.funfried.netbeans.plugins.editor.closeleftright.AbstractBaseAction
topComponent
-
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
-
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractInitialCloseBaseAction(String name, org.openide.windows.TopComponent topComponent, boolean initialClose)Constructor of abstract classAbstractBaseAction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(ActionEvent event)booleanisEnabled()-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
AbstractInitialCloseBaseAction
protected AbstractInitialCloseBaseAction(String name, org.openide.windows.TopComponent topComponent, boolean initialClose)
Constructor of abstract classAbstractBaseAction.- Parameters:
name- the name of this actiontopComponent- theTopComponentinitialClose- flag indicating to close all left (true) or all right (false) tabs
-
-
Method Detail
-
actionPerformed
public void actionPerformed(ActionEvent event)
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceAction- Overrides:
isEnabledin classAbstractAction
-
-