|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.file.AbstractFile
com.mucommander.file.DummyFile
com.mucommander.file.impl.local.SpecialWindowsLocation
public class SpecialWindowsLocation
Represents special Windows locations such as 'My Computer', 'Network Neighborhood', 'Recycle Bin', ... as dummy
AbstractFile instances, for the sole purpose of being opened with
DesktopManager.
This class is totally useless on platforms other than Windows.
DesktopManager| Field Summary | |
|---|---|
protected java.lang.String |
clsid
A class ID |
static SpecialWindowsLocation |
CONTROL_PANEL
Control Panel |
static SpecialWindowsLocation |
MY_COMPUTER
My Computer |
static SpecialWindowsLocation |
MY_DOCUMENTS
My Documents |
static SpecialWindowsLocation |
NETWORK_NEIGHBORHOOD
Network Neighborhood |
static SpecialWindowsLocation |
RECYCLE_BIN
Recycle Bin |
| Fields inherited from class com.mucommander.file.AbstractFile |
|---|
DEFAULT_SEPARATOR, fileURL, IO_BUFFER_SIZE, MUST_HINT, MUST_NOT_HINT, SHOULD_HINT, SHOULD_NOT_HINT, windowsDriveRootPattern |
| Fields inherited from interface com.mucommander.file.PermissionTypes |
|---|
EXECUTE_PERMISSION, READ_PERMISSION, WRITE_PERMISSION |
| Fields inherited from interface com.mucommander.file.PermissionAccesses |
|---|
GROUP_ACCESS, OTHER_ACCESS, USER_ACCESS |
| Constructor Summary | |
|---|---|
SpecialWindowsLocation(java.lang.String clsid)
Creates a new special Windows location using the given CLSID (Class identifier). |
|
| Method Summary | |
|---|---|
java.lang.String |
getAbsolutePath()
Implementation notes: returns the CLSID (Class identifier) passed to the constructor. |
java.lang.String |
getName()
Implementation notes: returns the CLSID (Class identifier) passed to the constructor. |
boolean |
isDirectory()
Implementation notes: always returns true. |
| Methods inherited from class com.mucommander.file.DummyFile |
|---|
canChangeDate, canGetGroup, canGetOwner, canRunProcess, changeDate, changePermission, delete, exists, getChangeablePermissions, getDate, getFreeSpace, getGroup, getInputStream, getOutputStream, getOwner, getParent, getPermissions, getRandomAccessInputStream, getRandomAccessOutputStream, getSize, getTotalSpace, getUnderlyingFileObject, hasRandomAccessInputStream, hasRandomAccessOutputStream, isSymlink, ls, mkdir, runProcess, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final SpecialWindowsLocation CONTROL_PANEL
public static final SpecialWindowsLocation MY_COMPUTER
public static final SpecialWindowsLocation MY_DOCUMENTS
public static final SpecialWindowsLocation NETWORK_NEIGHBORHOOD
public static final SpecialWindowsLocation RECYCLE_BIN
protected java.lang.String clsid
| Constructor Detail |
|---|
public SpecialWindowsLocation(java.lang.String clsid)
throws java.net.MalformedURLException
clsid - a Windows class identifier
java.net.MalformedURLException - should not happen| Method Detail |
|---|
public java.lang.String getName()
getName in class AbstractFilepublic java.lang.String getAbsolutePath()
getAbsolutePath in class AbstractFilepublic boolean isDirectory()
true.
isDirectory in class DummyFiletrue if this file is a directory, false in any of the cases listed above
|
|||||||||
| 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