org.gnu.gtk

Class TextTagTable

public class TextTagTable extends GObject

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 in the future have an equivalent in java-gnome 4.0, try looking for org.gnome.gtk.TextTagTable. You should be aware that there is a considerably different API in the new library: the architecture is completely different and most notably internals are no longer exposed to public view.

See TextView description for an overview of the related objects.
Constructor Summary
TextTagTable()
Constructs a new table, containing no tags
Method Summary
voidadd(TextTag tag)
Add a tag to the table.
intgetSize()
Returns the size of the table (number of tags)
static TypegetType()
Retrieve the runtime type used by the GLib library.
TextTaglookup(String name)
Look up a named tag.
voidremove(TextTag tag)
Remove a tag from the table.

Constructor Detail

TextTagTable

public TextTagTable()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Constructs a new table, containing no tags

Method Detail

add

public void add(TextTag tag)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Add a tag to the table. The tag is assigned the highest priority in the table.

tag must not be in a tag table already, and may not have the same name as an already-added tag.

getSize

public int getSize()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Returns the size of the table (number of tags)

getType

public static Type getType()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Retrieve the runtime type used by the GLib library.

lookup

public TextTag lookup(String name)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Look up a named tag.

Parameters: name name of a tag

Returns: The tag, or null if no tag exists by that name.

remove

public void remove(TextTag tag)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Remove a tag from the table.