com.mucommander.ui.action
Class OpenLocationAction

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

public class OpenLocationAction
extends MuAction

This action opens a specified location in the current active FileTable. The location can be designated by either a FileURL, path, or AbstractFile.

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
OpenLocationAction(MainFrame mainFrame, java.util.Hashtable properties, AbstractFile file)
          Creates a new OpenLocationAction instance using the filename of the provided AbstractFile as label.
OpenLocationAction(MainFrame mainFrame, java.util.Hashtable properties, AbstractFile file, java.lang.String label)
          Creates a new OpenLocationAction instance using the provided AbstractFile and label.
OpenLocationAction(MainFrame mainFrame, java.util.Hashtable properties, BonjourService bonjourService)
          Convenience constructor, same effect as calling OpenLocationAction(MainFrame, Hashtable, FileURL, String) with BonjourService.getURL() and BonjourService.getNameWithProtocol() ()}.
OpenLocationAction(MainFrame mainFrame, java.util.Hashtable properties, Bookmark bookmark)
          Convenience constructor, same effect as calling OpenLocationAction(MainFrame, Hashtable, String, String) with Bookmark.getLocation() and Bookmark.getName().
OpenLocationAction(MainFrame mainFrame, java.util.Hashtable properties, FileURL url)
          Creates a new OpenLocationAction instance using the provided url's string representation (with credentials stripped out) as label.
OpenLocationAction(MainFrame mainFrame, java.util.Hashtable properties, FileURL url, java.lang.String label)
          Creates a new OpenLocationAction instance using the provided FileURL and label.
OpenLocationAction(MainFrame mainFrame, java.util.Hashtable properties, java.lang.String path)
          Creates a new OpenLocationAction instance using the provided path as label.
OpenLocationAction(MainFrame mainFrame, java.util.Hashtable properties, java.lang.String path, java.lang.String label)
          Creates a new OpenLocationAction instance using the provided path and label.
 
Method Summary
protected  FolderPanel getFolderPanel()
          Returns the FolderPanel on which to change the current folder.
 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

OpenLocationAction

public OpenLocationAction(MainFrame mainFrame,
                          java.util.Hashtable properties,
                          FileURL url)
Creates a new OpenLocationAction instance using the provided url's string representation (with credentials stripped out) as label.


OpenLocationAction

public OpenLocationAction(MainFrame mainFrame,
                          java.util.Hashtable properties,
                          FileURL url,
                          java.lang.String label)
Creates a new OpenLocationAction instance using the provided FileURL and label.


OpenLocationAction

public OpenLocationAction(MainFrame mainFrame,
                          java.util.Hashtable properties,
                          AbstractFile file)
Creates a new OpenLocationAction instance using the filename of the provided AbstractFile as label.


OpenLocationAction

public OpenLocationAction(MainFrame mainFrame,
                          java.util.Hashtable properties,
                          AbstractFile file,
                          java.lang.String label)
Creates a new OpenLocationAction instance using the provided AbstractFile and label.


OpenLocationAction

public OpenLocationAction(MainFrame mainFrame,
                          java.util.Hashtable properties,
                          java.lang.String path)
Creates a new OpenLocationAction instance using the provided path as label.


OpenLocationAction

public OpenLocationAction(MainFrame mainFrame,
                          java.util.Hashtable properties,
                          java.lang.String path,
                          java.lang.String label)
Creates a new OpenLocationAction instance using the provided path and label.


OpenLocationAction

public OpenLocationAction(MainFrame mainFrame,
                          java.util.Hashtable properties,
                          Bookmark bookmark)
Convenience constructor, same effect as calling OpenLocationAction(MainFrame, Hashtable, String, String) with Bookmark.getLocation() and Bookmark.getName().


OpenLocationAction

public OpenLocationAction(MainFrame mainFrame,
                          java.util.Hashtable properties,
                          BonjourService bonjourService)
Convenience constructor, same effect as calling OpenLocationAction(MainFrame, Hashtable, FileURL, String) with BonjourService.getURL() and BonjourService.getNameWithProtocol() ()}.

Method Detail

getFolderPanel

protected FolderPanel getFolderPanel()
Returns the FolderPanel on which to change the current folder. This method returns the currently active panel but can be overridden if another panel should be used.

Returns:
the currently active panel

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


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