Modifiers | Name | Description |
---|---|---|
static String |
AUTO_INDENT |
|
static String |
FIND |
|
static String |
FIND_NEXT |
|
static String |
FIND_PREVIOUS |
|
static String |
REPLACE |
Fields inherited from class | Fields |
---|---|
class JTextPane |
W3C_LENGTH_UNITS, HONOR_DISPLAY_PROPERTIES, FOCUS_ACCELERATOR_KEY, DEFAULT_KEYMAP, WHEN_FOCUSED, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_WINDOW, UNDEFINED_CONDITION, TOOL_TIP_TEXT_KEY, TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORT |
Type | Name and description |
---|---|
boolean |
overtypeMode |
boolean |
unwrapped |
Constructor and description |
---|
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 |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addNotify() |
|
int |
getNumberOfPages() |
|
PageFormat |
getPageFormat(int pageIndex) |
|
Printable |
getPrintable(int param) |
|
boolean |
getScrollableTracksViewportWidth() |
|
boolean |
isMultiLineTabbed() Whether using the tab key indents the selected lines of code |
|
void |
isMultiLineTabbed(boolean multiLineTab) @param multiLineTab the new multiLine tab value |
|
static boolean |
isOvertypeMode() @return true if overtype mode is active, false for insert mode |
|
boolean |
isTabsAsSpaces() @return true if tabs are converted to spaces upon typing |
|
void |
isTabsAsSpaces(boolean tabsAsSpaces) @param tabsAsSpaces whether tabs are converted to spaces |
|
boolean |
isUnwrapped() @return true if text wrapping is disabled |
|
int |
print(Graphics graphics, PageFormat pageFormat, int page) |
|
protected 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) @param unwrapped the new unwrapped value |
Creates a new instance of TextEditor
Creates a new instance of TextEditor
Creates a new instance of TextEditor
Creates a new instance of TextEditor
Whether using the tab key indents the selected lines of code
multiLineTab
- the new multiLine tab value
tabsAsSpaces
- whether tabs are converted to spaces
Set the caret to use depending on overtype/insert mode
isOvertypeMode
- the new mode; true = overtype
unwrapped
- the new unwrapped valueCopyright © 2003-2019 The Apache Software Foundation. All rights reserved.