org.gnu.gnome

Class IconList

public class IconList extends Canvas

Deprecated: This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. This class may have an equivalent in java-gnome 4.0; have a look for org.gnome.gnome.IconList.

See Also: org.gnu.gtk.IconView

Constructor Summary
IconList(int iconWidth, Adjustment adj, boolean isEditable, boolean isStaticText)
Construct a new IconList object.
IconList(Handle handle)
Construct a new IconList from a handle to a native resource.
Method Summary
voidappend(String iconFilename, String text)
Append an icon to the end of the list.
voidclear()
Remove all icons from this list.
voidfreeze()
Avoid excessive recomputes during insertion and deletion.
StringgetIconFilename(int pos)
Retrieve the filename for an icon in the list.
intgetNumIcons()
Get the number of icons in this list
SelectionModegetSelectionMode()
Retrieve the selection mode for this icon list.
static TypegetType()
Retrieve the runtime type used by the GLib library.
voidinsert(int pos, String iconFilename, String text)
Insert an icon into this list.
voidremove(int pos)
Remove an icon from this list.
voidselectAll()
Select all icons in the list.
voidselectIcon(int pos)
Select an icon in the list.
voidsetColumnSpacing(int pixels)
Set the column spacing for the list.
voidsetIconBorderWidth(int pixels)
Set the icon border for the list.
voidsetIconWidth(int width)
Set the icon width for the list.
voidsetRowSpacing(int pixels)
Set the row spacing for the list.
voidsetSelectionMode(SelectionMode mode)
Set the selection mode for this icon list.
voidsetSeparators(String sep)
Set the text that serves as the separator for this list.
voidsetTextSpacing(int pixels)
Set the text spacing for the list.
voidthaw()
Thaw a previous frozen list.
voidunselectAll()
Unselect all icons in the list.
voidunselectIcon(int pos)
Unselect an icon in the list.

Constructor Detail

IconList

public IconList(int iconWidth, Adjustment adj, boolean isEditable, boolean isStaticText)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Construct a new IconList object.

IconList

public IconList(Handle handle)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Construct a new IconList from a handle to a native resource.

Method Detail

append

public void append(String iconFilename, String text)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

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()

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Remove all icons from this list.

freeze

public void freeze()

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Avoid excessive recomputes during insertion and deletion. You should call thaw once the activity is complete.

getIconFilename

public String getIconFilename(int pos)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Retrieve the filename for an icon in the list.

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

getNumIcons

public int getNumIcons()

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Get the number of icons in this list

Returns: The number of icons in this list.

getSelectionMode

public SelectionMode getSelectionMode()

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Retrieve the selection mode for this icon list.

Returns: The selection mode for this list.

getType

public static Type getType()

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Retrieve the runtime type used by the GLib library.

insert

public void insert(int pos, String iconFilename, String text)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

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)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Remove an icon from this list.

Parameters: pos The position of the icon to remove

selectAll

public void selectAll()

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Select all icons in the list.

selectIcon

public void selectIcon(int pos)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Select an icon in the list.

Parameters: pos The position of the icon to select.

setColumnSpacing

public void setColumnSpacing(int pixels)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Set the column spacing for the list.

Parameters: pixels The column spacing for the list.

setIconBorderWidth

public void setIconBorderWidth(int pixels)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

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)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Set the icon width for the list.

Parameters: width The width for icons in the list.

setRowSpacing

public void setRowSpacing(int pixels)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Set the row spacing for the list.

Parameters: pixels The row spacing for the list.

setSelectionMode

public void setSelectionMode(SelectionMode mode)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Set the selection mode for this icon list.

Parameters: mode The selection mode for this list.

setSeparators

public void setSeparators(String sep)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

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)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Set the text spacing for the list.

Parameters: pixels The text spacing for the list

thaw

public void thaw()

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Thaw a previous frozen list.

unselectAll

public void unselectAll()

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Unselect all icons in the list.

unselectIcon

public void unselectIcon(int pos)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Unselect an icon in the list.

Parameters: pos The position of the icon to unselect.