kAWT Version 0.90

java.awt
Class TextField

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

public class TextField
extends TextComponent

Limitations


Constructor Summary
TextField()
           
TextField(int cols)
           
TextField(String s)
           
TextField(String text, int cols)
           
 
Method Summary
 boolean echoCharIsSet()
           
 char getEchoChar()
           
 Dimension getMinimumSize()
           
 String getText()
           
 void paint(Graphics g)
           
 void processKeyEvent(KeyEvent ke)
           
 void processMouseEvent(MouseEvent me)
          Does not work because of the type cast Problem!
 void setEchoChar(char c)
           
 void setText(String newText)
           
 
Methods inherited from class java.awt.TextComponent
addTextListener, getCaretPosition, getSelectedText, getSelectionEnd, getSelectionStart, isEditable, removeTextListener, select, selectAll, setCaretPosition, setEditable, setSelectionEnd, setSelectionStart
 
Methods inherited from class java.awt.Component
addKeyListener, addMouseListener, contains, findComponentAt, getBounds, getFont, getFontMetrics, getGraphics, getHeight, getLocationOnScreen, getMaximumSize, getParent, getPreferredSize, getSize, getWidth, getX, getY, invalidate, isEnabled, isValid, isVisible, paintAll, 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

TextField

public TextField()

TextField

public TextField(int cols)

TextField

public TextField(String s)

TextField

public TextField(String text,
                 int cols)
Method Detail

echoCharIsSet

public boolean echoCharIsSet()

getEchoChar

public char getEchoChar()

getMinimumSize

public Dimension getMinimumSize()
Overrides:
getMinimumSize in class Component

getText

public String getText()
Overrides:
getText in class TextComponent

paint

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

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

processKeyEvent

public void processKeyEvent(KeyEvent ke)
Overrides:
processKeyEvent in class Component

setEchoChar

public void setEchoChar(char c)

setText

public void setText(String newText)
Overrides:
setText in class TextComponent

kAWT Version 0.90