edu.iu.cnets.klatsch.gui
Class WidgetEntry

java.lang.Object
  extended by edu.iu.cnets.klatsch.gui.Widget
      extended by edu.iu.cnets.klatsch.gui.WidgetEntry

public class WidgetEntry
extends Widget

The entry widget accepts user input and delivers complete lines to the Main applet when appropriate.


Field Summary
(package private)  History history
          our input history
(package private)  java.lang.StringBuffer input
          our current input
(package private)  int point
          our current point within the input
 
Fields inherited from class edu.iu.cnets.klatsch.gui.Widget
parent, x1, x2, y1, y2
 
Constructor Summary
WidgetEntry(KlatschGui parent, int x1, int y1, int x2, int y2)
          Initializes a new entry widget.
 
Method Summary
protected  void draw()
          Draws the widget.
protected  void keyPressed(int which)
          Receives another keystroke.
 
Methods inherited from class edu.iu.cnets.klatsch.gui.Widget
clear, in, keyReleased, mouseDragged, mousePressed, mouseReleased
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

input

java.lang.StringBuffer input
our current input


point

int point
our current point within the input


history

History history
our input history

Constructor Detail

WidgetEntry

WidgetEntry(KlatschGui parent,
            int x1,
            int y1,
            int x2,
            int y2)
Initializes a new entry widget.

Method Detail

draw

protected void draw()
Draws the widget.

Specified by:
draw in class Widget

keyPressed

protected void keyPressed(int which)
Receives another keystroke.

Overrides:
keyPressed in class Widget
Parameters:
which - the key pressed