Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
javax.swing.text

Class GapContent

java.lang.Object
|
+--javax.swing.text.GapContent

All Implemented Interfaces:

AbstractDocument.Content


public class GapContent

extends Object

implements AbstractDocument.Content

Constructor Summary

GapContent()

GapContent(int size)

Method Summary

javax.swing.text.PositioncreatePosition(final int offset)

voidgetChars(int where, int len, javax.swing.text.Segment txt)

java.lang.StringgetString(int where, int len)

javax.swing.undo.UndoableEditinsertString(int where, java.lang.String str)

intlength()

javax.swing.undo.UndoableEditremove(int where, int nitems)

Constructor Details

GapContent

public GapContent()


GapContent

public GapContent(int size)

Parameters:


Method Details

createPosition

public Position createPosition(final int offset)

Parameters:


getChars

public void getChars(int where, int len, javax.swing.text.Segment txt)

Parameters:


getString

public String getString(int where, int len)

Parameters:


insertString

public UndoableEdit insertString(int where, java.lang.String str)

Parameters:


length

public int length()


remove

public UndoableEdit remove(int where, int nitems)

Parameters: