|
Groovy 1.8.4 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.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()
|
void
|
isMultiLineTabbed(boolean multiLineTab)
@param multiLineTab |
static boolean
|
isOvertypeMode()
|
boolean
|
isTabsAsSpaces()
|
void
|
isTabsAsSpaces(boolean tabsAsSpaces)
@param 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)
|
void
|
setOvertypeMode(boolean isOvertypeMode)
Set the caret to use depending on overtype/insert mode |
void
|
setUnwrapped(boolean unwrapped)
@param 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)
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)
public void setOvertypeMode(boolean isOvertypeMode)
public void setUnwrapped(boolean unwrapped)
Copyright © 2003-2011 The Codehaus. All rights reserved.