public class SelectIconDialog
extends java.lang.Object
| Constructor and Description |
|---|
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 |
| Modifier and Type | Method and Description |
|---|---|
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
|
public SelectIconDialog()
SelectIconDialogpublic SelectIconDialog(java.io.File iconFile)
SelectIconDialog initialized by the file that contains iconsiconFile - The file that contains iconspublic SelectIconDialog(java.io.File iconFile,
int iconIndex)
SelectIconDialog initialized by the file that contains iconsiconFile - The file that contains iconsiconIndex - Index of the icon in the file specified by the iconFile parameter
that will be selected by defaultpublic SelectIconDialog(java.awt.Window owner)
SelectIconDialogowner - Parent window for the dialogpublic SelectIconDialog(java.awt.Window owner,
java.io.File iconFile)
SelectIconDialog initialized by the file that contains iconsowner - Parent window for the dialogiconFile - The file that contains iconspublic SelectIconDialog(java.awt.Window owner,
java.io.File iconFile,
int iconIndex)
SelectIconDialog initialized by the file that contains iconsowner - Parent window for the dialogiconFile - The file that contains iconsiconIndex - Index of the icon in the file specified by the iconFile parameter
that will be selected by defaultpublic void setIconFile(java.io.File value)
value - Value that specifies file with icons that will be displayed in the dialogpublic java.io.File getIconFile()
public void setIconIndex(int value)
value - Index of the selected iconpublic int getIconIndex()
public ShellIcon getShellIcon()
public void setOwner(java.awt.Window value)
value - The parent window for the dialogpublic java.awt.Window getOwner()
public boolean execute()