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(String historyId, String dialogTitle)
Construct a new IconEntry
IconEntry(Handle handle)
Construct a new IconEntry from a handle to a native resource.
Method Summary
voidaddListener(IconEntryListener listener)
Register an object to handle IconEntry events.
ClassgetEventListenerClass(String signal)
EventTypegetEventType(String signal)
StringgetFilename()
Retrieve the filename of the icon selected
static IconEntrygetIconEntry(Handle handle)
Internal static factory method to be used by Java-Gnome only.
static TypegetType()
Retrieve the runtime type used by the GLib library.
voidremoveListener(IconEntryListener listener)
Removes a listener
voidsetBrowseDialogTitle(String browseDialogTitle)
Set the title for the Browse Dialog.
voidsetFilename(String filename)
Set the filename of an icon.
voidsetHistoryId(String id)
Set the history id
voidsetMaxSaved(int maxSaved)
Sets the maximum number of save entries in the browse dialog.
voidsetSubdirectory(String subdir)
Set the subdirectory in which to look for icons.

Constructor Detail

IconEntry

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

IconEntry

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

Method Detail

addListener

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

See Also: IconEntryListener

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

See Also: addListener

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.