|
|||||||||
| 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
public abstract class GoToAction
This class is an abstract MuAction that monitors changes in the currently active panel's location and calls
toggleEnabledState() every time the location has changed, and when the current panel has changed to update
enable or disable this action.
| 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 | |
|---|---|
GoToAction(MainFrame mainFrame,
java.util.Hashtable properties)
|
|
| Method Summary | |
|---|---|
void |
activePanelChanged(FolderPanel folderPanel)
This method is invoked when the currently active (i.e. |
void |
locationCancelled(LocationEvent e)
This method is invoked when the current folder has been cancelled by the user. |
void |
locationChanged(LocationEvent e)
This method is invoked when the current folder has changed. |
void |
locationChanging(LocationEvent e)
This method is invoked when the current folder is being changed. |
void |
locationFailed(LocationEvent e)
This method is invoked when the current folder could not be changed, as a result of the folder not existing or failing to list its contents. |
protected abstract void |
toggleEnabledState()
Enables or disables this action based on the location of the currently active FolderPanel. |
| 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 GoToAction(MainFrame mainFrame,
java.util.Hashtable properties)
| Method Detail |
|---|
protected abstract void toggleEnabledState()
FolderPanel.
This method is called once by the constructor to set the initial state. Then it is called every time the location
of the currently active FolderPanel has changed, and when the currently active FolderPanel
has changed.
public void activePanelChanged(FolderPanel folderPanel)
ActivePanelListener
activePanelChanged in interface ActivePanelListenerfolderPanel - the new active FolderPanel.public void locationChanged(LocationEvent e)
LocationListener
locationChanged in interface LocationListenere - describes the location change eventpublic void locationChanging(LocationEvent e)
LocationListenerA call to either LocationListener.locationChanged(LocationEvent), LocationListener.locationCancelled(LocationEvent) or
LocationListener.locationFailed(LocationEvent) will always follow to indicate the outcome of the folder change.
locationChanging in interface LocationListenere - describes the location change eventpublic void locationCancelled(LocationEvent e)
LocationListener
locationCancelled in interface LocationListenere - describes the location change eventpublic void locationFailed(LocationEvent e)
LocationListener
locationFailed in interface LocationListenere - describes the location change event
|
|||||||||
| 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