Crossfire JXClient, Trunk
Public Member Functions | Package Attributes | List of all members
InputField Class Reference
Inheritance diagram for InputField:
Inheritance graph
Collaboration diagram for InputField:
Collaboration graph

Public Member Functions

String getValue ()
 
 InputField (String initValue, Applet app, int width, int height, Color bgColor, Color fgColor)
 
void keyReleased (KeyEvent e)
 
void paint (Graphics g, int x, int y)
 
void processKey (KeyEvent e)
 
void selected ()
 
void setText (String val)
 

Package Attributes

Applet app
 
Color bgColor
 
char buffer []
 
int cursorPos = 0
 
Color fgColor
 
int height
 
int maxchars = 50
 
int nChars
 
String sval
 
int width
 

Detailed Description

Definition at line 823 of file SpreadSheet.java.

Constructor & Destructor Documentation

◆ InputField()

InputField.InputField ( String  initValue,
Applet  app,
int  width,
int  height,
Color  bgColor,
Color  fgColor 
)

Definition at line 836 of file SpreadSheet.java.

References app, bgColor, buffer, fgColor, height, maxchars, nChars, sval, and width.

Member Function Documentation

◆ getValue()

String InputField.getValue ( )

Definition at line 867 of file SpreadSheet.java.

References sval.

◆ keyReleased()

void InputField.keyReleased ( KeyEvent  e)

Definition at line 901 of file SpreadSheet.java.

◆ paint()

void InputField.paint ( Graphics  g,
int  x,
int  y 
)

Definition at line 871 of file SpreadSheet.java.

References bgColor, fgColor, height, sval, and width.

Referenced by SpreadSheet.paint().

Here is the caller graph for this function:

◆ processKey()

void InputField.processKey ( KeyEvent  e)

Definition at line 880 of file SpreadSheet.java.

References app, buffer, nChars, selected(), and sval.

Referenced by SpreadSheet.keyTyped().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ selected()

void InputField.selected ( )

Reimplemented in SpreadSheetInput.

Definition at line 904 of file SpreadSheet.java.

Referenced by processKey().

Here is the caller graph for this function:

◆ setText()

void InputField.setText ( String  val)

Definition at line 852 of file SpreadSheet.java.

References buffer, maxchars, nChars, and sval.

Referenced by SpreadSheet.mousePressed().

Here is the caller graph for this function:

Member Data Documentation

◆ app

Applet InputField.app
package

◆ bgColor

Color InputField.bgColor
package

Definition at line 833 of file SpreadSheet.java.

Referenced by InputField(), paint(), and SpreadSheetInput.SpreadSheetInput().

◆ buffer

char InputField.buffer[]
package

Definition at line 829 of file SpreadSheet.java.

Referenced by InputField(), processKey(), and setText().

◆ cursorPos

int InputField.cursorPos = 0
package

Definition at line 826 of file SpreadSheet.java.

◆ fgColor

Color InputField.fgColor
package

Definition at line 834 of file SpreadSheet.java.

Referenced by InputField(), paint(), and SpreadSheetInput.SpreadSheetInput().

◆ height

int InputField.height
package

Definition at line 832 of file SpreadSheet.java.

Referenced by InputField(), paint(), and SpreadSheetInput.SpreadSheetInput().

◆ maxchars

int InputField.maxchars = 50
package

Definition at line 825 of file SpreadSheet.java.

Referenced by InputField(), and setText().

◆ nChars

int InputField.nChars
package

Definition at line 830 of file SpreadSheet.java.

Referenced by InputField(), processKey(), and setText().

◆ sval

String InputField.sval
package

◆ width

int InputField.width
package

Definition at line 831 of file SpreadSheet.java.

Referenced by InputField(), paint(), and SpreadSheetInput.SpreadSheetInput().


The documentation for this class was generated from the following file: