com.mucommander.ui.action
Class StopAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.mucommander.ui.action.MuAction
          extended by com.mucommander.ui.action.StopAction
All Implemented Interfaces:
LocationListener, java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class StopAction
extends MuAction
implements LocationListener

This action is invoked to stop a running location change.

Author:
Maxence Bernard
See Also:
Serialized Form

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
StopAction(MainFrame mainFrame, java.util.Hashtable properties)
           
 
Method Summary
 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.
 void performAction()
          Called when this action has been triggered.
 
Methods inherited from class com.mucommander.ui.action.MuAction
actionPerformed, getAccelerator, getAcceleratorText, getAlternateAccelerator, getIcon, getKeyStrokeRepresentation, getLabel, getMainFrame, getModifiersRepresentation, getStandardAccelerator, getStandardAccelerator, getStandardAlternateAccelerator, getStandardAlternateAccelerator, getStandardIcon, getStandardIcon, getStandardIconPath, getStandardIconPath, getStandardLabel, getStandardLabel, getStandardLabelKey, getStandardLabelKey, getStandardTooltip, getStandardTooltip, getStandardTooltipKey, getStandardTooltipKey, getToolTipText, honourNoEventsMode, isAccelerator, performActionInSeparateThread, reportError, reportError, reportGenericError, setAccelerator, setAlternateAccelerator, setHonourNoEventsMode, setIcon, setLabel, setPerformActionInSeparateThread, setToolTipText
 
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

StopAction

public StopAction(MainFrame mainFrame,
                  java.util.Hashtable properties)
Method Detail

performAction

public void performAction()
Description copied from class: MuAction
Called when this action has been triggered. This method provides a response to the action trigger.

Specified by:
performAction in class MuAction

locationChanged

public void locationChanged(LocationEvent e)
Description copied from interface: LocationListener
This method is invoked when the current folder has changed.

Specified by:
locationChanged in interface LocationListener
Parameters:
e - describes the location change event

locationChanging

public void locationChanging(LocationEvent e)
Description copied from interface: LocationListener
This method is invoked when the current folder is being changed.

A call to either LocationListener.locationChanged(LocationEvent), LocationListener.locationCancelled(LocationEvent) or LocationListener.locationFailed(LocationEvent) will always follow to indicate the outcome of the folder change.

Specified by:
locationChanging in interface LocationListener
Parameters:
e - describes the location change event

locationCancelled

public void locationCancelled(LocationEvent e)
Description copied from interface: LocationListener
This method is invoked when the current folder has been cancelled by the user.

Specified by:
locationCancelled in interface LocationListener
Parameters:
e - describes the location change event

locationFailed

public void locationFailed(LocationEvent e)
Description copied from interface: LocationListener
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.

Specified by:
locationFailed in interface LocationListener
Parameters:
e - describes the location change event


This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard