org.gnu.gtk

Class TextTagTable


public class TextTagTable
extends GObject

See TextView description for an overview of the related objects.

Constructor Summary

TextTagTable()
Constructs a new table, containing no tags

Method Summary

void
add(TextTag tag)
Add a tag to the table.
int
getSize()
Returns the size of the table (number of tags)
static Type
getType()
Retrieve the runtime type used by the GLib library.
TextTag
lookup(String name)
Look up a named tag.
void
remove(TextTag tag)
Remove a tag from the table.

Constructor Details

TextTagTable

public TextTagTable()
Constructs a new table, containing no tags

Method Details

add

public void add(TextTag tag)
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()
Returns the size of the table (number of tags)

getType

public static Type getType()
Retrieve the runtime type used by the GLib library.

lookup

public TextTag lookup(String name)
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)
Remove a tag from the table.