com.jniwrapper.win32.ui.dialogs
Class SelectIconDialog

java.lang.Object
  extended by com.jniwrapper.win32.ui.dialogs.SelectIconDialog

public class SelectIconDialog
extends java.lang.Object

This class provides functionality that allows to display a dialog box that allows the user to choose an icon from the selection available embedded in a resource such as an executable or DLL file


Constructor Summary
SelectIconDialog()
          Creates instance of the SelectIconDialog
SelectIconDialog(java.io.File iconFile)
          Creates instance of the SelectIconDialog initialized by the file that contains icons
SelectIconDialog(java.io.File iconFile, int iconIndex)
          Creates instance of the SelectIconDialog initialized by the file that contains icons
SelectIconDialog(java.awt.Window owner)
          Creates instance of the SelectIconDialog
SelectIconDialog(java.awt.Window owner, java.io.File iconFile)
          Creates instance of the SelectIconDialog initialized by the file that contains icons
SelectIconDialog(java.awt.Window owner, java.io.File iconFile, int iconIndex)
          Creates instance of the SelectIconDialog initialized by the file that contains icons
 
Method Summary
 boolean execute()
          Displays dialog box
 java.io.File getIconFile()
          Returns value that specifies file with icons that will be displayed in the dialog
 int getIconIndex()
          Returns index of the selected icon
 java.awt.Window getOwner()
          Returns the parent window for the dialog.
 ShellIcon getShellIcon()
          Returns selected icon
 void setIconFile(java.io.File value)
          Sets value that specifies file with icons that will be displayed in the dialog
 void setIconIndex(int value)
          Sets index of the selected icon
 void setOwner(java.awt.Window value)
          Sets the parent window for the dialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectIconDialog

public SelectIconDialog()
Creates instance of the SelectIconDialog


SelectIconDialog

public SelectIconDialog(java.io.File iconFile)
Creates instance of the SelectIconDialog initialized by the file that contains icons

Parameters:
iconFile - The file that contains icons

SelectIconDialog

public SelectIconDialog(java.io.File iconFile,
                        int iconIndex)
Creates instance of the SelectIconDialog initialized by the file that contains icons

Parameters:
iconFile - The file that contains icons
iconIndex - Index of the icon in the file specified by the iconFile parameter that will be selected by default

SelectIconDialog

public SelectIconDialog(java.awt.Window owner)
Creates instance of the SelectIconDialog

Parameters:
owner - Parent window for the dialog

SelectIconDialog

public SelectIconDialog(java.awt.Window owner,
                        java.io.File iconFile)
Creates instance of the SelectIconDialog initialized by the file that contains icons

Parameters:
owner - Parent window for the dialog
iconFile - The file that contains icons

SelectIconDialog

public SelectIconDialog(java.awt.Window owner,
                        java.io.File iconFile,
                        int iconIndex)
Creates instance of the SelectIconDialog initialized by the file that contains icons

Parameters:
owner - Parent window for the dialog
iconFile - The file that contains icons
iconIndex - Index of the icon in the file specified by the iconFile parameter that will be selected by default
Method Detail

setIconFile

public void setIconFile(java.io.File value)
Sets value that specifies file with icons that will be displayed in the dialog

Parameters:
value - Value that specifies file with icons that will be displayed in the dialog

getIconFile

public java.io.File getIconFile()
Returns value that specifies file with icons that will be displayed in the dialog

Returns:
File with icons

setIconIndex

public void setIconIndex(int value)
Sets index of the selected icon

Parameters:
value - Index of the selected icon

getIconIndex

public int getIconIndex()
Returns index of the selected icon

Returns:
Index of the selected icon

getShellIcon

public ShellIcon getShellIcon()
Returns selected icon

Returns:
Selected icon

setOwner

public void setOwner(java.awt.Window value)
Sets the parent window for the dialog

Parameters:
value - The parent window for the dialog

getOwner

public java.awt.Window getOwner()
Returns the parent window for the dialog.

Returns:
The parent window for the dialog.

execute

public boolean execute()
Displays dialog box

Returns:
true if the icon was selected. Otherwise false.