| java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent org.syntax.jedit.JEditTextArea
All known Subclasses: com.eviware.soapui.support.xml.JXEditTextArea,
JEditTextArea | public class JEditTextArea extends JComponent implements Scrollable(Code) | | jEdit's text area component. It is more suited for editing program
source code than JEditorPane, because it drops the unnecessary features
(images, variable-width lines, and so on) and adds a whole bunch of
useful goodies such as:
- More flexible key binding scheme
- Supports macro recorders
- Rectangular selection
- Bracket highlighting
- Syntax highlighting
- Command repetition
- Block caret can be enabled
It is also faster and doesn't have as many problems. It can be used
in other applications; the only other part of jEdit it depends on is
the syntax package.
To use it in your app, treat it like any other component, for example:
JEditTextArea ta = new JEditTextArea();
ta.setTokenMarker(new JavaTokenMarker());
ta.setText("public class Test {\n"
+ " public static void main(String[] args) {\n"
+ " System.out.println(\"Hello World\");\n"
+ " }\n"
+ "}");
author: Slava Pestov version: $Id$ |
Inner Class :class MutableCaretEvent extends CaretEvent | |
Method Summary | |
public int | _offsetToX(int line, int offset) Converts an offset in a line into an x co-ordinate. | final public void | addCaretListener(CaretListener listener) Adds a caret change listener to this text area. | public void | addNotify() | final public void | blinkCaret() Blinks the caret. | public void | copy() Places the selected text into the clipboard. | public void | cut() Deletes the selected text from the text area and places it
into the clipboard. | protected void | documentChanged(DocumentEvent evt) | protected void | fireCaretEvent() | final public int | getBracketLine() | final public int | getBracketPosition() | final public int | getCaretLine() Returns the caret line. | final public int | getCaretPosition() Returns the caret position. | final public SyntaxDocument | getDocument() Returns the document this text area is editing. | final public int | getDocumentLength() Returns the length of the document. | final public int | getFirstLine() Returns the line displayed at the text area's origin. | final public InputHandler | getInputHandler() Returns the input handler. | final public int | getLineCount() Returns the number of lines in the document. | public int | getLineEndOffset(int line) Returns the end offset of the specified line. | public int | getLineLength(int line) Returns the length of the specified line. | final public int | getLineOfOffset(int offset) Returns the line containing the specified offset. | public int | getLineStartOffset(int line) Returns the start offset of the specified line. | final public String | getLineText(int lineIndex) Returns the text on the specified line. | final public void | getLineText(int lineIndex, Segment segment) Copies the text on the specified line into a segment. | final public int | getMagicCaretPosition() Returns the `magic' caret position. | final public int | getMarkLine() Returns the mark line. | final public int | getMarkPosition() Returns the mark position. | public int | getMaxLineLength() | public Dimension | getMaximumSize() | public Dimension | getMinimumSize() | final public TextAreaPainter | getPainter() Returns the object responsible for painting this text area. | public Dimension | getPreferredScrollableViewportSize() | public Dimension | getPreferredSize() | final public JPopupMenu | getRightClickPopup() Returns the right click popup menu. | public int | getScrollableBlockIncrement(Rectangle arg0, int arg1, int arg2) | public boolean | getScrollableTracksViewportHeight() | public boolean | getScrollableTracksViewportWidth() | public int | getScrollableUnitIncrement(Rectangle arg0, int arg1, int arg2) | final public String | getSelectedText() Returns the selected text, or null if no selection is active. | final public int | getSelectionEnd() Returns the selection end offset. | public int | getSelectionEnd(int line) Returns the offset where the selection ends on the specified
line. | final public int | getSelectionEndLine() Returns the selection end line. | final public int | getSelectionStart() Returns the selection start offset. | public int | getSelectionStart(int line) Returns the offset where the selection starts on the specified
line. | final public int | getSelectionStartLine() Returns the selection start line. | public String | getText() Returns the entire text of this text area. | final public String | getText(int start, int len) Returns the specified substring of the document. | final public void | getText(int start, int len, Segment segment) Copies the specified substring of the document into a segment. | final public TokenMarker | getTokenMarker() Returns the document's token marker. | final public int | getVisibleLines() Returns the number of lines visible in this text area. | final public boolean | isCaretBlinkEnabled() Returns true if the caret is blinking, false otherwise. | final public boolean | isCaretVisible() Returns true if the caret is visible, false otherwise. | final public boolean | isEditable() Returns true if this text area is editable, false otherwise. | final public boolean | isManagingFocus() Returns if this component can be traversed by pressing
the Tab key. | final public boolean | isOverwriteEnabled() Returns true if overwrite mode is enabled, false otherwise. | final public boolean | isSelectionRectangular() Returns true if the selection is rectangular, false otherwise. | public int | lineToY(int line) Converts a line index to a y co-ordinate. | final public int | offsetToX(int line, int offset) Converts an offset in a line into an x co-ordinate. | public void | overwriteSetSelectedText(String str) Similar to setSelectedText() , but overstrikes the
appropriate number of characters if overwrite mode is enabled. | public void | paste() Inserts the clipboard contents into the text. | public void | processKeyEvent(KeyEvent evt) Forwards key events directly to the input handler. | final public void | recalculateVisibleLines() Recalculates the number of visible lines. | final public void | removeCaretListener(CaretListener listener) Removes a caret change listener from this text area. | public void | removeNotify() Called by the AWT when this component is removed from it's parent. | public void | scrollTo(int line, int offset) Ensures that the specified line and offset is visible by scrolling
the text area if necessary. | public void | scrollToCaret() Ensures that the caret is visible by scrolling the text area if
necessary. | public void | select(int start, int end) Selects from the start offset to the end offset. | final public void | selectAll() Selects all text in the document. | final public void | selectNone() Moves the mark to the caret position. | public void | setCaretBlinkEnabled(boolean caretBlinks) Toggles caret blinking. | final public void | setCaretPosition(int caret) Sets the caret position. | public void | setCaretVisible(boolean caretVisible) Sets if the caret should be visible. | public void | setDocument(SyntaxDocument document) Sets the document this text area is editing. | public void | setEditable(boolean editable) Sets if this component is editable. | public void | setFirstLine(int firstLine) Sets the line displayed at the text area's origin without
updating the scroll bars. | public void | setInputHandler(InputHandler inputHandler) Sets the input handler. | final public void | setMagicCaretPosition(int magicCaret) Sets the `magic' caret position. | final public void | setOverwriteEnabled(boolean overwrite) Sets if overwrite mode should be enabled. | final public void | setRightClickPopup(JPopupMenu popup) Sets the right click popup menu. | public void | setSelectedText(String selectedText) Replaces the selection with the specified text. | final public void | setSelectionEnd(int selectionEnd) Sets the selection end. | final public void | setSelectionRectangular(boolean rectSelect) Sets if the selection should be rectangular. | final public void | setSelectionStart(int selectionStart) Sets the selection start. | public synchronized void | setText(String text) Sets the entire text of this text area. | final public void | setTokenMarker(TokenMarker tokenMarker) Sets the document's token marker. | protected void | updateBracketHighlight(int newCaretPosition) | public void | updateScrollBars() Updates the state of the scroll bars. | public int | xToOffset(int line, int x) Converts an x co-ordinate to an offset within a line. | public int | xyToOffset(int x, int y) Converts a point to an offset, from the start of the text. | public int | yToLine(int y) Converts a y co-ordinate to a line index. |
LEFT_OF_SCROLLBAR | final public static String LEFT_OF_SCROLLBAR(Code) | | Adding components with this name to the text area will place
them left of the horizontal scroll bar. In jEdit, the status
bar is added this way.
|
biasLeft | protected boolean biasLeft(Code) | | |
blink | protected boolean blink(Code) | | |
bracketLine | protected int bracketLine(Code) | | |
bracketPosition | protected int bracketPosition(Code) | | |
caretBlinks | protected boolean caretBlinks(Code) | | |
caretEvent | protected MutableCaretEvent caretEvent(Code) | | |
caretTimer | final protected static Timer caretTimer(Code) | | |
caretVisible | protected boolean caretVisible(Code) | | |
documentHandler | protected DocumentHandler documentHandler(Code) | | |
editable | protected boolean editable(Code) | | |
firstLine | protected int firstLine(Code) | | |
magicCaret | protected int magicCaret(Code) | | |
overwrite | protected boolean overwrite(Code) | | |
rectSelect | protected boolean rectSelect(Code) | | |
scrollBarsInitialized | protected boolean scrollBarsInitialized(Code) | | |
selectionEnd | protected int selectionEnd(Code) | | |
selectionEndLine | protected int selectionEndLine(Code) | | |
selectionStart | protected int selectionStart(Code) | | |
selectionStartLine | protected int selectionStartLine(Code) | | |
visibleLines | protected int visibleLines(Code) | | |
JEditTextArea | public JEditTextArea()(Code) | | Creates a new JEditTextArea with the default settings.
|
JEditTextArea | public JEditTextArea(TextAreaDefaults defaults)(Code) | | Creates a new JEditTextArea with the specified settings.
Parameters: defaults - The default settings |
_offsetToX | public int _offsetToX(int line, int offset)(Code) | | Converts an offset in a line into an x co-ordinate. This is a
fast version that should only be used if no changes were made
to the text since the last repaint.
Parameters: line - The line Parameters: offset - The offset, from the start of the line |
addCaretListener | final public void addCaretListener(CaretListener listener)(Code) | | Adds a caret change listener to this text area.
Parameters: listener - The listener |
addNotify | public void addNotify()(Code) | | |
blinkCaret | final public void blinkCaret()(Code) | | Blinks the caret.
|
copy | public void copy()(Code) | | Places the selected text into the clipboard.
|
cut | public void cut()(Code) | | Deletes the selected text from the text area and places it
into the clipboard.
|
fireCaretEvent | protected void fireCaretEvent()(Code) | | |
getBracketLine | final public int getBracketLine()(Code) | | Returns the line of the highlighted bracket (the bracket
matching the one before the caret)
|
getBracketPosition | final public int getBracketPosition()(Code) | | Returns the position of the highlighted bracket (the bracket
matching the one before the caret)
|
getCaretLine | final public int getCaretLine()(Code) | | Returns the caret line.
|
getCaretPosition | final public int getCaretPosition()(Code) | | Returns the caret position. This will either be the selection
start or the selection end, depending on which direction the
selection was made in.
|
getDocument | final public SyntaxDocument getDocument()(Code) | | Returns the document this text area is editing.
|
getDocumentLength | final public int getDocumentLength()(Code) | | Returns the length of the document. Equivalent to calling
getDocument().getLength() .
|
getFirstLine | final public int getFirstLine()(Code) | | Returns the line displayed at the text area's origin.
|
getInputHandler | final public InputHandler getInputHandler()(Code) | | Returns the input handler.
|
getLineCount | final public int getLineCount()(Code) | | Returns the number of lines in the document.
|
getLineEndOffset | public int getLineEndOffset(int line)(Code) | | Returns the end offset of the specified line.
Parameters: line - The line The end offset of the specified line, or -1 if the line isinvalid. |
getLineLength | public int getLineLength(int line)(Code) | | Returns the length of the specified line.
Parameters: line - The line |
getLineOfOffset | final public int getLineOfOffset(int offset)(Code) | | Returns the line containing the specified offset.
Parameters: offset - The offset |
getLineStartOffset | public int getLineStartOffset(int line)(Code) | | Returns the start offset of the specified line.
Parameters: line - The line The start offset of the specified line, or -1 if the line isinvalid |
getLineText | final public String getLineText(int lineIndex)(Code) | | Returns the text on the specified line.
Parameters: lineIndex - The line The text, or null if the line is invalid |
getLineText | final public void getLineText(int lineIndex, Segment segment)(Code) | | Copies the text on the specified line into a segment. If the line
is invalid, the segment will contain a null string.
Parameters: lineIndex - The line |
getMagicCaretPosition | final public int getMagicCaretPosition()(Code) | | Returns the `magic' caret position. This can be used to preserve
the column position when moving up and down lines.
|
getMarkLine | final public int getMarkLine()(Code) | | Returns the mark line.
|
getMarkPosition | final public int getMarkPosition()(Code) | | Returns the mark position. This will be the opposite selection
bound to the caret position.
See Also: JEditTextArea.getCaretPosition() |
getMaxLineLength | public int getMaxLineLength()(Code) | | |
getPainter | final public TextAreaPainter getPainter()(Code) | | Returns the object responsible for painting this text area.
|
getPreferredScrollableViewportSize | public Dimension getPreferredScrollableViewportSize()(Code) | | |
getRightClickPopup | final public JPopupMenu getRightClickPopup()(Code) | | Returns the right click popup menu.
|
getScrollableBlockIncrement | public int getScrollableBlockIncrement(Rectangle arg0, int arg1, int arg2)(Code) | | |
getScrollableTracksViewportHeight | public boolean getScrollableTracksViewportHeight()(Code) | | |
getScrollableTracksViewportWidth | public boolean getScrollableTracksViewportWidth()(Code) | | |
getScrollableUnitIncrement | public int getScrollableUnitIncrement(Rectangle arg0, int arg1, int arg2)(Code) | | |
getSelectedText | final public String getSelectedText()(Code) | | Returns the selected text, or null if no selection is active.
|
getSelectionEnd | final public int getSelectionEnd()(Code) | | Returns the selection end offset.
|
getSelectionEnd | public int getSelectionEnd(int line)(Code) | | Returns the offset where the selection ends on the specified
line.
|
getSelectionEndLine | final public int getSelectionEndLine()(Code) | | Returns the selection end line.
|
getSelectionStart | final public int getSelectionStart()(Code) | | Returns the selection start offset.
|
getSelectionStart | public int getSelectionStart(int line)(Code) | | Returns the offset where the selection starts on the specified
line.
|
getSelectionStartLine | final public int getSelectionStartLine()(Code) | | Returns the selection start line.
|
getText | public String getText()(Code) | | Returns the entire text of this text area.
|
getText | final public String getText(int start, int len)(Code) | | Returns the specified substring of the document.
Parameters: start - The start offset Parameters: len - The length of the substring The substring, or null if the offsets are invalid |
getText | final public void getText(int start, int len, Segment segment)(Code) | | Copies the specified substring of the document into a segment.
If the offsets are invalid, the segment will contain a null string.
Parameters: start - The start offset Parameters: len - The length of the substring Parameters: segment - The segment |
getTokenMarker | final public TokenMarker getTokenMarker()(Code) | | Returns the document's token marker. Equivalent to calling
getDocument().getTokenMarker() .
|
getVisibleLines | final public int getVisibleLines()(Code) | | Returns the number of lines visible in this text area.
|
isCaretBlinkEnabled | final public boolean isCaretBlinkEnabled()(Code) | | Returns true if the caret is blinking, false otherwise.
|
isCaretVisible | final public boolean isCaretVisible()(Code) | | Returns true if the caret is visible, false otherwise.
|
isEditable | final public boolean isEditable()(Code) | | Returns true if this text area is editable, false otherwise.
|
isManagingFocus | final public boolean isManagingFocus()(Code) | | Returns if this component can be traversed by pressing
the Tab key. This returns false.
|
isOverwriteEnabled | final public boolean isOverwriteEnabled()(Code) | | Returns true if overwrite mode is enabled, false otherwise.
|
isSelectionRectangular | final public boolean isSelectionRectangular()(Code) | | Returns true if the selection is rectangular, false otherwise.
|
lineToY | public int lineToY(int line)(Code) | | Converts a line index to a y co-ordinate.
Parameters: line - The line |
offsetToX | final public int offsetToX(int line, int offset)(Code) | | Converts an offset in a line into an x co-ordinate. This is a
slow version that can be used any time.
Parameters: line - The line Parameters: offset - The offset, from the start of the line |
paste | public void paste()(Code) | | Inserts the clipboard contents into the text.
|
processKeyEvent | public void processKeyEvent(KeyEvent evt)(Code) | | Forwards key events directly to the input handler.
This is slightly faster than using a KeyListener
because some Swing overhead is avoided.
|
recalculateVisibleLines | final public void recalculateVisibleLines()(Code) | | Recalculates the number of visible lines. This should not
be called directly.
|
removeCaretListener | final public void removeCaretListener(CaretListener listener)(Code) | | Removes a caret change listener from this text area.
Parameters: listener - The listener |
removeNotify | public void removeNotify()(Code) | | Called by the AWT when this component is removed from it's parent.
This stops clears the currently focused component.
|
scrollTo | public void scrollTo(int line, int offset)(Code) | | Ensures that the specified line and offset is visible by scrolling
the text area if necessary.
Parameters: line - The line to scroll to Parameters: offset - The offset in the line to scroll to True if scrolling was actually performed, false if theline and offset was already visible |
scrollToCaret | public void scrollToCaret()(Code) | | Ensures that the caret is visible by scrolling the text area if
necessary.
True if scrolling was actually performed, false if thecaret was already visible |
select | public void select(int start, int end)(Code) | | Selects from the start offset to the end offset. This is the
general selection method used by all other selecting methods.
The caret position will be start if start < end, and end
if end > start.
Parameters: start - The start offset Parameters: end - The end offset |
selectAll | final public void selectAll()(Code) | | Selects all text in the document.
|
selectNone | final public void selectNone()(Code) | | Moves the mark to the caret position.
|
setCaretBlinkEnabled | public void setCaretBlinkEnabled(boolean caretBlinks)(Code) | | Toggles caret blinking.
Parameters: caretBlinks - True if the caret should blink, false otherwise |
setCaretPosition | final public void setCaretPosition(int caret)(Code) | | Sets the caret position. The new selection will consist of the
caret position only (hence no text will be selected)
Parameters: caret - The caret position See Also: JEditTextArea.select(int,int) |
setCaretVisible | public void setCaretVisible(boolean caretVisible)(Code) | | Sets if the caret should be visible.
Parameters: caretVisible - True if the caret should be visible, falseotherwise |
setDocument | public void setDocument(SyntaxDocument document)(Code) | | Sets the document this text area is editing.
Parameters: document - The document |
setEditable | public void setEditable(boolean editable)(Code) | | Sets if this component is editable.
Parameters: editable - True if this text area should be editable,false otherwise |
setFirstLine | public void setFirstLine(int firstLine)(Code) | | Sets the line displayed at the text area's origin without
updating the scroll bars.
|
setInputHandler | public void setInputHandler(InputHandler inputHandler)(Code) | | Sets the input handler.
Parameters: inputHandler - The new input handler |
setMagicCaretPosition | final public void setMagicCaretPosition(int magicCaret)(Code) | | Sets the `magic' caret position. This can be used to preserve
the column position when moving up and down lines.
Parameters: magicCaret - The magic caret position |
setOverwriteEnabled | final public void setOverwriteEnabled(boolean overwrite)(Code) | | Sets if overwrite mode should be enabled.
Parameters: overwrite - True if overwrite mode should be enabled,false otherwise. |
setRightClickPopup | final public void setRightClickPopup(JPopupMenu popup)(Code) | | Sets the right click popup menu.
Parameters: popup - The popup |
setSelectedText | public void setSelectedText(String selectedText)(Code) | | Replaces the selection with the specified text.
Parameters: selectedText - The replacement text for the selection |
setSelectionEnd | final public void setSelectionEnd(int selectionEnd)(Code) | | Sets the selection end. The new selection will be the old
selection start and the bew selection end.
Parameters: selectionEnd - The selection end See Also: JEditTextArea.select(int,int) |
setSelectionRectangular | final public void setSelectionRectangular(boolean rectSelect)(Code) | | Sets if the selection should be rectangular.
Parameters: overwrite - True if the selection should be rectangular,false otherwise. |
setSelectionStart | final public void setSelectionStart(int selectionStart)(Code) | | Sets the selection start. The new selection will be the new
selection start and the old selection end.
Parameters: selectionStart - The selection start See Also: JEditTextArea.select(int,int) |
setText | public synchronized void setText(String text)(Code) | | Sets the entire text of this text area.
|
setTokenMarker | final public void setTokenMarker(TokenMarker tokenMarker)(Code) | | Sets the document's token marker. Equivalent to caling
getDocument().setTokenMarker() .
Parameters: tokenMarker - The token marker |
updateBracketHighlight | protected void updateBracketHighlight(int newCaretPosition)(Code) | | |
updateScrollBars | public void updateScrollBars()(Code) | | Updates the state of the scroll bars. This should be called
if the number of lines in the document changes, or when the
size of the text area changes.
|
xToOffset | public int xToOffset(int line, int x)(Code) | | Converts an x co-ordinate to an offset within a line.
Parameters: line - The line Parameters: x - The x co-ordinate |
xyToOffset | public int xyToOffset(int x, int y)(Code) | | Converts a point to an offset, from the start of the text.
Parameters: x - The x co-ordinate of the point Parameters: y - The y co-ordinate of the point |
yToLine | public int yToLine(int y)(Code) | | Converts a y co-ordinate to a line index.
Parameters: y - The y co-ordinate |
Methods inherited from javax.swing.JComponent | public void addAncestorListener(AncestorListener listener)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) public synchronized void addVetoableChangeListener(VetoableChangeListener listener)(Code)(Java Doc) public void computeVisibleRect(Rectangle visibleRect)(Code)(Java Doc) public boolean contains(int x, int y)(Code)(Java Doc) public JToolTip createToolTip()(Code)(Java Doc) public void disable()(Code)(Java Doc) public void enable()(Code)(Java Doc) public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, int oldValue, int newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, char oldValue, char newValue)(Code)(Java Doc) protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue) throws java.beans.PropertyVetoException(Code)(Java Doc) public AccessibleContext getAccessibleContext()(Code)(Java Doc) public ActionListener getActionForKeyStroke(KeyStroke aKeyStroke)(Code)(Java Doc) final public ActionMap getActionMap()(Code)(Java Doc) public float getAlignmentX()(Code)(Java Doc) public float getAlignmentY()(Code)(Java Doc) public AncestorListener[] getAncestorListeners()(Code)(Java Doc) public boolean getAutoscrolls()(Code)(Java Doc) public int getBaseline(int width, int height)(Code)(Java Doc) public BaselineResizeBehavior getBaselineResizeBehavior()(Code)(Java Doc) public Border getBorder()(Code)(Java Doc) public Rectangle getBounds(Rectangle rv)(Code)(Java Doc) final public Object getClientProperty(Object key)(Code)(Java Doc) protected Graphics getComponentGraphics(Graphics g)(Code)(Java Doc) public JPopupMenu getComponentPopupMenu()(Code)(Java Doc) public int getConditionForKeyStroke(KeyStroke aKeyStroke)(Code)(Java Doc) public int getDebugGraphicsOptions()(Code)(Java Doc) public static Locale getDefaultLocale()(Code)(Java Doc) public FontMetrics getFontMetrics(Font font)(Code)(Java Doc) public Graphics getGraphics()(Code)(Java Doc) public int getHeight()(Code)(Java Doc) public boolean getInheritsPopupMenu()(Code)(Java Doc) final public InputMap getInputMap(int condition)(Code)(Java Doc) final public InputMap getInputMap()(Code)(Java Doc) public InputVerifier getInputVerifier()(Code)(Java Doc) public Insets getInsets()(Code)(Java Doc) public Insets getInsets(Insets insets)(Code)(Java Doc) public T[] getListeners(Class<T> listenerType)(Code)(Java Doc) public Point getLocation(Point rv)(Code)(Java Doc) public Dimension getMaximumSize()(Code)(Java Doc) public Dimension getMinimumSize()(Code)(Java Doc) public Component getNextFocusableComponent()(Code)(Java Doc) public Point getPopupLocation(MouseEvent event)(Code)(Java Doc) public Dimension getPreferredSize()(Code)(Java Doc) public KeyStroke[] getRegisteredKeyStrokes()(Code)(Java Doc) public JRootPane getRootPane()(Code)(Java Doc) public Dimension getSize(Dimension rv)(Code)(Java Doc) public Point getToolTipLocation(MouseEvent event)(Code)(Java Doc) public String getToolTipText()(Code)(Java Doc) public String getToolTipText(MouseEvent event)(Code)(Java Doc) public Container getTopLevelAncestor()(Code)(Java Doc) public TransferHandler getTransferHandler()(Code)(Java Doc) public String getUIClassID()(Code)(Java Doc) public boolean getVerifyInputWhenFocusTarget()(Code)(Java Doc) public synchronized VetoableChangeListener[] getVetoableChangeListeners()(Code)(Java Doc) public Rectangle getVisibleRect()(Code)(Java Doc) public int getWidth()(Code)(Java Doc) public int getX()(Code)(Java Doc) public int getY()(Code)(Java Doc) public void grabFocus()(Code)(Java Doc) public boolean isDoubleBuffered()(Code)(Java Doc) public static boolean isLightweightComponent(Component c)(Code)(Java Doc) public boolean isManagingFocus()(Code)(Java Doc) public boolean isOpaque()(Code)(Java Doc) public boolean isOptimizedDrawingEnabled()(Code)(Java Doc) final public boolean isPaintingForPrint()(Code)(Java Doc) public boolean isPaintingTile()(Code)(Java Doc) public boolean isRequestFocusEnabled()(Code)(Java Doc) public boolean isValidateRoot()(Code)(Java Doc) public void paint(Graphics g)(Code)(Java Doc) protected void paintBorder(Graphics g)(Code)(Java Doc) protected void paintChildren(Graphics g)(Code)(Java Doc) protected void paintComponent(Graphics g)(Code)(Java Doc) public void paintImmediately(int x, int y, int w, int h)(Code)(Java Doc) public void paintImmediately(Rectangle r)(Code)(Java Doc) protected String paramString()(Code)(Java Doc) public void print(Graphics g)(Code)(Java Doc) public void printAll(Graphics g)(Code)(Java Doc) protected void printBorder(Graphics g)(Code)(Java Doc) protected void printChildren(Graphics g)(Code)(Java Doc) protected void printComponent(Graphics g)(Code)(Java Doc) protected void processComponentKeyEvent(KeyEvent e)(Code)(Java Doc) protected boolean processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)(Code)(Java Doc) protected void processKeyEvent(KeyEvent e)(Code)(Java Doc) protected void processMouseEvent(MouseEvent e)(Code)(Java Doc) protected void processMouseMotionEvent(MouseEvent e)(Code)(Java Doc) final public void putClientProperty(Object key, Object value)(Code)(Java Doc) public void registerKeyboardAction(ActionListener anAction, String aCommand, KeyStroke aKeyStroke, int aCondition)(Code)(Java Doc) public void registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition)(Code)(Java Doc) public void removeAncestorListener(AncestorListener listener)(Code)(Java Doc) public void removeNotify()(Code)(Java Doc) public synchronized void removeVetoableChangeListener(VetoableChangeListener listener)(Code)(Java Doc) public void repaint(long tm, int x, int y, int width, int height)(Code)(Java Doc) public void repaint(Rectangle r)(Code)(Java Doc) public boolean requestDefaultFocus()(Code)(Java Doc) public void requestFocus()(Code)(Java Doc) public boolean requestFocus(boolean temporary)(Code)(Java Doc) public boolean requestFocusInWindow()(Code)(Java Doc) protected boolean requestFocusInWindow(boolean temporary)(Code)(Java Doc) public void resetKeyboardActions()(Code)(Java Doc) public void reshape(int x, int y, int w, int h)(Code)(Java Doc) public void revalidate()(Code)(Java Doc) public void scrollRectToVisible(Rectangle aRect)(Code)(Java Doc) final public void setActionMap(ActionMap am)(Code)(Java Doc) public void setAlignmentX(float alignmentX)(Code)(Java Doc) public void setAlignmentY(float alignmentY)(Code)(Java Doc) public void setAutoscrolls(boolean autoscrolls)(Code)(Java Doc) public void setBackground(Color bg)(Code)(Java Doc) public void setBorder(Border border)(Code)(Java Doc) public void setComponentPopupMenu(JPopupMenu popup)(Code)(Java Doc) public void setDebugGraphicsOptions(int debugOptions)(Code)(Java Doc) public static void setDefaultLocale(Locale l)(Code)(Java Doc) public void setDoubleBuffered(boolean aFlag)(Code)(Java Doc) public void setEnabled(boolean enabled)(Code)(Java Doc) public void setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)(Code)(Java Doc) public void setFont(Font font)(Code)(Java Doc) public void setForeground(Color fg)(Code)(Java Doc) public void setInheritsPopupMenu(boolean value)(Code)(Java Doc) final public void setInputMap(int condition, InputMap map)(Code)(Java Doc) public void setInputVerifier(InputVerifier inputVerifier)(Code)(Java Doc) public void setMaximumSize(Dimension maximumSize)(Code)(Java Doc) public void setMinimumSize(Dimension minimumSize)(Code)(Java Doc) public void setNextFocusableComponent(Component aComponent)(Code)(Java Doc) public void setOpaque(boolean isOpaque)(Code)(Java Doc) public void setPreferredSize(Dimension preferredSize)(Code)(Java Doc) public void setRequestFocusEnabled(boolean requestFocusEnabled)(Code)(Java Doc) public void setToolTipText(String text)(Code)(Java Doc) public void setTransferHandler(TransferHandler newHandler)(Code)(Java Doc) protected void setUI(ComponentUI newUI)(Code)(Java Doc) public void setVerifyInputWhenFocusTarget(boolean verifyInputWhenFocusTarget)(Code)(Java Doc) public void setVisible(boolean aFlag)(Code)(Java Doc) public void unregisterKeyboardAction(KeyStroke aKeyStroke)(Code)(Java Doc) public void update(Graphics g)(Code)(Java Doc) public void updateUI()(Code)(Java Doc)
|
Methods inherited from java.awt.Container | public Component add(Component comp)(Code)(Java Doc) public Component add(String name, Component comp)(Code)(Java Doc) public Component add(Component comp, int index)(Code)(Java Doc) public void add(Component comp, Object constraints)(Code)(Java Doc) public void add(Component comp, Object constraints, int index)(Code)(Java Doc) public synchronized void addContainerListener(ContainerListener l)(Code)(Java Doc) protected void addImpl(Component comp, Object constraints, int index)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) public void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc) public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc) public void applyComponentOrientation(ComponentOrientation o)(Code)(Java Doc) public boolean areFocusTraversalKeysSet(int id)(Code)(Java Doc) public int countComponents()(Code)(Java Doc) public void deliverEvent(Event e)(Code)(Java Doc) public void doLayout()(Code)(Java Doc) public Component findComponentAt(int x, int y)(Code)(Java Doc) public Component findComponentAt(Point p)(Code)(Java Doc) public float getAlignmentX()(Code)(Java Doc) public float getAlignmentY()(Code)(Java Doc) public Component getComponent(int n)(Code)(Java Doc) public Component getComponentAt(int x, int y)(Code)(Java Doc) public Component getComponentAt(Point p)(Code)(Java Doc) public int getComponentCount()(Code)(Java Doc) public int getComponentZOrder(Component comp)(Code)(Java Doc) public Component[] getComponents()(Code)(Java Doc) public synchronized ContainerListener[] getContainerListeners()(Code)(Java Doc) public Set<AWTKeyStroke> getFocusTraversalKeys(int id)(Code)(Java Doc) public FocusTraversalPolicy getFocusTraversalPolicy()(Code)(Java Doc) public Insets getInsets()(Code)(Java Doc) public LayoutManager getLayout()(Code)(Java Doc) public T[] getListeners(Class<T> listenerType)(Code)(Java Doc) public Dimension getMaximumSize()(Code)(Java Doc) public Dimension getMinimumSize()(Code)(Java Doc) public Point getMousePosition(boolean allowChildren) throws HeadlessException(Code)(Java Doc) public Dimension getPreferredSize()(Code)(Java Doc) public Insets insets()(Code)(Java Doc) public void invalidate()(Code)(Java Doc) public boolean isAncestorOf(Component c)(Code)(Java Doc) public boolean isFocusCycleRoot(Container container)(Code)(Java Doc) public boolean isFocusCycleRoot()(Code)(Java Doc) final public boolean isFocusTraversalPolicyProvider()(Code)(Java Doc) public boolean isFocusTraversalPolicySet()(Code)(Java Doc) public void layout()(Code)(Java Doc) public void list(PrintStream out, int indent)(Code)(Java Doc) public void list(PrintWriter out, int indent)(Code)(Java Doc) public Component locate(int x, int y)(Code)(Java Doc) public Dimension minimumSize()(Code)(Java Doc) public void paint(Graphics g)(Code)(Java Doc) public void paintComponents(Graphics g)(Code)(Java Doc) protected String paramString()(Code)(Java Doc) public Dimension preferredSize()(Code)(Java Doc) public void print(Graphics g)(Code)(Java Doc) public void printComponents(Graphics g)(Code)(Java Doc) protected void processContainerEvent(ContainerEvent e)(Code)(Java Doc) protected void processEvent(AWTEvent e)(Code)(Java Doc) public void remove(int index)(Code)(Java Doc) public void remove(Component comp)(Code)(Java Doc) public void removeAll()(Code)(Java Doc) public synchronized void removeContainerListener(ContainerListener l)(Code)(Java Doc) public void removeNotify()(Code)(Java Doc) public void setComponentZOrder(Component comp, int index)(Code)(Java Doc) public void setFocusCycleRoot(boolean focusCycleRoot)(Code)(Java Doc) public void setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)(Code)(Java Doc) public void setFocusTraversalPolicy(FocusTraversalPolicy policy)(Code)(Java Doc) final public void setFocusTraversalPolicyProvider(boolean provider)(Code)(Java Doc) public void setFont(Font f)(Code)(Java Doc) public void setLayout(LayoutManager mgr)(Code)(Java Doc) public void transferFocusDownCycle()(Code)(Java Doc) public void update(Graphics g)(Code)(Java Doc) public void validate()(Code)(Java Doc) protected void validateTree()(Code)(Java Doc)
|
Methods inherited from java.awt.Component | public boolean action(Event evt, Object what)(Code)(Java Doc) public void add(PopupMenu popup)(Code)(Java Doc) public synchronized void addComponentListener(ComponentListener l)(Code)(Java Doc) public synchronized void addFocusListener(FocusListener l)(Code)(Java Doc) public void addHierarchyBoundsListener(HierarchyBoundsListener l)(Code)(Java Doc) public void addHierarchyListener(HierarchyListener l)(Code)(Java Doc) public synchronized void addInputMethodListener(InputMethodListener l)(Code)(Java Doc) public synchronized void addKeyListener(KeyListener l)(Code)(Java Doc) public synchronized void addMouseListener(MouseListener l)(Code)(Java Doc) public synchronized void addMouseMotionListener(MouseMotionListener l)(Code)(Java Doc) public synchronized void addMouseWheelListener(MouseWheelListener l)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) public synchronized void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc) public synchronized void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc) public void applyComponentOrientation(ComponentOrientation orientation)(Code)(Java Doc) public boolean areFocusTraversalKeysSet(int id)(Code)(Java Doc) public Rectangle bounds()(Code)(Java Doc) public int checkImage(Image image, ImageObserver observer)(Code)(Java Doc) public int checkImage(Image image, int width, int height, ImageObserver observer)(Code)(Java Doc) protected AWTEvent coalesceEvents(AWTEvent existingEvent, AWTEvent newEvent)(Code)(Java Doc) public boolean contains(int x, int y)(Code)(Java Doc) public boolean contains(Point p)(Code)(Java Doc) public Image createImage(ImageProducer producer)(Code)(Java Doc) public Image createImage(int width, int height)(Code)(Java Doc) public VolatileImage createVolatileImage(int width, int height)(Code)(Java Doc) public VolatileImage createVolatileImage(int width, int height, ImageCapabilities caps) throws AWTException(Code)(Java Doc) public void deliverEvent(Event e)(Code)(Java Doc) public void disable()(Code)(Java Doc) final protected void disableEvents(long eventsToDisable)(Code)(Java Doc) final public void dispatchEvent(AWTEvent e)(Code)(Java Doc) public void doLayout()(Code)(Java Doc) public void enable()(Code)(Java Doc) public void enable(boolean b)(Code)(Java Doc) final protected void enableEvents(long eventsToEnable)(Code)(Java Doc) public void enableInputMethods(boolean enable)(Code)(Java Doc) protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code)(Java Doc) protected void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)(Code)(Java Doc) protected void firePropertyChange(String propertyName, int oldValue, int newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, byte oldValue, byte newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, char oldValue, char newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, short oldValue, short newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, long oldValue, long newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, float oldValue, float newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, double oldValue, double newValue)(Code)(Java Doc) public AccessibleContext getAccessibleContext()(Code)(Java Doc) public float getAlignmentX()(Code)(Java Doc) public float getAlignmentY()(Code)(Java Doc) public Color getBackground()(Code)(Java Doc) public int getBaseline(int width, int height)(Code)(Java Doc) public BaselineResizeBehavior getBaselineResizeBehavior()(Code)(Java Doc) public Rectangle getBounds()(Code)(Java Doc) public Rectangle getBounds(Rectangle rv)(Code)(Java Doc) public ColorModel getColorModel()(Code)(Java Doc) public Component getComponentAt(int x, int y)(Code)(Java Doc) public Component getComponentAt(Point p)(Code)(Java Doc) public synchronized ComponentListener[] getComponentListeners()(Code)(Java Doc) public ComponentOrientation getComponentOrientation()(Code)(Java Doc) public Cursor getCursor()(Code)(Java Doc) public synchronized DropTarget getDropTarget()(Code)(Java Doc) public Container getFocusCycleRootAncestor()(Code)(Java Doc) public synchronized FocusListener[] getFocusListeners()(Code)(Java Doc) public Set<AWTKeyStroke> getFocusTraversalKeys(int id)(Code)(Java Doc) public boolean getFocusTraversalKeysEnabled()(Code)(Java Doc) public Font getFont()(Code)(Java Doc) public FontMetrics getFontMetrics(Font font)(Code)(Java Doc) public Color getForeground()(Code)(Java Doc) public Graphics getGraphics()(Code)(Java Doc) public GraphicsConfiguration getGraphicsConfiguration()(Code)(Java Doc) public int getHeight()(Code)(Java Doc) public synchronized HierarchyBoundsListener[] getHierarchyBoundsListeners()(Code)(Java Doc) public synchronized HierarchyListener[] getHierarchyListeners()(Code)(Java Doc) public boolean getIgnoreRepaint()(Code)(Java Doc) public InputContext getInputContext()(Code)(Java Doc) public synchronized InputMethodListener[] getInputMethodListeners()(Code)(Java Doc) public InputMethodRequests getInputMethodRequests()(Code)(Java Doc) public synchronized KeyListener[] getKeyListeners()(Code)(Java Doc) public T[] getListeners(Class<T> listenerType)(Code)(Java Doc) public Locale getLocale()(Code)(Java Doc) public Point getLocation()(Code)(Java Doc) public Point getLocation(Point rv)(Code)(Java Doc) public Point getLocationOnScreen()(Code)(Java Doc) public Dimension getMaximumSize()(Code)(Java Doc) public Dimension getMinimumSize()(Code)(Java Doc) public synchronized MouseListener[] getMouseListeners()(Code)(Java Doc) public synchronized MouseMotionListener[] getMouseMotionListeners()(Code)(Java Doc) public Point getMousePosition() throws HeadlessException(Code)(Java Doc) public synchronized MouseWheelListener[] getMouseWheelListeners()(Code)(Java Doc) public String getName()(Code)(Java Doc) public Container getParent()(Code)(Java Doc) public ComponentPeer getPeer()(Code)(Java Doc) public Dimension getPreferredSize()(Code)(Java Doc) public synchronized PropertyChangeListener[] getPropertyChangeListeners()(Code)(Java Doc) public synchronized PropertyChangeListener[] getPropertyChangeListeners(String propertyName)(Code)(Java Doc) public Dimension getSize()(Code)(Java Doc) public Dimension getSize(Dimension rv)(Code)(Java Doc) public Toolkit getToolkit()(Code)(Java Doc) final public Object getTreeLock()(Code)(Java Doc) public int getWidth()(Code)(Java Doc) public int getX()(Code)(Java Doc) public int getY()(Code)(Java Doc) public boolean gotFocus(Event evt, Object what)(Code)(Java Doc) public boolean handleEvent(Event evt)(Code)(Java Doc) public boolean hasFocus()(Code)(Java Doc) public void hide()(Code)(Java Doc) public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h)(Code)(Java Doc) public boolean inside(int x, int y)(Code)(Java Doc) public void invalidate()(Code)(Java Doc) public boolean isBackgroundSet()(Code)(Java Doc) public boolean isCursorSet()(Code)(Java Doc) public boolean isDisplayable()(Code)(Java Doc) public boolean isDoubleBuffered()(Code)(Java Doc) public boolean isEnabled()(Code)(Java Doc) public boolean isFocusCycleRoot(Container container)(Code)(Java Doc) public boolean isFocusOwner()(Code)(Java Doc) public boolean isFocusTraversable()(Code)(Java Doc) public boolean isFocusable()(Code)(Java Doc) public boolean isFontSet()(Code)(Java Doc) public boolean isForegroundSet()(Code)(Java Doc) public boolean isLightweight()(Code)(Java Doc) public boolean isMaximumSizeSet()(Code)(Java Doc) public boolean isMinimumSizeSet()(Code)(Java Doc) public boolean isOpaque()(Code)(Java Doc) public boolean isPreferredSizeSet()(Code)(Java Doc) public boolean isShowing()(Code)(Java Doc) public boolean isValid()(Code)(Java Doc) public boolean isVisible()(Code)(Java Doc) public boolean keyDown(Event evt, int key)(Code)(Java Doc) public boolean keyUp(Event evt, int key)(Code)(Java Doc) public void layout()(Code)(Java Doc) public void list()(Code)(Java Doc) public void list(PrintStream out)(Code)(Java Doc) public void list(PrintStream out, int indent)(Code)(Java Doc) public void list(PrintWriter out)(Code)(Java Doc) public void list(PrintWriter out, int indent)(Code)(Java Doc) public Component locate(int x, int y)(Code)(Java Doc) public Point location()(Code)(Java Doc) public boolean lostFocus(Event evt, Object what)(Code)(Java Doc) public Dimension minimumSize()(Code)(Java Doc) public boolean mouseDown(Event evt, int x, int y)(Code)(Java Doc) public boolean mouseDrag(Event evt, int x, int y)(Code)(Java Doc) public boolean mouseEnter(Event evt, int x, int y)(Code)(Java Doc) public boolean mouseExit(Event evt, int x, int y)(Code)(Java Doc) public boolean mouseMove(Event evt, int x, int y)(Code)(Java Doc) public boolean mouseUp(Event evt, int x, int y)(Code)(Java Doc) public void move(int x, int y)(Code)(Java Doc) public void nextFocus()(Code)(Java Doc) public void paint(Graphics g)(Code)(Java Doc) public void paintAll(Graphics g)(Code)(Java Doc) protected String paramString()(Code)(Java Doc) public boolean postEvent(Event e)(Code)(Java Doc) public Dimension preferredSize()(Code)(Java Doc) public boolean prepareImage(Image image, ImageObserver observer)(Code)(Java Doc) public boolean prepareImage(Image image, int width, int height, ImageObserver observer)(Code)(Java Doc) public void print(Graphics g)(Code)(Java Doc) public void printAll(Graphics g)(Code)(Java Doc) protected void processComponentEvent(ComponentEvent e)(Code)(Java Doc) protected void processEvent(AWTEvent e)(Code)(Java Doc) protected void processFocusEvent(FocusEvent e)(Code)(Java Doc) protected void processHierarchyBoundsEvent(HierarchyEvent e)(Code)(Java Doc) protected void processHierarchyEvent(HierarchyEvent e)(Code)(Java Doc) protected void processInputMethodEvent(InputMethodEvent e)(Code)(Java Doc) protected void processKeyEvent(KeyEvent e)(Code)(Java Doc) protected void processMouseEvent(MouseEvent e)(Code)(Java Doc) protected void processMouseMotionEvent(MouseEvent e)(Code)(Java Doc) protected void processMouseWheelEvent(MouseWheelEvent e)(Code)(Java Doc) public void remove(MenuComponent popup)(Code)(Java Doc) public synchronized void removeComponentListener(ComponentListener l)(Code)(Java Doc) public synchronized void removeFocusListener(FocusListener l)(Code)(Java Doc) public void removeHierarchyBoundsListener(HierarchyBoundsListener l)(Code)(Java Doc) public void removeHierarchyListener(HierarchyListener l)(Code)(Java Doc) public synchronized void removeInputMethodListener(InputMethodListener l)(Code)(Java Doc) public synchronized void removeKeyListener(KeyListener l)(Code)(Java Doc) public synchronized void removeMouseListener(MouseListener l)(Code)(Java Doc) public synchronized void removeMouseMotionListener(MouseMotionListener l)(Code)(Java Doc) public synchronized void removeMouseWheelListener(MouseWheelListener l)(Code)(Java Doc) public void removeNotify()(Code)(Java Doc) public synchronized void removePropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc) public synchronized void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc) public void repaint()(Code)(Java Doc) public void repaint(long tm)(Code)(Java Doc) public void repaint(int x, int y, int width, int height)(Code)(Java Doc) public void repaint(long tm, int x, int y, int width, int height)(Code)(Java Doc) public void requestFocus()(Code)(Java Doc) protected boolean requestFocus(boolean temporary)(Code)(Java Doc) public boolean requestFocusInWindow()(Code)(Java Doc) protected boolean requestFocusInWindow(boolean temporary)(Code)(Java Doc) public void reshape(int x, int y, int width, int height)(Code)(Java Doc) public void resize(int width, int height)(Code)(Java Doc) public void resize(Dimension d)(Code)(Java Doc) public void setBackground(Color c)(Code)(Java Doc) public void setBounds(int x, int y, int width, int height)(Code)(Java Doc) public void setBounds(Rectangle r)(Code)(Java Doc) public void setComponentOrientation(ComponentOrientation o)(Code)(Java Doc) public void setCursor(Cursor cursor)(Code)(Java Doc) public synchronized void setDropTarget(DropTarget dt)(Code)(Java Doc) public void setEnabled(boolean b)(Code)(Java Doc) public void setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)(Code)(Java Doc) public void setFocusTraversalKeysEnabled(boolean focusTraversalKeysEnabled)(Code)(Java Doc) public void setFocusable(boolean focusable)(Code)(Java Doc) public void setFont(Font f)(Code)(Java Doc) public void setForeground(Color c)(Code)(Java Doc) public void setIgnoreRepaint(boolean ignoreRepaint)(Code)(Java Doc) public void setLocale(Locale l)(Code)(Java Doc) public void setLocation(int x, int y)(Code)(Java Doc) public void setLocation(Point p)(Code)(Java Doc) public void setMaximumSize(Dimension maximumSize)(Code)(Java Doc) public void setMinimumSize(Dimension minimumSize)(Code)(Java Doc) public void setName(String name)(Code)(Java Doc) public void setPreferredSize(Dimension preferredSize)(Code)(Java Doc) public void setSize(int width, int height)(Code)(Java Doc) public void setSize(Dimension d)(Code)(Java Doc) public void setVisible(boolean b)(Code)(Java Doc) public void show()(Code)(Java Doc) public void show(boolean b)(Code)(Java Doc) public Dimension size()(Code)(Java Doc) public String toString()(Code)(Java Doc) public void transferFocus()(Code)(Java Doc) public void transferFocusBackward()(Code)(Java Doc) public void transferFocusUpCycle()(Code)(Java Doc) public void update(Graphics g)(Code)(Java Doc) public void validate()(Code)(Java Doc)
|
|
|