swingwt.awt
Class TextComponent

java.lang.Object
  extended byswingwt.awt.Component
      extended byswingwt.awt.AWTSwingWrapper
          extended byswingwt.awt.TextComponent
All Implemented Interfaces:
ImageObserver, MenuContainer
Direct Known Subclasses:
TextArea, TextField

public class TextComponent
extends AWTSwingWrapper


Field Summary
 
Fields inherited from class swingwt.awt.AWTSwingWrapper
swingPeer
 
Fields inherited from class swingwt.awt.Component
accessibleContext, 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, ppeer, pPrefSize, pSize, pToolTipText, pVisible, RIGHT_ALIGNMENT, swingWTDefaultActionEventAdapter, swingWTEventAdapter, TOP_ALIGNMENT
 
Fields inherited from interface swingwt.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
TextComponent()
           
 
Method Summary
 void addTextListener(TextListener l)
           
 int getCaretPosition()
           
 EventListener[] getListeners(java.lang.Class listenerType)
           
 java.lang.String getText()
           
 TextListener[] getTextListeners()
           
 boolean isEditable()
           
 void removeTextListener(TextListener l)
           
 void select(int selectionStart, int selectionEnd)
           
 void selectAll()
           
 void setCaretPosition(int position)
           
 void setEditable(boolean b)
           
 void setSelectionEnd(int selectionEnd)
           
 void setSelectionStart(int selectionStart)
           
 void setText(java.lang.String t)
           
 
Methods inherited from class swingwt.awt.AWTSwingWrapper
addActionListener, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, calculatePreferredSize, componentOnlyDispose, computePreferredSize, contains, createImage, createVolatileImage, dispatchEvent, dispose, getAccessibleContext, getActionCommand, getAlignmentX, getAlignmentY, getBackground, getBounds, getComponentOrientation, getCursor, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPeerSize, getPreferredSize, getSize, getSWTPeer, getToolkit, getToolTipText, getTreeLock, getWidth, getX, getY, grabFocus, hasFocus, hasSetFont, hide, imageUpdate, invalidate, isEnabled, isFocusable, isMinimumSizeSet, isShowing, isVisible, minimumSize, preferredSize, removeActionListener, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, repaint, repaint, repaint, requestFocus, setActionCommand, setAlignmentX, setAlignmentY, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setFont, setForeground, setHeight, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setSwingWTParent, setToolTipText, setVisible, setWidth, show, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
 
Methods inherited from class swingwt.awt.Component
add, addMouseWheelListener, contains, createListenerArrayFromVector, getSize, inside, paint, paintComponent, processActionEvent, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, processTraverseEvent, registerActionEvents, registerComponentEvents, registerEvents, registerExtendedModifyEvents, registerFocusEvents, registerKeyEvents, registerModifyEvents, registerMouseEvents, registerPaintEvents, registerTraversalEvents, remove, removeMouseWheelListener, setCachedProperties, setComponentRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextComponent

public TextComponent()
Method Detail

getCaretPosition

public int getCaretPosition()

getText

public java.lang.String getText()

isEditable

public boolean isEditable()

select

public void select(int selectionStart,
                   int selectionEnd)

selectAll

public void selectAll()

setCaretPosition

public void setCaretPosition(int position)

setEditable

public void setEditable(boolean b)

setSelectionEnd

public void setSelectionEnd(int selectionEnd)

setSelectionStart

public void setSelectionStart(int selectionStart)

setText

public void setText(java.lang.String t)

addTextListener

public void addTextListener(TextListener l)

getListeners

public EventListener[] getListeners(java.lang.Class listenerType)
Overrides:
getListeners in class Component

getTextListeners

public TextListener[] getTextListeners()

removeTextListener

public void removeTextListener(TextListener l)