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.
protected void
fireIconEntryEvent(IconEntryEvent event)
Class
getEventListenerClass(String signal)
EventType
getEventType(String signal)
String
getFilename()
Retrieve the filename of the icon selected
static Type
getType()
Retrieve the runtime type used by the GLib library.
protected static String
gnome_icon_entry_get_filename(Handle ientry)
protected static int
gnome_icon_entry_get_type()
protected static Handle
gnome_icon_entry_new(String historyId, String browserDialogTitle)
protected static Handle
gnome_icon_entry_pick_dialog(Handle ientry)
protected static void
gnome_icon_entry_set_browse_dialog_title(Handle ientry, String browseDialogTitle)
protected static boolean
gnome_icon_entry_set_filename(Handle ientry, String filename)
protected static void
gnome_icon_entry_set_history_id(Handle ientry, String historyId)
protected static void
gnome_icon_entry_set_max_saved(Handle ientry, int max)
protected static void
gnome_icon_entry_set_pixmap_subdir(Handle ientry, String subdir)
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.

See Also:
IconEntryListener


fireIconEntryEvent

protected void fireIconEntryEvent(IconEntryEvent event)


getEventListenerClass

public Class getEventListenerClass(String signal)


getEventType

public EventType getEventType(String signal)


getFilename

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


getType

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


gnome_icon_entry_get_filename

protected static final String gnome_icon_entry_get_filename(Handle ientry)


gnome_icon_entry_get_type

protected static final int gnome_icon_entry_get_type()


gnome_icon_entry_new

protected static final Handle gnome_icon_entry_new(String historyId,
                                                   String browserDialogTitle)


gnome_icon_entry_pick_dialog

protected static final Handle gnome_icon_entry_pick_dialog(Handle ientry)


gnome_icon_entry_set_browse_dialog_title

protected static final void gnome_icon_entry_set_browse_dialog_title(Handle ientry,
                                                                     String browseDialogTitle)


gnome_icon_entry_set_filename

protected static final boolean gnome_icon_entry_set_filename(Handle ientry,
                                                             String filename)


gnome_icon_entry_set_history_id

protected static final void gnome_icon_entry_set_history_id(Handle ientry,
                                                            String historyId)


gnome_icon_entry_set_max_saved

protected static final void gnome_icon_entry_set_max_saved(Handle ientry,
                                                           int max)


gnome_icon_entry_set_pixmap_subdir

protected static final void gnome_icon_entry_set_pixmap_subdir(Handle ientry,
                                                               String subdir)


removeListener

public void removeListener(IconEntryListener listener)
Removes a listener

See Also:
addListener(IconEntryListener)


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.