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

void
addDefaults()
Add the default Gnome icon directories.
void
addDirectory(String dir)
Add icons from the specified directory.
void
clear(boolean notShown)
Clear all icons (even the icons that are not shown if notShown is true.
String
getIcon(boolean fullPath)
Get the filename of the selected icon.
static Type
getType()
Retrieve the runtime type used by the GLib library.
protected static void
gnome_icon_selection_add_defaults(Handle gis)
protected static void
gnome_icon_selection_add_directory(Handle gis, String dir)
protected static void
gnome_icon_selection_clear(Handle gis, boolean notShown)
protected static Handle
gnome_icon_selection_get_box(Handle gis)
protected static Handle
gnome_icon_selection_get_gil(Handle gis)
protected static String
gnome_icon_selection_get_icon(Handle gis, boolean fullPath)
protected static int
gnome_icon_selection_get_type()
protected static Handle
gnome_icon_selection_new()
protected static void
gnome_icon_selection_select_icon(Handle gis, String filename)
protected static void
gnome_icon_selection_show_icons(Handle gis)
protected static void
gnome_icon_selection_stop_loading(Handle gis)
void
selectIcon(String filename)
Select the icon specified by the filename provided.
void
showIcons()
Load and display the icons.

Constructor Details

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 Details

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.


getType

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


gnome_icon_selection_add_defaults

protected static final void gnome_icon_selection_add_defaults(Handle gis)


gnome_icon_selection_add_directory

protected static final void gnome_icon_selection_add_directory(Handle gis,
                                                               String dir)


gnome_icon_selection_clear

protected static final void gnome_icon_selection_clear(Handle gis,
                                                       boolean notShown)


gnome_icon_selection_get_box

protected static final Handle gnome_icon_selection_get_box(Handle gis)


gnome_icon_selection_get_gil

protected static final Handle gnome_icon_selection_get_gil(Handle gis)


gnome_icon_selection_get_icon

protected static final String gnome_icon_selection_get_icon(Handle gis,
                                                            boolean fullPath)


gnome_icon_selection_get_type

protected static final int gnome_icon_selection_get_type()


gnome_icon_selection_new

protected static final Handle gnome_icon_selection_new()


gnome_icon_selection_select_icon

protected static final void gnome_icon_selection_select_icon(Handle gis,
                                                             String filename)


gnome_icon_selection_show_icons

protected static final void gnome_icon_selection_show_icons(Handle gis)


gnome_icon_selection_stop_loading

protected static final void gnome_icon_selection_stop_loading(Handle gis)


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.