| |
|
| sun.awt.shell.Win32ShellFolder2
Win32ShellFolder2 | final class Win32ShellFolder2 extends ShellFolder (Code) | | Win32 Shell Folders
There are two fundamental types of shell folders : file system folders
and non-file system folders. File system folders are relatively easy
to deal with. Non-file system folders are items such as My Computer,
Network Neighborhood, and the desktop. Some of these non-file system
folders have special values and properties.
Win32 keeps two basic data structures for shell folders. The first
of these is called an ITEMIDLIST. Usually a pointer, called an
LPITEMIDLIST, or more frequently just "PIDL". This structure holds
a series of identifiers and can be either relative to the desktop
(an absolute PIDL), or relative to the shell folder that contains them.
Some Win32 functions can take absolute or relative PIDL values, and
others can only accept relative values.
The second data structure is an IShellFolder COM interface. Using
this interface, one can enumerate the relative PIDLs in a shell
folder, get attributes, etc.
All Win32ShellFolder2 objects which are folder types (even non-file
system folders) contain an IShellFolder object. Files are named in
directories via relative PIDLs.
author: Michael Martak author: Leif Samuelsson author: Kenneth Russell since: 1.4 |
Inner Class :public enum SystemIcon | |
Inner Class :static class FolderDisposer implements sun.java2d.DisposerRecord | |
ALTSTARTUP | final public static int ALTSTARTUP(Code) | | |
APPDATA | final public static int APPDATA(Code) | | |
ATTRIB_BROWSABLE | final public static int ATTRIB_BROWSABLE(Code) | | |
ATTRIB_CANCOPY | final public static int ATTRIB_CANCOPY(Code) | | |
ATTRIB_CANDELETE | final public static int ATTRIB_CANDELETE(Code) | | |
ATTRIB_CANLINK | final public static int ATTRIB_CANLINK(Code) | | |
ATTRIB_CANMOVE | final public static int ATTRIB_CANMOVE(Code) | | |
ATTRIB_CANRENAME | final public static int ATTRIB_CANRENAME(Code) | | |
ATTRIB_COMPRESSED | final public static int ATTRIB_COMPRESSED(Code) | | |
ATTRIB_DROPTARGET | final public static int ATTRIB_DROPTARGET(Code) | | |
ATTRIB_FILESYSANCESTOR | final public static int ATTRIB_FILESYSANCESTOR(Code) | | |
ATTRIB_FILESYSTEM | final public static int ATTRIB_FILESYSTEM(Code) | | |
ATTRIB_FOLDER | final public static int ATTRIB_FOLDER(Code) | | |
ATTRIB_GHOSTED | final public static int ATTRIB_GHOSTED(Code) | | |
ATTRIB_HASPROPSHEET | final public static int ATTRIB_HASPROPSHEET(Code) | | |
ATTRIB_HASSUBFOLDER | final public static int ATTRIB_HASSUBFOLDER(Code) | | |
ATTRIB_HIDDEN | final public static int ATTRIB_HIDDEN(Code) | | |
ATTRIB_LINK | final public static int ATTRIB_LINK(Code) | | |
ATTRIB_NEWCONTENT | final public static int ATTRIB_NEWCONTENT(Code) | | |
ATTRIB_NONENUMERATED | final public static int ATTRIB_NONENUMERATED(Code) | | |
ATTRIB_READONLY | final public static int ATTRIB_READONLY(Code) | | |
ATTRIB_REMOVABLE | final public static int ATTRIB_REMOVABLE(Code) | | |
ATTRIB_SHARE | final public static int ATTRIB_SHARE(Code) | | |
ATTRIB_VALIDATE | final public static int ATTRIB_VALIDATE(Code) | | |
BITBUCKET | final public static int BITBUCKET(Code) | | |
COMMON_ALTSTARTUP | final public static int COMMON_ALTSTARTUP(Code) | | |
COMMON_DESKTOPDIRECTORY | final public static int COMMON_DESKTOPDIRECTORY(Code) | | |
COMMON_FAVORITES | final public static int COMMON_FAVORITES(Code) | | |
COMMON_PROGRAMS | final public static int COMMON_PROGRAMS(Code) | | |
COMMON_STARTMENU | final public static int COMMON_STARTMENU(Code) | | |
COMMON_STARTUP | final public static int COMMON_STARTUP(Code) | | |
CONTROLS | final public static int CONTROLS(Code) | | |
COOKIES | final public static int COOKIES(Code) | | |
DESKTOP | final public static int DESKTOP(Code) | | |
DESKTOPDIRECTORY | final public static int DESKTOPDIRECTORY(Code) | | |
DRIVES | final public static int DRIVES(Code) | | |
FAVORITES | final public static int FAVORITES(Code) | | |
FONTS | final public static int FONTS(Code) | | |
HISTORY | final public static int HISTORY(Code) | | |
INTERNET | final public static int INTERNET(Code) | | |
INTERNET_CACHE | final public static int INTERNET_CACHE(Code) | | |
NETHOOD | final public static int NETHOOD(Code) | | |
NETWORK | final public static int NETWORK(Code) | | |
PERSONAL | final public static int PERSONAL(Code) | | |
PRINTERS | final public static int PRINTERS(Code) | | |
PRINTHOOD | final public static int PRINTHOOD(Code) | | |
PROGRAMS | final public static int PROGRAMS(Code) | | |
RECENT | final public static int RECENT(Code) | | |
SENDTO | final public static int SENDTO(Code) | | |
SHGDN_FORADDRESSBAR | final public static int SHGDN_FORADDRESSBAR(Code) | | |
SHGDN_FORPARSING | final public static int SHGDN_FORPARSING(Code) | | |
SHGDN_INCLUDE_NONFILESYS | final public static int SHGDN_INCLUDE_NONFILESYS(Code) | | |
SHGDN_INFOLDER | final public static int SHGDN_INFOLDER(Code) | | |
SHGDN_NORMAL | final public static int SHGDN_NORMAL(Code) | | |
STARTMENU | final public static int STARTMENU(Code) | | |
STARTUP | final public static int STARTUP(Code) | | |
TEMPLATES | final public static int TEMPLATES(Code) | | |
disposer | FolderDisposer disposer(Code) | | |
fileChooserBitmapBits | static int[] fileChooserBitmapBits(Code) | | |
Win32ShellFolder2 | Win32ShellFolder2(int csidl) throws IOException(Code) | | Create a system special shell folder, such as the
desktop or Network Neighborhood.
|
Win32ShellFolder2 | Win32ShellFolder2(Win32ShellFolder2 parent, long pIShellFolder, long relativePIDL, String path)(Code) | | Create a system shell folder
|
Win32ShellFolder2 | Win32ShellFolder2(Win32ShellFolder2 parent, long relativePIDL)(Code) | | Creates a shell folder with a parent and relative PIDL
|
compareTo | public int compareTo(File file2)(Code) | | Compares this object with the specified object for order.
See Also: sun.awt.shell.ShellFolder.compareTo(File) |
copyFirstPIDLEntry | native static long copyFirstPIDLEntry(long pIDL)(Code) | | |
dispose | protected void dispose()(Code) | | Finalizer to clean up any COM objects or PIDLs used by this object.
|
equals | public boolean equals(Object o)(Code) | | Check to see if two ShellFolder objects are the same
|
getChildByPath | Win32ShellFolder2 getChildByPath(String filePath)(Code) | | Look for (possibly special) child folder by it's path
The child shellfolder, or null if not found. |
getDesktopIShellFolder | public long getDesktopIShellFolder()(Code) | | Helper function to return the desktop IShellFolder interface
|
getDisplayName | public String getDisplayName()(Code) | | The name used to display this shell folder |
getExecutableType | public String getExecutableType()(Code) | | The executable type as a string |
getFileChooserBitmapBits | native public static int[] getFileChooserBitmapBits()(Code) | | |
getFileChooserIcon | static Image getFileChooserIcon(int i)(Code) | | |
getFolderColumnValue | public Object getFolderColumnValue(int column)(Code) | | |
getFolderColumns | public ShellFolderColumnInfo[] getFolderColumns()(Code) | | |
getFolderType | public String getFolderType()(Code) | | The type of shell folder as a string |
getIShellFolder | public long getIShellFolder()(Code) | | Accessor for IShellFolder
|
getIcon | public Image getIcon(boolean getLargeIcon)(Code) | | The icon image used to display this shell folder |
getLinkLocation | public ShellFolder getLinkLocation()(Code) | | The shell folder linked to by this shell folder, or nullif this shell folder is not a link or is a broken or invalid link |
getNextPIDLEntry | native static long getNextPIDLEntry(long pIDL)(Code) | | |
getParentFile | public File getParentFile()(Code) | | The parent shell folder of this shell folder, null ifthere is no parent |
getParentIShellFolder | public long getParentIShellFolder()(Code) | | Get the parent ShellFolder's IShellFolder interface
|
getRelativePIDL | public long getRelativePIDL()(Code) | | Accessor for relative PIDL
|
getShell32Icon | static Image getShell32Icon(int iconID)(Code) | | Gets an icon from the Windows system icon list as an Image
|
getSystemIcon | static Image getSystemIcon(SystemIcon iconType)(Code) | | Gets an icon from the Windows system icon list as an Image
|
hasAttribute | public boolean hasAttribute(int attribute)(Code) | | Return whether the given attribute flag is set for this object
|
isDirectory | public boolean isDirectory()(Code) | | |
isFileSystem | public boolean isFileSystem()(Code) | | Whether this is a file system shell folder |
isHidden | public boolean isHidden()(Code) | | Whether this shell folder is marked as hidden |
isLink | public boolean isLink()(Code) | | Whether this shell folder is a link |
isSpecial | public boolean isSpecial()(Code) | | |
listFiles | public File[] listFiles(boolean includeHiddenFiles)(Code) | | An array of shell folders that are children of this shell folderobject. The array will be empty if the folder is empty. Returnsnull if this shellfolder does not denote a directory. |
releasePIDL | native static void releasePIDL(long pIDL)(Code) | | |
setIsPersonal | public void setIsPersonal()(Code) | | Marks this folder as being the My Documents (Personal) folder
|
writeReplace | protected Object writeReplace() throws java.io.ObjectStreamException(Code) | | This method is implemented to make sure that no instances
of ShellFolder are ever serialized. If isFileSystem() returns
true , then the object is representable with an instance of
java.io.File instead. If not, then the object depends
on native PIDL state and should not be serialized.
|
|
|
|