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
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()
Constructs a new table, containing no tags

Method Detail

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.