org.gnu.gnome
Class IconEntry

java.lang.Object
  extended by org.gnu.glib.Struct
      extended by org.gnu.glib.GObject
          extended by org.gnu.gtk.GtkObject
              extended by org.gnu.gtk.Widget
                  extended by org.gnu.gtk.Container
                      extended by org.gnu.gtk.Box
                          extended by org.gnu.gtk.VBox
                              extended by org.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 IconEntry getIconEntry(org.gnu.glib.Handle handle)
          Internal static factory method to be used by Java-Gnome only.
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.VBox
getVBox
 
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, getBooleanChildProperty, getBorderWidth, getChildProperty, getChildren, getIntChildProperty, getResizeMode, remove, removeListener, resizeChildren, setBooleanChildProperty, setBorderWidth, setChildProperty, setIntChildProperty, setResizeMode
 
Methods inherited from class org.gnu.gtk.Widget
activate, addAccelerator, addEvents, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, canActivateAccel, createContext, createLayout, draw, drawArea, drawArea, finish, getAccessible, getAllocation, getCanFocus, getColormap, getContext, getData, getDisplay, getDragData, getExtensionEvents, getModifierStyle, getName, getParent, getParentWindow, getPointer, getRootWindow, getScreen, getSensitive, getStyle, getToplevel, getWidget, getWindow, grabDefault, grabFocus, hasFocus, hasScreen, hide, hideAll, highlight, highlight, intersect, isAncestor, makeWidget, modifyStyle, popColormap, pushColormap, realize, removeAccelerator, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, reparent, setBackgroundColor, setBaseColor, setCanFocus, setColormap, setDoubleBuffered, setDragDestination, setDragIcon, setDragIconPixbuf, setDragIconStock, setDragSource, setEvents, setExtensionEvents, setFont, setForegroundColor, setMinimumSize, setName, setNoDragDestination, setNoDragSource, setSensitive, setTextColor, shapeCombineMask, show, showAll, unHighlight, unHighlight
 
Methods inherited from class org.gnu.gtk.GtkObject
destroy, sink
 
Methods inherited from class org.gnu.glib.GObject
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getFloatProperty, getGObjectFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getPixbufProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setPixbufProperty, setProperty, setStringProperty, thawNotify
 
Methods inherited from class org.gnu.glib.Struct
equals, getHandle, getNullHandle, hashCode
 
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

getIconEntry

public static IconEntry getIconEntry(org.gnu.glib.Handle handle)
Internal static factory method to be used by Java-Gnome only.


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)
Overrides:
getEventListenerClass in class org.gnu.gtk.Container

getEventType

public org.gnu.glib.EventType getEventType(java.lang.String signal)
Overrides:
getEventType in class org.gnu.gtk.Container