|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.AbstractAction
com.mucommander.ui.action.MuAction
com.mucommander.ui.action.GoToAction
com.mucommander.ui.action.GoToParentAction
public class GoToParentAction
This action changes the current folder of the currently active FolderPanel to the current folder's parent. This action only gets enabled when the current folder has a parent.
| Field Summary |
|---|
| Fields inherited from class com.mucommander.ui.action.MuAction |
|---|
ALTERNATE_ACCELERATOR_PROPERTY_KEY, mainFrame |
| 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 | |
|---|---|
GoToParentAction(MainFrame mainFrame,
java.util.Hashtable properties)
Creates a new GoToParentAction with the specified parameters. |
|
| Method Summary | |
|---|---|
protected boolean |
goToParent(FolderPanel panel)
Updates panel's location to its parent. |
protected boolean |
goToParent(FolderPanel sourcePanel,
FolderPanel destPanel)
Goes to sourcePanel's parent in destPanel. |
void |
performAction()
Goes to the current location's parent in the active panel. |
protected void |
toggleEnabledState()
Enables or disables this action based on the currently active folder's has a parent, this action will be enabled, if not it will be disabled. |
| Methods inherited from class com.mucommander.ui.action.GoToAction |
|---|
activePanelChanged, locationCancelled, locationChanged, locationChanging, locationFailed |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GoToParentAction(MainFrame mainFrame,
java.util.Hashtable properties)
GoToParentAction with the specified parameters.
mainFrame - frame to which the action is attached.properties - action's properties.| Method Detail |
|---|
protected void toggleEnabledState()
toggleEnabledState in class GoToAction
protected boolean goToParent(FolderPanel sourcePanel,
FolderPanel destPanel)
sourcePanel's parent in destPanel.
If sourcePanel doesn't have a parent, nothing will happen.
sourcePanel - panel whose parent should be used.destPanel - panel in which to change the location.
true if sourcePanel has a parent, false otherwise.protected boolean goToParent(FolderPanel panel)
panel's location to its parent.
This is a convenience method and is strictly equivalent to calling
goToParent(panel, panel)
panel - in which to change the location.
true if panel has a parent, false otherwise.public void performAction()
performAction in class MuAction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard