swingwtx.swing
Class JTextArea
java.lang.Object
swingwt.awt.Component
swingwt.awt.Container
swingwtx.swing.JComponent
swingwtx.swing.text.JTextComponent
swingwtx.swing.JTextArea
- All Implemented Interfaces:
- ImageObserver, MenuContainer
- public class JTextArea
- extends JTextComponent
Fields inherited from class swingwtx.swing.JComponent |
accessibleContext, actionMap, ancestorInputMap, border, clientProperties, descendantHasPeer, focusInputMap, internalFrameAdapter, internalFrameParent, opaque, propertyChangeListeners, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW, windowInputMap |
Fields inherited from class swingwt.awt.Component |
actionCommand, actionListeners, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListeners, componentName, consumeAvailableHeight, consumeAvailableWidth, focusable, focusListeners, graphicsConfig, inputMethodListeners, isUserSetFont, keyListeners, layoutModifier, LEFT_ALIGNMENT, LOCK, mouseListeners, mouseMotionListeners, mouseWheelListeners, parent, pBackground, pCursor, pDoubleBuffered, peer, pEnabled, pFont, pForeground, pLayoutData, pLocation, pMaxSize, pMinSize, pPrefSize, pSize, pToolTipText, pVisible, RIGHT_ALIGNMENT, swingWTDefaultActionEventAdapter, swingWTEventAdapter, TOP_ALIGNMENT |
Methods inherited from class swingwtx.swing.text.JTextComponent |
addInputMethodListener, copy, cut, getCaret, getCaretPosition, getDocument, getSelectionEnd, getSelectionStart, getText, isEditable, paste, replaceSelection, select, selectAll, setCaret, setCaretPosition, setDocument, setEditable, setSelectedTextColor, setSelectionColor, setSelectionEnd, setSelectionStart, setText |
Methods inherited from class swingwtx.swing.JComponent |
add, add, add, add, add, addPropertyChangeListener, addPropertyChangeListener, checkInternalFrameChild, dispose, getAccessibleContext, getActionMap, getAutoscrolls, getBorder, getClientProperty, getInputMap, getInsets, getToolTipLocation, getToolTipText, getTopLevelAncestor, getVisibleRect, isDoubleBuffered, isOpaque, isOptimizedDrawingEnabled, isValidateRoot, paint, paintBackground, paintChildren, paintComponent, paintImmediately, paintImmediately, putClientProperty, remove, remove, removePropertyChangeListener, removePropertyChangeListener, repaint, revalidate, scrollRectToVisible, setActionMap, setAutoscrolls, setBorder, setDoubleBuffered, setInputMap, setMargin, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled |
Methods inherited from class swingwt.awt.Container |
addComponentToLayout, addContainerListener, debug_showContainmentTree, doAdd, doLayout, getComponent, getComponentCount, getComponentOrientation, getComponents, getComposite, getLayout, getMaximumSize, getMinimumSize, getParent, getPreferredSize, invalidate, minimumSize, preferredSize, processContainerEvent, processEvent, queuedValidate, removeAll, removeComponentFromCache, removeContainerListener, setLayout, setLayoutImpl, validate |
Methods inherited from class swingwt.awt.Component |
add, addActionListener, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, componentOnlyDispose, contains, contains, createImage, createListenerArrayFromVector, createVolatileImage, dispatchEvent, getActionCommand, getAlignmentX, getAlignmentY, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getListeners, getLocation, getLocationOnScreen, getName, getPeer, getPeerSize, getSize, getSize, getSWTPeer, getToolkit, getToolTipText, getTreeLock, getWidth, getX, getY, grabFocus, hasFocus, hasSetFont, hide, imageUpdate, inside, isEnabled, isFocusable, isMinimumSizeSet, isShowing, isVisible, processActionEvent, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, processTraverseEvent, registerActionEvents, registerComponentEvents, registerEvents, registerExtendedModifyEvents, registerFocusEvents, registerKeyEvents, registerModifyEvents, registerMouseEvents, registerPaintEvents, registerTraversalEvents, remove, removeActionListener, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, repaint, repaint, repaint, requestFocus, setActionCommand, setAlignmentX, setAlignmentY, setBackground, setBounds, setBounds, setCachedProperties, setComponentOrientation, setComponentRemoved, setCursor, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setFont, setForeground, setHeight, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setSize, setSize, setToolTipText, setVisible, setWidth, show, transferFocus, transferFocusBackward, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pWordWrap
protected boolean pWordWrap
pRows
protected int pRows
pCols
protected int pCols
JTextArea
public JTextArea()
JTextArea
public JTextArea(java.lang.String text)
JTextArea
public JTextArea(int rows,
int columns)
JTextArea
public JTextArea(java.lang.String text,
int rows,
int columns)
JTextArea
public JTextArea(Document doc)
JTextArea
public JTextArea(Document doc,
java.lang.String text,
int rows,
int columns)
setHorizontalScrollPane
public void setHorizontalScrollPane(boolean scroll)
setVerticalScrollPane
public void setVerticalScrollPane(boolean scroll)
getHorizontalScrollPane
public boolean getHorizontalScrollPane()
getVerticalScrollPane
public boolean getVerticalScrollPane()
setScrollPane
public void setScrollPane(JScrollPane pane)
setColumns
public void setColumns(int columns)
setRows
public void setRows(int rows)
getColumns
public int getColumns()
getRows
public int getRows()
calculateFromRowsCols
protected void calculateFromRowsCols()
- Calculates the component's preferred size based on how
many rows/columns the user chose.
append
public void append(java.lang.String text)
getLineWrap
public boolean getLineWrap()
setLineWrap
public void setLineWrap(boolean b)
getWrapStyleWord
public boolean getWrapStyleWord()
setWrapStyleWord
public void setWrapStyleWord(boolean b)
calculatePreferredSize
protected Dimension calculatePreferredSize()
- Overriden to calculate non-realised
preferred size.
- Overrides:
calculatePreferredSize
in class Component
computePreferredSize
protected Dimension computePreferredSize()
- Overriden so we can make sure that text areas aren't
too small to match Swing.
- Overrides:
computePreferredSize
in class Component
setSwingWTParent
public void setSwingWTParent(Container parent)
throws java.lang.Exception
- Once a parent component receives an "add" call for a child, this being
the child, this should be called to tell us to instantiate the peer
and load in any cached properties.
- Overrides:
setSwingWTParent
in class JTextComponent
- Throws:
java.lang.Exception