org.gnu.gnome

Class IconList


public class IconList
extends Canvas

Constructor Summary

IconList(Handle handle)
Construct a new IconList from a handle to a native resource.
IconList(int iconWidth, Adjustment adj, boolean isEditable, boolean isStaticText)
Construct a new IconList object.

Method Summary

void
append(String iconFilename, String text)
Append an icon to the end of the list.
void
clear()
Remove all icons from this list.
void
freeze()
Avoid excessive recomputes during insertion and deletion.
String
getIconFilename(int pos)
Retrieve the filename for an icon in the list.
int
getNumIcons()
Get the number of icons in this list
SelectionMode
getSelectionMode()
Retrieve the selection mode for this icon list.
static Type
getType()
Retrieve the runtime type used by the GLib library.
protected static int
gnome_icon_list_append(Handle gil, String iconFilename, String text)
protected static int
gnome_icon_list_append_pixbuf(Handle gil, Handle im, String iconFilename, String text)
protected static void
gnome_icon_list_clear(Handle gil)
protected static int
gnome_icon_list_find_icon_from_filename(Handle gil, String filename)
protected static void
gnome_icon_list_focus_icon(Handle gil, int idx)
protected static void
gnome_icon_list_freeze(Handle gil)
protected static int
gnome_icon_list_get_icon_at(Handle gil, int x, int y)
protected static String
gnome_icon_list_get_icon_filename(Handle gil, int idx)
protected static Handle
gnome_icon_list_get_icon_pixbuf_item(Handle gil, int idx)
protected static Handle
gnome_icon_list_get_icon_text_item(Handle gil, int idx)
protected static int
gnome_icon_list_get_items_per_line(Handle gil)
protected static int
gnome_icon_list_get_num_icons(Handle gil)
protected static Handle[]
gnome_icon_list_get_selection(Handle gil)
protected static int
gnome_icon_list_get_selection_mode(Handle gil)
protected static int
gnome_icon_list_get_type()
protected static int
gnome_icon_list_icon_is_visible(Handle gil, int idx)
protected static void
gnome_icon_list_insert(Handle gil, int idx, String iconFilename, String text)
protected static void
gnome_icon_list_insert_pixbuf(Handle gil, int idx, int im, String iconFilename, String text)
protected static void
gnome_icon_list_moveto(Handle gil, int idx, double yalign)
protected static Handle
gnome_icon_list_new(int iconWidth, Handle adj, int flags)
protected static void
gnome_icon_list_remove(Handle gil, int idx)
protected static void
gnome_icon_list_select_all(Handle gil)
protected static void
gnome_icon_list_select_icon(Handle gil, int idx)
protected static void
gnome_icon_list_set_col_spacing(Handle gil, int pixels)
protected static void
gnome_icon_list_set_hadjustment(Handle gil, Handle hadj)
protected static void
gnome_icon_list_set_icon_border(Handle gil, int pixels)
protected static void
gnome_icon_list_set_icon_width(Handle gil, int w)
protected static void
gnome_icon_list_set_row_spacing(Handle gil, int pixels)
protected static void
gnome_icon_list_set_selection_mode(Handle gil, int mode)
protected static void
gnome_icon_list_set_separators(Handle gil, String sep)
protected static void
gnome_icon_list_set_text_spacing(Handle gil, int pixels)
protected static void
gnome_icon_list_set_vadjustment(Handle gil, Handle vadj)
protected static void
gnome_icon_list_thaw(Handle gil)
protected static int
gnome_icon_list_unselect_all(Handle gil)
protected static void
gnome_icon_list_unselect_icon(Handle gil, int idx)
void
insert(int pos, String iconFilename, String text)
Insert an icon into this list.
void
remove(int pos)
Remove an icon from this list.
void
selectAll()
Select all icons in the list.
void
selectIcon(int pos)
Select an icon in the list.
void
setColumnSpacing(int pixels)
Set the column spacing for the list.
void
setIconBorderWidth(int pixels)
Set the icon border for the list.
void
setIconWidth(int width)
Set the icon width for the list.
void
setRowSpacing(int pixels)
Set the row spacing for the list.
void
setSelectionMode(SelectionMode mode)
Set the selection mode for this icon list.
void
setSeparators(String sep)
Set the text that serves as the separator for this list.
void
setTextSpacing(int pixels)
Set the text spacing for the list.
void
thaw()
Thaw a previous frozen list.
void
unselectAll()
Unselect all icons in the list.
void
unselectIcon(int pos)
Unselect an icon in the list.

Methods inherited from class org.gnu.gnome.Canvas

getCenterScrollRegion, getColor, getColorPixel, getCurrentCanvasItem, getCurrentItem, getDither, getFocusedCanvasItem, getFocusedItem, getGrabbedCanvasItem, getGrabbedItem, getItemAt, getPixelsPerUnit, getPixelsPerUnit, getRoot, getScrollOffsetX, getScrollOffsetY, getScrollX1, getScrollX1, getScrollX2, getScrollX2, getScrollY1, getScrollY1, getScrollY2, getScrollY2, getType, gnome_canvas_get_center_scroll_region, gnome_canvas_get_color, gnome_canvas_get_color_pixel, gnome_canvas_get_dither, gnome_canvas_get_item_at, gnome_canvas_get_scroll_offsets, gnome_canvas_get_scroll_region, gnome_canvas_get_type, gnome_canvas_new, gnome_canvas_new_aa, gnome_canvas_request_redraw, gnome_canvas_root, gnome_canvas_scroll_to, gnome_canvas_set_center_scroll_region, gnome_canvas_set_dither, gnome_canvas_set_pixels_per_unit, gnome_canvas_set_scroll_region, gnome_canvas_set_stipple_origin, gnome_canvas_update_now, gnome_canvas_window_to_world, gnome_canvas_world_to_window, requestRedraw, scrollTo, setCenterScrollRegion, setDither, setPixelsPerUnit, setScrollRegion, setScrollX1, setScrollX2, setScrollY1, setScrollY2, update, windowToWorldX, windowToWorldY, worldToWindowX, worldToWindowY

Constructor Details

IconList

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


IconList

public IconList(int iconWidth,
                Adjustment adj,
                boolean isEditable,
                boolean isStaticText)
Construct a new IconList object.

Method Details

append

public void append(String iconFilename,
                   String text)
Append an icon to the end of the list.

Parameters:
iconFilename - The file name for the icon to insert.
text - The text to display below the icon.


clear

public void clear()
Remove all icons from this list.


freeze

public void freeze()
Avoid excessive recomputes during insertion and deletion. You should call thaw once the activity is complete.


getIconFilename

public String getIconFilename(int pos)
Retrieve the filename for an icon in the list.

Parameters:
pos - The position of the icon to retrieve the filename.


getNumIcons

public int getNumIcons()
Get the number of icons in this list

Returns:
The number of icons in this list.


getSelectionMode

public SelectionMode getSelectionMode()
Retrieve the selection mode for this icon list.

Returns:
The selection mode for this list.


getType

public static Type getType()
Retrieve the runtime type used by the GLib library.
Overrides:
getType in interface Canvas


gnome_icon_list_append

protected static final int gnome_icon_list_append(Handle gil,
                                                  String iconFilename,
                                                  String text)


gnome_icon_list_append_pixbuf

protected static final int gnome_icon_list_append_pixbuf(Handle gil,
                                                         Handle im,
                                                         String iconFilename,
                                                         String text)


gnome_icon_list_clear

protected static final void gnome_icon_list_clear(Handle gil)


gnome_icon_list_find_icon_from_filename

protected static final int gnome_icon_list_find_icon_from_filename(Handle gil,
                                                                   String filename)


gnome_icon_list_focus_icon

protected static final void gnome_icon_list_focus_icon(Handle gil,
                                                       int idx)


gnome_icon_list_freeze

protected static final void gnome_icon_list_freeze(Handle gil)


gnome_icon_list_get_icon_at

protected static final int gnome_icon_list_get_icon_at(Handle gil,
                                                       int x,
                                                       int y)


gnome_icon_list_get_icon_filename

protected static final String gnome_icon_list_get_icon_filename(Handle gil,
                                                                int idx)


gnome_icon_list_get_icon_pixbuf_item

protected static final Handle gnome_icon_list_get_icon_pixbuf_item(Handle gil,
                                                                   int idx)


gnome_icon_list_get_icon_text_item

protected static final Handle gnome_icon_list_get_icon_text_item(Handle gil,
                                                                 int idx)


gnome_icon_list_get_items_per_line

protected static final int gnome_icon_list_get_items_per_line(Handle gil)


gnome_icon_list_get_num_icons

protected static final int gnome_icon_list_get_num_icons(Handle gil)


gnome_icon_list_get_selection

protected static final Handle[] gnome_icon_list_get_selection(Handle gil)


gnome_icon_list_get_selection_mode

protected static final int gnome_icon_list_get_selection_mode(Handle gil)


gnome_icon_list_get_type

protected static final int gnome_icon_list_get_type()


gnome_icon_list_icon_is_visible

protected static final int gnome_icon_list_icon_is_visible(Handle gil,
                                                           int idx)


gnome_icon_list_insert

protected static final void gnome_icon_list_insert(Handle gil,
                                                   int idx,
                                                   String iconFilename,
                                                   String text)


gnome_icon_list_insert_pixbuf

protected static final void gnome_icon_list_insert_pixbuf(Handle gil,
                                                          int idx,
                                                          int im,
                                                          String iconFilename,
                                                          String text)


gnome_icon_list_moveto

protected static final void gnome_icon_list_moveto(Handle gil,
                                                   int idx,
                                                   double yalign)


gnome_icon_list_new

protected static final Handle gnome_icon_list_new(int iconWidth,
                                                  Handle adj,
                                                  int flags)


gnome_icon_list_remove

protected static final void gnome_icon_list_remove(Handle gil,
                                                   int idx)


gnome_icon_list_select_all

protected static final void gnome_icon_list_select_all(Handle gil)


gnome_icon_list_select_icon

protected static final void gnome_icon_list_select_icon(Handle gil,
                                                        int idx)


gnome_icon_list_set_col_spacing

protected static final void gnome_icon_list_set_col_spacing(Handle gil,
                                                            int pixels)


gnome_icon_list_set_hadjustment

protected static final void gnome_icon_list_set_hadjustment(Handle gil,
                                                            Handle hadj)


gnome_icon_list_set_icon_border

protected static final void gnome_icon_list_set_icon_border(Handle gil,
                                                            int pixels)


gnome_icon_list_set_icon_width

protected static final void gnome_icon_list_set_icon_width(Handle gil,
                                                           int w)


gnome_icon_list_set_row_spacing

protected static final void gnome_icon_list_set_row_spacing(Handle gil,
                                                            int pixels)


gnome_icon_list_set_selection_mode

protected static final void gnome_icon_list_set_selection_mode(Handle gil,
                                                               int mode)


gnome_icon_list_set_separators

protected static final void gnome_icon_list_set_separators(Handle gil,
                                                           String sep)


gnome_icon_list_set_text_spacing

protected static final void gnome_icon_list_set_text_spacing(Handle gil,
                                                             int pixels)


gnome_icon_list_set_vadjustment

protected static final void gnome_icon_list_set_vadjustment(Handle gil,
                                                            Handle vadj)


gnome_icon_list_thaw

protected static final void gnome_icon_list_thaw(Handle gil)


gnome_icon_list_unselect_all

protected static final int gnome_icon_list_unselect_all(Handle gil)


gnome_icon_list_unselect_icon

protected static final void gnome_icon_list_unselect_icon(Handle gil,
                                                          int idx)


insert

public void insert(int pos,
                   String iconFilename,
                   String text)
Insert an icon into this list.

Parameters:
pos - The position for the insertion.
iconFilename - The file name for the icon to insert.
text - The text to display below the icon.


remove

public void remove(int pos)
Remove an icon from this list.

Parameters:
pos - The position of the icon to remove


selectAll

public void selectAll()
Select all icons in the list.


selectIcon

public void selectIcon(int pos)
Select an icon in the list.

Parameters:
pos - The position of the icon to select.


setColumnSpacing

public void setColumnSpacing(int pixels)
Set the column spacing for the list.

Parameters:
pixels - The column spacing for the list.


setIconBorderWidth

public void setIconBorderWidth(int pixels)
Set the icon border for the list.

Parameters:
pixels - The amount of pixels that surround the icons in the list.


setIconWidth

public void setIconWidth(int width)
Set the icon width for the list.

Parameters:
width - The width for icons in the list.


setRowSpacing

public void setRowSpacing(int pixels)
Set the row spacing for the list.

Parameters:
pixels - The row spacing for the list.


setSelectionMode

public void setSelectionMode(SelectionMode mode)
Set the selection mode for this icon list.

Parameters:
mode - The selection mode for this list.


setSeparators

public void setSeparators(String sep)
Set the text that serves as the separator for this list. TODO: I don't completely understand this method. Better javadocs are needed.


setTextSpacing

public void setTextSpacing(int pixels)
Set the text spacing for the list.

Parameters:
pixels - The text spacing for the list


thaw

public void thaw()
Thaw a previous frozen list.


unselectAll

public void unselectAll()
Unselect all icons in the list.


unselectIcon

public void unselectIcon(int pos)
Unselect an icon in the list.

Parameters:
pos - The position of the icon to unselect.