org.gnu.gtk
Class TextTagTable
public class TextTagTable
See
TextView
description for an overview of the related objects.
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.
|
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 |
TextTagTable
public TextTagTable()
Constructs a new table, containing no tags
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.
- The tag, or
null
if no tag exists by that name.
remove
public void remove(TextTag tag)
Remove a tag from the table.