org.gnu.gtk
Class TextTagTable

java.lang.Object
  extended by org.gnu.glib.Struct
      extended by org.gnu.glib.GObject
          extended by org.gnu.gtk.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(java.lang.String name)
          Look up a named tag.
 void remove(TextTag tag)
          Remove a tag from the table.
 
Methods inherited from class org.gnu.glib.GObject
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getEventListenerClass, getEventType, getFloatProperty, getGObjectFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getPixbufProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setPixbufProperty, setProperty, setStringProperty, thawNotify
 
Methods inherited from class org.gnu.glib.Struct
equals, getHandle, getNullHandle, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

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.


remove

public void remove(TextTag tag)
Remove a tag from the table.


lookup

public TextTag lookup(java.lang.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.

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.