|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gnu.glib.GObject | +--org.gnu.gtk.GtkObject | +--org.gnu.gtk.Widget | +--org.gnu.gtk.Container | +--org.gnu.gtk.Layout | +--org.gnu.gnome.Canvas | +--org.gnu.gnome.IconList
Constructor Summary | |
IconList(int 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(java.lang.String iconFilename,
java.lang.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. |
java.lang.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. |
void |
insert(int pos,
java.lang.String iconFilename,
java.lang.String text)
Insert an icon into this list. |
void |
remove(int pos)
Remove an icon from this 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(java.lang.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 |
getColor, getColorPixel, getCurrentCanvasItem, getDither, getFocusedCanvasItem, getGrabbedCanvasItem, getItemAt, getPixelsPerUnit, getRoot, getScrollOffsetX, getScrollOffsetY, getScrollX1, getScrollX2, getScrollY1, getScrollY2, scrollTo, setDither, setPixelsPerUnit, setScrollRegion, setScrollX1, setScrollX2, setScrollY1, setScrollY2, update |
Methods inherited from class org.gnu.gtk.Layout |
addChild, getHorizontalAdjustment, getSize, getVerticalAdjustment, moveChild, setHorizontalAdjustment, setSize, setVerticalAdjustment |
Methods inherited from class org.gnu.gtk.Container |
add, addListener, getBorderWidth, getEventListenerClass, getEventType, getResizeMode, remove, removeListener, resizeChildren, setBorderWidth, setResizeMode |
Methods inherited from class org.gnu.glib.GObject |
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, equals, getData, getHandle, removeEventHandler, setData |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IconList(int iconWidth, Adjustment adj, boolean isEditable, boolean isStaticText)
public IconList(int handle)
Method Detail |
public void freeze()
public void thaw()
public void insert(int pos, java.lang.String iconFilename, java.lang.String text)
pos
- The position for the insertion.iconFilename
- The file name for the icon to insert.text
- The text to display below the icon.public void append(java.lang.String iconFilename, java.lang.String text)
iconFilename
- The file name for the icon to insert.text
- The text to display below the icon.public void remove(int pos)
pos
- The position of the icon to removepublic void clear()
public int getNumIcons()
public void setSelectionMode(SelectionMode mode)
mode
- The selection mode for this list.public SelectionMode getSelectionMode()
public void selectIcon(int pos)
pos
- The position of the icon to select.public void unselectIcon(int pos)
pos
- The position of the icon to unselect.public void unselectAll()
public void setIconWidth(int width)
width
- The width for icons in the list.public void setRowSpacing(int pixels)
pixels
- The row spacing for the list.public void setColumnSpacing(int pixels)
pixels
- The column spacing for the list.public void setTextSpacing(int pixels)
pixels
- The text spacing for the listpublic void setIconBorderWidth(int pixels)
pixels
- The amount of pixels that surround the icons in the list.public void setSeparators(java.lang.String sep)
public java.lang.String getIconFilename(int pos)
pos
- The position of the icon to retrieve the filename.public static Type getType()
|
Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |