org.gnu.gnome

Class IconSelection

public class IconSelection extends VBox

Deprecated: This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. This class may have an equivalent in java-gnome 4.0; have a look for org.gnome.gnome.IconSelection.

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()

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Construct a new IconSelection object.

IconSelection

public IconSelection(Handle handle)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Construct a new IconSelection from a handle to a native resource.

Method Detail

addDefaults

public void addDefaults()

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Add the default Gnome icon directories.

addDirectory

public void addDirectory(String dir)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Add icons from the specified directory.

Parameters: dir The director to add.

clear

public void clear(boolean notShown)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Clear all icons (even the icons that are not shown if notShown is true.

getIcon

public String getIcon(boolean fullPath)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

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)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Internal static factory method to be used by Java-Gnome only.

getType

public static Type getType()

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Retrieve the runtime type used by the GLib library.

selectIcon

public void selectIcon(String filename)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Select the icon specified by the filename provided. The filename is not the full path, just the last component.

showIcons

public void showIcons()

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Load and display the icons.