org.gnu.gnome

Class IconSelection

public class IconSelection extends VBox

Constructor Summary
IconSelection()
Construct a new IconSelection object.
IconSelection(Handle handle)
Construct a new IconSelection from a handle to a native resource.
Method Summary
voidaddDefaults()
Add the default Gnome icon directories.
voidaddDirectory(String dir)
Add icons from the specified directory.
voidclear(boolean notShown)
Clear all icons (even the icons that are not shown if notShown is true.
StringgetIcon(boolean fullPath)
Get the filename of the selected icon.
static IconSelectiongetIconSelection(Handle handle)
Internal static factory method to be used by Java-Gnome only.
static TypegetType()
Retrieve the runtime type used by the GLib library.
voidselectIcon(String filename)
Select the icon specified by the filename provided.
voidshowIcons()
Load and display the icons.

Constructor Detail

IconSelection

public IconSelection()
Construct a new IconSelection object.

IconSelection

public IconSelection(Handle handle)
Construct a new IconSelection from a handle to a native resource.

Method Detail

addDefaults

public void addDefaults()
Add the default Gnome icon directories.

addDirectory

public void addDirectory(String dir)
Add icons from the specified directory.

Parameters: dir The director to add.

clear

public void clear(boolean notShown)
Clear all icons (even the icons that are not shown if notShown is true.

getIcon

public String getIcon(boolean fullPath)
Get the filename of the selected icon. If fullPath is true the full path of the filename is returned.

getIconSelection

public static IconSelection getIconSelection(Handle handle)
Internal static factory method to be used by Java-Gnome only.

getType

public static Type getType()
Retrieve the runtime type used by the GLib library.

selectIcon

public void selectIcon(String filename)
Select the icon specified by the filename provided. The filename is not the full path, just the last component.

showIcons

public void showIcons()
Load and display the icons.