org.gnu.gnome
Class IconEntry

java.lang.Object
  extended byorg.gnu.glib.GObject
      extended byorg.gnu.gtk.GtkObject
          extended byorg.gnu.gtk.Widget
              extended byorg.gnu.gtk.Container
                  extended byorg.gnu.gtk.Box
                      extended byorg.gnu.gtk.VBox
                          extended byorg.gnu.gnome.IconEntry

public class IconEntry
extends org.gnu.gtk.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(org.gnu.glib.Handle handle)
          Construct a new IconEntry from a handle to a native resource.
IconEntry(java.lang.String historyId, java.lang.String dialogTitle)
          Construct a new IconEntry
 
Method Summary
 void addListener(IconEntryListener listener)
          Register an object to handle IconEntry events.
 java.lang.Class getEventListenerClass(java.lang.String signal)
           
 org.gnu.glib.EventType getEventType(java.lang.String signal)
           
 java.lang.String getFilename()
          Retrieve the filename of the icon selected
static org.gnu.glib.Type getType()
          Retrieve the runtime type used by the GLib library.
 void removeListener(IconEntryListener listener)
          Removes a listener
 void setBrowseDialogTitle(java.lang.String browseDialogTitle)
          Set the title for the Browse Dialog.
 void setFilename(java.lang.String filename)
          Set the filename of an icon.
 void setHistoryId(java.lang.String id)
          Set the history id
 void setMaxSaved(int maxSaved)
          Sets the maximum number of save entries in the browse dialog.
 void setSubdirectory(java.lang.String subdir)
          Set the subdirectory in which to look for icons.
 
Methods inherited from class org.gnu.gtk.Box
getHomogeneous, getSpacing, packEnd, packEnd, packStart, packStart, reorderChild, setHomogeneous, setSpacing
 
Methods inherited from class org.gnu.gtk.Container
add, addListener, getBorderWidth, getChildren, getResizeMode, remove, removeListener, resizeChildren, setBorderWidth, setResizeMode
 
Methods inherited from class org.gnu.gtk.Widget
activate, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, canActivateAccel, createContext, createLayout, destroy, draw, drawArea, drawArea, finish, getAccessible, getColormap, getContext, getData, getDisplay, getModifierStyle, getName, getParent, getParentWindow, getPointer, getRootWindow, getScreen, getSensitive, getStyle, getToplevel, getWindow, grabDefault, grabFocus, hasFocus, hasScreen, hide, hideAll, highlight, intersect, isAncestor, makeWidget, modifyStyle, popColormap, pushColormap, realize, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, reparent, setBackgroundColor, setBaseColor, setColormap, setDoubleBuffered, setDragDestination, setDragIcon, setDragIconPixbuf, setDragIconStock, setDragSource, setFont, setForegroundColor, setMinimumSize, setName, setNoDragDestination, setNoDragSource, setSensitive, setTextColor, shapeCombineMask, show, showAll, unHighlight
 
Methods inherited from class org.gnu.gtk.GtkObject
sink
 
Methods inherited from class org.gnu.glib.GObject
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, equals, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getFloatProperty, getGObjectFromHandle, getHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getNullHandle, getPixbufProperty, getProperty, getStringProperty, hashCode, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setPixbufProperty, setProperty, setStringProperty, thawNotify
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IconEntry

public IconEntry(java.lang.String historyId,
                 java.lang.String dialogTitle)
Construct a new IconEntry


IconEntry

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

Method Detail

setSubdirectory

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


getFilename

public java.lang.String getFilename()
Retrieve the filename of the icon selected


setFilename

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


getType

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


setBrowseDialogTitle

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


setHistoryId

public void setHistoryId(java.lang.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 -

addListener

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

See Also:
IconEntryListener

removeListener

public void removeListener(IconEntryListener listener)
Removes a listener

See Also:
addListener(IconEntryListener)

getEventListenerClass

public java.lang.Class getEventListenerClass(java.lang.String signal)

getEventType

public org.gnu.glib.EventType getEventType(java.lang.String signal)