kAWT Version 0.95

java.awt
Class TextArea

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.TextComponent
              |
              +--java.awt.TextArea

public class TextArea
extends TextComponent

The kAWT TextArea currently does NOT support editing. It depends on hard line breaks and does not perform any word wrap.


Constructor Summary
TextArea()
           
 
Method Summary
 void doLayout()
           
 Component findComponentAt(int px, int py)
           
 Dimension getPreferredSize()
           
 void paintAll(Graphics g)
           
 void processMouseEvent(MouseEvent me)
          Does not work because of the type cast Problem!
 void setText(String text)
          FIXME: currently, max width is not updated.
 
Methods inherited from class java.awt.TextComponent
addTextListener, drawLine, getCaretPosition, getSelectedText, getSelectionEnd, getSelectionStart, getText, isEditable, removeTextListener, select, selectAll, setCaretPosition, setEditable, setSelectionEnd, setSelectionStart
 
Methods inherited from class java.awt.Component
addKeyListener, addMouseListener, addMouseMotionListener, contains, getBounds, getFont, getFontMetrics, getGraphics, getHeight, getLocationOnScreen, getMaximumSize, getMinimumSize, getParent, getSize, getWidth, getX, getY, invalidate, isEnabled, isValid, isVisible, paint, processKeyEvent, proxyRequestFocus, repaint, repaint, requestFocus, setBackground, setBounds, setEnabled, setForeground, setLocation, setSize, setSize, setVisible, update, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextArea

public TextArea()
Method Detail

paintAll

public void paintAll(Graphics g)
Overrides:
paintAll in class Component

doLayout

public void doLayout()

findComponentAt

public Component findComponentAt(int px,
                                 int py)
Overrides:
findComponentAt in class Component

getPreferredSize

public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Component

setText

public void setText(String text)
FIXME: currently, max width is not updated.
Overrides:
setText in class TextComponent

processMouseEvent

public void processMouseEvent(MouseEvent me)
Description copied from class: Component
Does not work because of the type cast Problem! All event sources call the specialized method (e.g. processMouseEvent) directly
Overrides:
processMouseEvent in class Component

kAWT Version 0.95