APIdia Launch Partner
Top Inners Fields Constructors Methods
sun.awt.X11

pack-priv final Class XTextAreaPeer

extends XComponentPeer
implements TextAreaPeer
Class Inheritance
All Implemented Interfaces
java.awt.peer.TextAreaPeer, java.awt.peer.TextComponentPeer, java.awt.peer.ComponentPeer
Imports
java.awt.*, java.awt.peer.TextAreaPeer, java.awt.event.*, javax.swing.event.DocumentListener, .DocumentEvent, javax.swing.JTextArea, .JComponent, .JScrollPane, .JScrollBar, .UIDefaults, .JButton, .JViewport, .InputMap, .SwingUtilities, .TransferHandler, javax.swing.plaf.ComponentUI, .UIResource, .BorderUIResource, com.sun.java.swing.plaf.motif.MotifTextAreaUI, javax.swing.border.Border, .EmptyBorder, .CompoundBorder, .AbstractBorder, javax.swing.plaf.basic.BasicArrowButton, .BasicScrollBarUI, .BasicScrollPaneUI, java.beans.PropertyChangeEvent, .PropertyChangeListener, javax.swing.text.Caret, .DefaultCaret, .JTextComponent, java.awt.im.InputMethodRequests, sun.awt.AWTAccessor, .SunToolkit

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class
private static class
pack-priv static class
private static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private final boolean
private final XTextAreaPeer.JavaMouseEventHandler
private final XTextAreaPeer.AWTTextArea
private final XTextAreaPeer.AWTTextPane
Inherited from sun.awt.X11.XComponentPeer:
backgroundBACKGROUND_COLORbHasFocusboundsOperationdarkShadowfontforegroundFOREGROUND_COLORHIGHLIGHT_COLORisLayoutinglightShadowpaintPendingselectColorSHADOW_COLORsystemColors

Constructor Summary

AccessConstructor and Description
pack-priv
XTextAreaPeer(TextArea target)

Create a Text area.

Method Summary

Modifier and TypeMethod and Description
public void
dispose()

Overrides sun.awt.X11.XWindow.dispose.

Implements java.awt.peer.ComponentPeer.dispose.

Disposes all resources held by the component peer.

public void
focusGained(FocusEvent e)

Overrides sun.awt.X11.XComponentPeer.focusGained.

Called when component receives focus

public void
focusLost(FocusEvent e)

Overrides sun.awt.X11.XComponentPeer.focusLost.

Called when component loses focus

public int
public InputMethodRequests
public Dimension
public Dimension
getMinimumSize(int rows, int cols)

Implements java.awt.peer.TextAreaPeer.getMinimumSize.

Returns the minimum size of a textarea with the specified number of columns and rows.

public Dimension
getPreferredSize(int rows, int cols)

Implements java.awt.peer.TextAreaPeer.getPreferredSize.

Returns the preferred size of a textarea with the specified number of columns and rows.

public int
getSelectionEnd()

Implements java.awt.peer.TextComponentPeer.getSelectionEnd.

Returns the end index of the current selection.

public int
getSelectionStart()

Implements java.awt.peer.TextComponentPeer.getSelectionStart.

Returns the start index of the current selection.

public String
getText()

Implements java.awt.peer.TextComponentPeer.getText.

Returns the current content of the text component.

pack-priv void
pack-priv void
public void
pack-priv void
public boolean
handlesWheelScrolling()

Overrides sun.awt.X11.XComponentPeer.handlesWheelScrolling.

Implements java.awt.peer.ComponentPeer.handlesWheelScrolling.

Determines if the component handles wheel scrolling itself.

public void
insert(String txt, int p)

Implements java.awt.peer.TextAreaPeer.insert.

insert the text "txt on position "pos" in the array lines

public boolean
isFocusable()

Overrides sun.awt.X11.XComponentPeer.isFocusable.

Implements java.awt.peer.ComponentPeer.isFocusable.

Returns true when the component takes part in the focus traversal, false otherwise.

pack-priv void
public void
pSetCursor(Cursor cursor, boolean ignoreSubComponents)

Overrides sun.awt.X11.XComponentPeer.pSetCursor.

public void
repaint()

Overrides sun.awt.X11.XWindow.repaint.

Paint the component this method is called when the repaint instruction has been used

pack-priv void
public void
replaceRange(String txt, int s, int e)

Implements java.awt.peer.TextAreaPeer.replaceRange.

replace the text between the position "s" and "e" with "txt"

public void
select(int s, int e)

Implements java.awt.peer.TextComponentPeer.select.

Selects an area of the text component.

public void
setBackground(Color c)

Overrides sun.awt.X11.XComponentPeer.setBackground.

Implements java.awt.peer.ComponentPeer.setBackground.

Sets the background color of this component.

public void
setBounds(int x, int y, int width, int height, int op)

Overrides sun.awt.X11.XComponentPeer.setBounds.

Implements java.awt.peer.ComponentPeer.setBounds.

Sets the location or size or both of the component.

public void
setCaretPosition(int position)

Implements java.awt.peer.TextComponentPeer.setCaretPosition.

to be implemented.

public void
setEditable(boolean editable)

Implements java.awt.peer.TextComponentPeer.setEditable.

Sets if the text component should be editable or not.

public void
setEnabled(boolean enabled)

Overrides sun.awt.X11.XComponentPeer.setEnabled.

Implements java.awt.peer.ComponentPeer.setEnabled.

Enables or disables a component.

public void
setFont(Font f)

Overrides sun.awt.X11.XComponentPeer.setFont.

Implements java.awt.peer.ComponentPeer.setFont.

Sets the font of this component.

public void
setForeground(Color c)

Overrides sun.awt.X11.XComponentPeer.setForeground.

Implements java.awt.peer.ComponentPeer.setForeground.

Sets the foreground color of this component.

private void
public void
setText(String text)

Implements java.awt.peer.TextComponentPeer.setText.

Sets the content for the text component.

private void
public void
setVisible(boolean b)

Overrides sun.awt.X11.XComponentPeer.setVisible.

Implements java.awt.peer.ComponentPeer.setVisible.

Makes a component visible or invisible.

Inherited from sun.awt.X11.XComponentPeer:
addDropTargetapplyShapebeginLayoutbeginValidatecanDetermineObscuritycoalescePaintEventcreateBufferscreateImagecreateVolatileImagedestroyBuffersdraw3DOvaldraw3DOvaldraw3DRectdraw3DRectdrawMotif3DRectdrawScrollbarendLayoutendValidateflipgetBackBuffergetBackBufferCapsgetFontgetFontMetricsgetGraphicsgetGUIcolorsgetInsetsgetParentTopLevelgetPeerBackgroundgetPeerFontgetPeerForegroundgetPeerSizegetPreferredSizegetRGBvalsgetSystemColorsgetWinBackgroundhandleEventhandleF10JavaKeyEventhandleJavaFocusEventhandleJavaWindowFocusEventhasFocushideisEnabledisEventDisabledisInitialReshapeisObscuredisPaintPendingisReparentSupportedlayoutnotifyTextComponentChangeoperationToStringpaintpostInitpreInitprintpSetCursorremoveDropTargetreparentrequestFocusreshapesetBoundsOperationsetZOrderupdateCursorImmediatelyupdateGraphicsDataupdateMotifColorswrapInSequenced