Java Doc for Win32ShellFolder2.java in  » 6.0-JDK-Platform » windows » sun » awt » shell » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Platform » windows » sun.awt.shell 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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

Field Summary
final public static  intALTSTARTUP
    
final public static  intAPPDATA
    
final public static  intATTRIB_BROWSABLE
    
final public static  intATTRIB_CANCOPY
    
final public static  intATTRIB_CANDELETE
    
final public static  intATTRIB_CANLINK
    
final public static  intATTRIB_CANMOVE
    
final public static  intATTRIB_CANRENAME
    
final public static  intATTRIB_COMPRESSED
    
final public static  intATTRIB_DROPTARGET
    
final public static  intATTRIB_FILESYSANCESTOR
    
final public static  intATTRIB_FILESYSTEM
    
final public static  intATTRIB_FOLDER
    
final public static  intATTRIB_GHOSTED
    
final public static  intATTRIB_HASPROPSHEET
    
final public static  intATTRIB_HASSUBFOLDER
    
final public static  intATTRIB_HIDDEN
    
final public static  intATTRIB_LINK
    
final public static  intATTRIB_NEWCONTENT
    
final public static  intATTRIB_NONENUMERATED
    
final public static  intATTRIB_READONLY
    
final public static  intATTRIB_REMOVABLE
    
final public static  intATTRIB_SHARE
    
final public static  intATTRIB_VALIDATE
    
final public static  intBITBUCKET
    
final public static  intCOMMON_ALTSTARTUP
    
final public static  intCOMMON_DESKTOPDIRECTORY
    
final public static  intCOMMON_FAVORITES
    
final public static  intCOMMON_PROGRAMS
    
final public static  intCOMMON_STARTMENU
    
final public static  intCOMMON_STARTUP
    
final public static  intCONTROLS
    
final public static  intCOOKIES
    
final public static  intDESKTOP
    
final public static  intDESKTOPDIRECTORY
    
final public static  intDRIVES
    
final public static  intFAVORITES
    
final public static  intFONTS
    
final public static  intHISTORY
    
final public static  intINTERNET
    
final public static  intINTERNET_CACHE
    
final public static  intNETHOOD
    
final public static  intNETWORK
    
final public static  intPERSONAL
    
final public static  intPRINTERS
    
final public static  intPRINTHOOD
    
final public static  intPROGRAMS
    
final public static  intRECENT
    
final public static  intSENDTO
    
final public static  intSHGDN_FORADDRESSBAR
    
final public static  intSHGDN_FORPARSING
    
final public static  intSHGDN_INCLUDE_NONFILESYS
    
final public static  intSHGDN_INFOLDER
    
final public static  intSHGDN_NORMAL
    
final public static  intSTARTMENU
    
final public static  intSTARTUP
    
final public static  intTEMPLATES
    
 FolderDisposerdisposer
    
static  int[]fileChooserBitmapBits
    
static  Image[]fileChooserIcons
    

Constructor Summary
 Win32ShellFolder2(int csidl)
     Create a system special shell folder, such as the desktop or Network Neighborhood.
 Win32ShellFolder2(Win32ShellFolder2 parent, long pIShellFolder, long relativePIDL, String path)
    
 Win32ShellFolder2(Win32ShellFolder2 parent, long relativePIDL)
    

Method Summary
public  intcompareTo(File file2)
     Compares this object with the specified object for order.
native static  longcopyFirstPIDLEntry(long pIDL)
    
protected  voiddispose()
     Finalizer to clean up any COM objects or PIDLs used by this object.
public  booleanequals(Object o)
    
public  FilegetCanonicalFile()
     Returns the canonical form of this abstract pathname.
 Win32ShellFolder2getChildByPath(String filePath)
    
public  Win32ShellFolder2getDesktop()
    
public  longgetDesktopIShellFolder()
    
public  StringgetDisplayName()
    
public  StringgetExecutableType()
    
native public static  int[]getFileChooserBitmapBits()
    
static  ImagegetFileChooserIcon(int i)
    
native static  StringgetFileSystemPath(int csidl)
    
public  ObjectgetFolderColumnValue(int column)
    
public  ShellFolderColumnInfo[]getFolderColumns()
    
public  StringgetFolderType()
    
public  longgetIShellFolder()
    
public  ImagegetIcon(boolean getLargeIcon)
    
public  ShellFoldergetLinkLocation()
    
native static  longgetNextPIDLEntry(long pIDL)
    
public  FilegetParentFile()
    
public  longgetParentIShellFolder()
    
public  longgetRelativePIDL()
    
static  ImagegetShell32Icon(int iconID)
    
static  ImagegetSystemIcon(SystemIcon iconType)
    
public  booleanhasAttribute(int attribute)
    
public  booleanisDirectory()
    
public  booleanisFileSystem()
    
public  booleanisHidden()
    
public  booleanisLink()
    
public  booleanisSpecial()
    
public  File[]listFiles(boolean includeHiddenFiles)
     An array of shell folders that are children of this shell folderobject.
 longparseDisplayName(String name)
    
native static  voidreleasePIDL(long pIDL)
    
public  voidsetIsPersonal()
    
protected  ObjectwriteReplace()
     This method is implemented to make sure that no instances of ShellFolder are ever serialized.

Field Detail
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)



fileChooserIcons
static Image[] fileChooserIcons(Code)




Constructor Detail
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




Method Detail
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



getCanonicalFile
public File getCanonicalFile() throws IOException(Code)
Returns the canonical form of this abstract pathname. Equivalent to new Win32ShellFolder2(getParentFile(), this. java.io.File.getCanonicalPath ()).
See Also:   java.io.File.getCanonicalFile



getChildByPath
Win32ShellFolder2 getChildByPath(String filePath)(Code)
Look for (possibly special) child folder by it's path The child shellfolder, or null if not found.



getDesktop
public Win32ShellFolder2 getDesktop()(Code)
Helper function to return the desktop



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)



getFileSystemPath
native static String getFileSystemPath(int csidl) throws IOException(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.



parseDisplayName
long parseDisplayName(String name) throws FileNotFoundException(Code)



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.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.