com.jniwrapper.win32.shell
Class SHFileInfo

java.lang.Object
  extended bycom.jniwrapper.Parameter
      extended bycom.jniwrapper.Structure
          extended bycom.jniwrapper.win32.shell.SHFileInfo
All Implemented Interfaces:
com.jniwrapper.AlignmentAwareParameter, com.jniwrapper.CompositeParameter

public class SHFileInfo
extends com.jniwrapper.Structure

SHFileInfo class represents SHFILEINFO structure, both ANSI and Unicode kinds.


Field Summary
static int SHGFI_ATTR_SPECIFIED
           
static int SHGFI_ATTRIBUTES
           
static int SHGFI_DISPLAYNAME
           
static int SHGFI_EXETYPE
           
static int SHGFI_ICON
           
static int SHGFI_ICONLOCATION
           
static int SHGFI_LARGEICON
           
static int SHGFI_LINKOVERLAY
           
static int SHGFI_OPENICON
           
static int SHGFI_PIDL
           
static int SHGFI_SELECTED
           
static int SHGFI_SHELLICONSIZE
           
static int SHGFI_SMALLICON
           
static int SHGFI_SYSICONINDEX
           
static int SHGFI_TYPENAME
           
static int SHGFI_USEFILEATTRIBUTES
           
 
Fields inherited from class com.jniwrapper.Structure
f
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getDisplayName()
          Returns display name.
static SHFileInfo getFileInfo(Handle handle, int fileAttributes, int flags)
          Retrieves file information.
static SHFileInfo getFileInfo(java.lang.String path, int flags)
          Retrieves file information.
static SHFileInfo getFileInfo(java.lang.String path, int fileAttributes, int flags)
          Retrieves file information.
 Icon getIcon()
          Returns shell icon.
 int getIconIndex()
          Returns icon index.
 
Methods inherited from class com.jniwrapper.Structure
a, a, acceptIOPerformer, addMembers, computeLength, equals, getAlignmentRequirement, getDebugInfo, getFirstMemberSize, getLength, getMember, getMembers, getOffsets, init, init, initFrom, pop, push, read, setDataBuffer, write
 
Methods inherited from class com.jniwrapper.Parameter
, a, asReturnValue, b, dataBufferAssigned, getAlignedLength, getDataBuffer, getDataBufferOffset, hashCode, indent, read, read, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHGFI_ICON

public static final int SHGFI_ICON
See Also:
Constant Field Values

SHGFI_DISPLAYNAME

public static final int SHGFI_DISPLAYNAME
See Also:
Constant Field Values

SHGFI_TYPENAME

public static final int SHGFI_TYPENAME
See Also:
Constant Field Values

SHGFI_ATTRIBUTES

public static final int SHGFI_ATTRIBUTES
See Also:
Constant Field Values

SHGFI_ICONLOCATION

public static final int SHGFI_ICONLOCATION
See Also:
Constant Field Values

SHGFI_EXETYPE

public static final int SHGFI_EXETYPE
See Also:
Constant Field Values

SHGFI_SYSICONINDEX

public static final int SHGFI_SYSICONINDEX
See Also:
Constant Field Values

SHGFI_LINKOVERLAY

public static final int SHGFI_LINKOVERLAY
See Also:
Constant Field Values

SHGFI_SELECTED

public static final int SHGFI_SELECTED
See Also:
Constant Field Values

SHGFI_ATTR_SPECIFIED

public static final int SHGFI_ATTR_SPECIFIED
See Also:
Constant Field Values

SHGFI_LARGEICON

public static final int SHGFI_LARGEICON
See Also:
Constant Field Values

SHGFI_SMALLICON

public static final int SHGFI_SMALLICON
See Also:
Constant Field Values

SHGFI_OPENICON

public static final int SHGFI_OPENICON
See Also:
Constant Field Values

SHGFI_SHELLICONSIZE

public static final int SHGFI_SHELLICONSIZE
See Also:
Constant Field Values

SHGFI_PIDL

public static final int SHGFI_PIDL
See Also:
Constant Field Values

SHGFI_USEFILEATTRIBUTES

public static final int SHGFI_USEFILEATTRIBUTES
See Also:
Constant Field Values
Method Detail

getIcon

public Icon getIcon()
Returns shell icon.

Returns:
icon

getIconIndex

public int getIconIndex()
Returns icon index.

Returns:
icon index

getDisplayName

public java.lang.String getDisplayName()
Returns display name.

Returns:
display name

clone

public java.lang.Object clone()

getFileInfo

public static SHFileInfo getFileInfo(java.lang.String path,
                                     int fileAttributes,
                                     int flags)
Retrieves file information.

Parameters:
path - is a file path
fileAttributes -
flags -
Returns:
SHFileInfo

getFileInfo

public static SHFileInfo getFileInfo(Handle handle,
                                     int fileAttributes,
                                     int flags)
Retrieves file information. Should be used for system folders.

Parameters:
handle -
fileAttributes -
flags - flags used to fill result structure. NOTE: SHFileInfo.SHGFI_PIDL added automatically
Returns:

getFileInfo

public static SHFileInfo getFileInfo(java.lang.String path,
                                     int flags)
Retrieves file information.

Parameters:
path - is a file path
flags -
Returns:
SHFileInfo