org.gnu.gnome
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 | |
---|---|
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. |
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.
|
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.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.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.
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.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.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.
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 listReturns: The number of icons in this list.
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.
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.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.
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
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.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.
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.
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.
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.
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.
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.
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.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
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.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.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.