|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.text.JTextComponent javax.swing.JEditorPane javax.swing.JTextPane groovy.ui.text.TextEditor
public class TextEditor extends JTextPane
A simple text pane that is printable and wrapping is optional.
Field Summary | |
---|---|
static String |
AUTO_INDENT
|
static String |
FIND
|
static String |
FIND_NEXT
|
static String |
FIND_PREVIOUS
|
static String |
REPLACE
|
Fields inherited from 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 |
Fields inherited from class JEditorPane | |
---|---|
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 |
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()
@return true if overtype mode is active, false for insert mode |
void
|
isMultiLineTabbed(boolean multiLineTab)
@param tabsAsSpaces whether tabs are converted to spaces |
static boolean
|
isOvertypeMode()
|
boolean
|
isTabsAsSpaces()
|
void
|
isTabsAsSpaces(boolean tabsAsSpaces)
|
boolean
|
isUnwrapped()
|
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)
@param multiLineTab the new multiLine tab value |
void
|
setOvertypeMode(boolean isOvertypeMode)
|
void
|
setUnwrapped(boolean unwrapped)
|
Field Detail |
---|
public static final String AUTO_INDENT
public static final String FIND
public static final String FIND_NEXT
public static final String FIND_PREVIOUS
public static final String REPLACE
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)
tabsAsSpaces
- whether tabs are converted to spaces
public static boolean isOvertypeMode()
public boolean isTabsAsSpaces()
public void isTabsAsSpaces(boolean tabsAsSpaces)
public boolean isUnwrapped()
public int print(Graphics graphics, PageFormat pageFormat, int page)
protected void processKeyEvent(KeyEvent e)
public void removeNotify()
public void replaceSelection(String text)
public void setBounds(int x, int y, int width, int height)
multiLineTab
- the new multiLine tab value
public void setOvertypeMode(boolean isOvertypeMode)
public void setUnwrapped(boolean unwrapped)
Copyright © 2003-2013 The Codehaus. All rights reserved.