org.gnu.gnome
Class IconSelection

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.IconSelection

public class IconSelection
extends org.gnu.gtk.VBox


Constructor Summary
IconSelection()
          Construct a new IconSelection object.
IconSelection(org.gnu.glib.Handle handle)
          Construct a new IconSelection from a handle to a native resource.
 
Method Summary
 void addDefaults()
          Add the default Gnome icon directories.
 void addDirectory(java.lang.String dir)
          Add icons from the specified directory.
 void clear(boolean notShown)
          Clear all icons (even the icons that are not shown if notShown is true.
 java.lang.String getIcon(boolean fullPath)
          Get the filename of the selected icon.
static org.gnu.glib.Type getType()
          Retrieve the runtime type used by the GLib library.
 void selectIcon(java.lang.String filename)
          Select the icon specified by the filename provided.
 void showIcons()
          Load and display the 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, getEventListenerClass, getEventType, 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

IconSelection

public IconSelection()
Construct a new IconSelection object.


IconSelection

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

Method Detail

addDefaults

public void addDefaults()
Add the default Gnome icon directories.


addDirectory

public void addDirectory(java.lang.String dir)
Add icons from the specified directory.

Parameters:
dir - The director to add.

showIcons

public void showIcons()
Load and display the icons.


clear

public void clear(boolean notShown)
Clear all icons (even the icons that are not shown if notShown is true.


getIcon

public java.lang.String getIcon(boolean fullPath)
Get the filename of the selected icon. If fullPath is true the full path of the filename is returned.


selectIcon

public void selectIcon(java.lang.String filename)
Select the icon specified by the filename provided. The filename is not the full path, just the last component.


getType

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