Back to index

wims  3.65+svn20090927
Classes | Public Member Functions
SharpTools.AddressField Class Reference

This class is used to only allow address input (letters followed by numbers). More...

Inheritance diagram for SharpTools.AddressField:
Inheritance graph
[legend]
Collaboration diagram for SharpTools.AddressField:
Collaboration graph
[legend]

List of all members.

Classes

class  NumberFilterDocument

Public Member Functions

CellPoint getAddress ()
 get the input address
void setAddress (CellPoint point)
 set the textfield to the specified address
 AddressField (int columns)
 Construct an address only text field.

Detailed Description

This class is used to only allow address input (letters followed by numbers).

It extends JTextField and provides its own Document Filter.

See also:
NumberField
Author:
Hua Zhong
Version:
Revision:
1.5

Definition at line 24 of file AddressField.java.


Constructor & Destructor Documentation

SharpTools.AddressField.AddressField ( int  columns) [inline]

Construct an address only text field.

Parameters:
columnsthe length of the text field

Definition at line 113 of file AddressField.java.

                                     {
       super(columns);
       setDocument(new NumberFilterDocument());
    }

Member Function Documentation

get the input address

Returns:
a CellPoint object that converted from the user's input

Definition at line 31 of file AddressField.java.

                                  {
       return Formula.parseAddress(getText());
    }

Here is the call graph for this function:

Here is the caller graph for this function:

set the textfield to the specified address

Parameters:
fa CellPoint object specifying the address

Definition at line 40 of file AddressField.java.

                                            {
       if (point == null)
           setText(null);
       else
           setText(point.toString());
    }

Here is the call graph for this function:

Here is the caller graph for this function:


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