|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A simple text pane that is printable and wrapping is optional.
Field Summary | |
---|---|
String |
FIND
|
String |
FIND_NEXT
|
String |
FIND_PREVIOUS
|
Pattern |
LINE_START
|
PageFormat |
PAGE_FORMAT
|
JTextPane |
PRINT_PANE
|
Dimension |
PRINT_SIZE
|
String |
REPLACE
|
String |
TABBED_SPACES
|
Pattern |
TAB_BACK_PATTERN
|
Caret |
defaultCaret
|
boolean |
isOvertypeMode
|
int |
lastUpdate
|
MouseAdapter |
mouseAdapter
|
boolean |
multiLineTab
|
int |
numPages
|
Caret |
overtypeCaret
|
boolean |
searchable
|
boolean |
tabsAsSpaces
|
Toolkit |
toolkit
|
boolean |
unwrapped
|
Constructor Summary | |
TextEditor()
Creates a new instance of TextEditor |
|
TextEditor(boolean tabsAsSpaces)
Creates a new instance of TextEditor |
|
TextEditor(boolean tabsAsSpaces, boolean multiLineTab)
Creates a new instance of TextEditor |
|
TextEditor(boolean tabsAsSpaces, boolean multiLineTab, boolean unwrapped)
Creates a new instance of TextEditor |
Method Summary | |
---|---|
void |
addNotify()
|
int |
getNumberOfPages()
|
PageFormat |
getPageFormat(int pageIndex)
|
Printable |
getPrintable(int param)
|
boolean |
getScrollableTracksViewportWidth()
|
boolean |
isMultiLineTabbed()
|
void |
isMultiLineTabbed(boolean multiLineTab)
|
static boolean |
isOvertypeMode()
|
boolean |
isTabsAsSpaces()
|
void |
isTabsAsSpaces(boolean tabsAsSpaces)
|
boolean |
isUnwrapped()
|
int |
print(Graphics graphics, PageFormat pageFormat, int page)
|
void |
processKeyEvent(KeyEvent e)
|
void |
removeNotify()
|
void |
replaceSelection(String text)
|
void |
setBounds(int x, int y, int width, int height)
|
void |
setOvertypeMode(boolean isOvertypeMode)
Set the caret to use depending on overtype/insert mode |
void |
setUnwrapped(boolean unwrapped)
|
Constructor Detail |
---|
public TextEditor()
public TextEditor(boolean tabsAsSpaces)
public TextEditor(boolean tabsAsSpaces, boolean multiLineTab)
public TextEditor(boolean tabsAsSpaces, boolean multiLineTab, boolean unwrapped)
Method Detail |
---|
public void addNotify()
public int getNumberOfPages()
public PageFormat getPageFormat(int pageIndex)
public Printable getPrintable(int param)
public boolean getScrollableTracksViewportWidth()
public boolean isMultiLineTabbed()
public void isMultiLineTabbed(boolean multiLineTab)
public static boolean isOvertypeMode()
public boolean isTabsAsSpaces()
public void isTabsAsSpaces(boolean tabsAsSpaces)
public boolean isUnwrapped()
public int print(Graphics graphics, PageFormat pageFormat, int page)
void processKeyEvent(KeyEvent e)
public void removeNotify()
public void replaceSelection(String text)
public void setBounds(int x, int y, int width, int height)
public void setOvertypeMode(boolean isOvertypeMode)
public void setUnwrapped(boolean unwrapped)