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 IconSelection
getIconSelection(Handle handle)
Internal static factory method to be used by Java-Gnome only.
static Type
getType()
Retrieve the runtime type used by the GLib library.
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.

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.