org.gnu.gnome

Class IconEntry


public class IconEntry
extends VBox

A GnomeIconEntry is a button that pops up a window displaying a collection of icons. The user can select one of the icons found in /usr/share/pixmaps or browse the file system to find icons in other directories. The pull-down list of directory names maintains a history of previously opened directories.

Constructor Summary

IconEntry(Handle handle)
Construct a new IconEntry from a handle to a native resource.
IconEntry(String historyId, String dialogTitle)
Construct a new IconEntry

Method Summary

void
addListener(IconEntryListener listener)
Register an object to handle IconEntry events.
Class
getEventListenerClass(String signal)
EventType
getEventType(String signal)
String
getFilename()
Retrieve the filename of the icon selected
static IconEntry
getIconEntry(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
removeListener(IconEntryListener listener)
Removes a listener
void
setBrowseDialogTitle(String browseDialogTitle)
Set the title for the Browse Dialog.
void
setFilename(String filename)
Set the filename of an icon.
void
setHistoryId(String id)
Set the history id
void
setMaxSaved(int maxSaved)
Sets the maximum number of save entries in the browse dialog.
void
setSubdirectory(String subdir)
Set the subdirectory in which to look for icons.

Constructor Details

IconEntry

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

IconEntry

public IconEntry(String historyId,
                 String dialogTitle)
Construct a new IconEntry

Method Details

addListener

public void addListener(IconEntryListener listener)
Register an object to handle IconEntry events.

getEventListenerClass

public Class getEventListenerClass(String signal)

getEventType

public EventType getEventType(String signal)

getFilename

public String getFilename()
Retrieve the filename of the icon selected

getIconEntry

public static IconEntry getIconEntry(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.

removeListener

public void removeListener(IconEntryListener listener)
Removes a listener

setBrowseDialogTitle

public void setBrowseDialogTitle(String browseDialogTitle)
Set the title for the Browse Dialog.

setFilename

public void setFilename(String filename)
Set the filename of an icon.

setHistoryId

public void setHistoryId(String id)
Set the history id

setMaxSaved

public void setMaxSaved(int maxSaved)
Sets the maximum number of save entries in the browse dialog.
Parameters:
maxSaved -

setSubdirectory

public void setSubdirectory(String subdir)
Set the subdirectory in which to look for icons.