org.gnu.gtk
Class TextTagTable
public class TextTagTable
See
TextView description for an overview of the related objects.
TextTagTable()- Constructs a new table, containing no tags
|
TextTagTable(Handle handle)- Create a new GObject with a handle to a native resource
returned from a call to the native libraries.
|
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, equals, freezeNotify, getBooleanProperty, getData, getData, getDoubleProperty, getEventListenerClass, getEventType, getFloatProperty, getGObjectFromHandle, getHandle, getIntFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getNullHandle, getPixbufProperty, getProperty, getStringFromHandle, getStringProperty, hasProperty, hashCode, instantiateJGObjectFromGType, notify, removeEventHandler, removeListener, retrieveGObject, setBooleanProperty, setData, setData, setDoubleProperty, setFloatProperty, setHandle, setIntProperty, setJavaObjectProperty, setLongProperty, setPixbufProperty, setProperty, setStringProperty, thawNotify |
TextTagTable
public TextTagTable()
Constructs a new table, containing no tags
TextTagTable
protected TextTagTable(Handle handle)
Create a new GObject with a handle to a native resource
returned from a call to the native libraries.
handle - The handle that represents a pointer to a native resource.
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.
gtk_text_tag_table_add
protected static final void gtk_text_tag_table_add(Handle table,
Handle tag)
gtk_text_tag_table_get_size
protected static final int gtk_text_tag_table_get_size(Handle table)
gtk_text_tag_table_get_type
protected static final int gtk_text_tag_table_get_type()
gtk_text_tag_table_lookup
protected static final Handle gtk_text_tag_table_lookup(Handle table,
String name)
gtk_text_tag_table_new
protected static final Handle gtk_text_tag_table_new()
gtk_text_tag_table_remove
protected static final void gtk_text_tag_table_remove(Handle table,
Handle tag)
lookup
public TextTag lookup(String name)
Look up a named tag.
name - name of a tag
- The tag, or
null if no tag exists by that name.
remove
public void remove(TextTag tag)
Remove a tag from the table.