append
public void append(String iconFilename,
String text)
Append an icon to the end of the list.
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.
pos
- The position of the icon to retrieve the filename.
getNumIcons
public int getNumIcons()
Get the number of icons in this list
- The number of icons in this list.
getSelectionMode
public SelectionMode getSelectionMode()
Retrieve the selection mode for this icon list.
- The selection mode for this list.
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
- getType in interface Canvas
insert
public void insert(int pos,
String iconFilename,
String text)
Insert an icon into this list.
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.
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.
pos
- The position of the icon to select.
setColumnSpacing
public void setColumnSpacing(int pixels)
Set the column spacing for the list.
pixels
- The column spacing for the list.
setIconBorderWidth
public void setIconBorderWidth(int pixels)
Set the icon border for the list.
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.
width
- The width for icons in the list.
setRowSpacing
public void setRowSpacing(int pixels)
Set the row spacing for the list.
pixels
- The row spacing for the list.
setSelectionMode
public void setSelectionMode(SelectionMode mode)
Set the selection mode for this icon list.
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.
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.
pos
- The position of the icon to unselect.