All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.BSMaskedTextFieldsSampleApplets.BSEmployeeDataApplet

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----COM.BSMaskedTextFieldsSampleApplets.BSEmployeeDataApplet

public class BSEmployeeDataApplet
extends Applet
implements ActionListener
A sample Applet for testing BSMaskedTextFields.

This Applet allows you to enter sample data for a fictional employee.

Clicking on the Process button will cause the applet to check if all required TextFields are complete, and if so to process the data and display the results in the lower TextArea. The processing is only intended to show how the different TextFields can be accessed for their String, primitive, or primitive wrapper values.


Variable Index

 o INCOMPLETE
 o ivjCityLabel
 o ivjCityTextField
 o ivjCountryLabel
 o ivjDOBBSDateTextField
 o ivjDOBLabel
 o ivjFirstNameLabel
 o ivjFirstNameTextField
 o ivjLabel7
 o ivjLastNameLabel
 o ivjLastNameTextField
 o ivjPhoneNumberTextField
 o ivjProccessedDataLabel
 o ivjProcessButton
 o ivjProcessedDataTextArea
 o ivjSSNLabel
 o ivjSSNTextField
 o ivjStateLabel
 o ivjStateTextField
 o ivjStreetAddressLabel
 o ivjStreetAddressTextField
 o ivjUSA
 o ivjZipCodeLabel
 o ivjZipCodeTextField

Constructor Index

 o BSEmployeeDataApplet()

Method Index

 o actionPerformed(ActionEvent)
Method to handle events for the ActionListener interface.
 o conn0(ActionEvent)
conn0: (ProcessButton.action.actionPerformed(java.awt.event.ActionEvent) --> BSEmployeeDataApplet.processEmployeeData()Ljava.lang.String;)
 o conn1(String)
conn1: ( (ProcessButton,action.actionPerformed(java.awt.event.ActionEvent) --> BSEmployeeDataApplet,processEmployeeData()Ljava.lang.String;).normalResult --> ProcessedDataTextArea.text)
 o conn2()
conn2: (BSEmployeeDataApplet.start() --> FirstNameTextField.requestFocus())
 o getAppletInfo()
Gets the applet information.
 o getCityLabel()
Return the CityLabel property value.
 o getCityTextField()
Return the CityTextField property value.
 o getCountryLabel()
Return the CountryLabel property value.
 o getDOBBSDateTextField()
Return the DOBBSDateTextField property value.
 o getDOBLabel()
Return the DOBLabel property value.
 o getFirstNameLabel()
Return the FirstNameLabel property value.
 o getFirstNameTextField()
Return the FirstNameTextField property value.
 o getLabel7()
Return the Label7 property value.
 o getLastNameLabel()
Return the LastNameLabel property value.
 o getLastNameTextField()
Return the LastNameTextField property value.
 o getPhoneNumberTextField()
Return the PhoneNumberTextField property value.
 o getProccessedDataLabel()
Return the ProccessedDataLabel property value.
 o getProcessButton()
Return the ProcessButton property value.
 o getProcessedDataTextArea()
Return the ProcessedDataTextArea property value.
 o getSSNLabel()
Return the SSNLabel property value.
 o getSSNTextField()
Return the SSNTextField property value.
 o getStateLabel()
Return the StateLabel property value.
 o getStateTextField()
Return the StateTextField property value.
 o getStreetAddressLabel()
Return the StreetAddressLabel property value.
 o getStreetAddressTextField()
Return the StreetAddressTextField property value.
 o getUSA()
Return the USA property value.
 o getZipCodeLabel()
Return the ZipCodeLabel property value.
 o getZipCodeTextField()
Return the ZipCodeTextField property value.
 o handleException(Throwable)
Called whenever the part throws an exception.
 o init()
Handle the Applet init method.
 o initConnections()
Initializes connections
 o main(String[])
main entrypoint - starts the part when it is run as an application
 o processEmployeeData()
This method does 'some' processing on the fictional employee data which has been entered and returns a String to be put into a TextArea.
 o start()
Method to handle events for the Applet interface.

Variables

 o INCOMPLETE
 private final String INCOMPLETE
 o ivjCityLabel
 private Label ivjCityLabel
 o ivjCityTextField
 private TextField ivjCityTextField
 o ivjCountryLabel
 private Label ivjCountryLabel
 o ivjDOBBSDateTextField
 private BSDateTextField ivjDOBBSDateTextField
 o ivjDOBLabel
 private Label ivjDOBLabel
 o ivjFirstNameLabel
 private Label ivjFirstNameLabel
 o ivjFirstNameTextField
 private TextField ivjFirstNameTextField
 o ivjLabel7
 private Label ivjLabel7
 o ivjLastNameLabel
 private Label ivjLastNameLabel
 o ivjLastNameTextField
 private TextField ivjLastNameTextField
 o ivjPhoneNumberTextField
 private BSMaskedTextField ivjPhoneNumberTextField
 o ivjProccessedDataLabel
 private Label ivjProccessedDataLabel
 o ivjProcessButton
 private Button ivjProcessButton
 o ivjProcessedDataTextArea
 private TextArea ivjProcessedDataTextArea
 o ivjSSNLabel
 private Label ivjSSNLabel
 o ivjSSNTextField
 private BSMaskedTextField ivjSSNTextField
 o ivjStateLabel
 private Label ivjStateLabel
 o ivjStateTextField
 private BSMaskedTextField ivjStateTextField
 o ivjStreetAddressLabel
 private Label ivjStreetAddressLabel
 o ivjStreetAddressTextField
 private TextField ivjStreetAddressTextField
 o ivjUSA
 private Label ivjUSA
 o ivjZipCodeLabel
 private Label ivjZipCodeLabel
 o ivjZipCodeTextField
 private BSMaskedTextField ivjZipCodeTextField

Constructors

 o BSEmployeeDataApplet
 public BSEmployeeDataApplet()

Methods

 o actionPerformed
 public void actionPerformed(ActionEvent e)
Method to handle events for the ActionListener interface.

Parameters:
e - java.awt.event.ActionEvent
 o conn0
 private String conn0(ActionEvent arg1)
conn0: (ProcessButton.action.actionPerformed(java.awt.event.ActionEvent) --> BSEmployeeDataApplet.processEmployeeData()Ljava.lang.String;)

Parameters:
arg1 - java.awt.event.ActionEvent
Returns:
java.lang.String
 o conn1
 private void conn1(String result)
conn1: ( (ProcessButton,action.actionPerformed(java.awt.event.ActionEvent) --> BSEmployeeDataApplet,processEmployeeData()Ljava.lang.String;).normalResult --> ProcessedDataTextArea.text)

Parameters:
result - java.lang.String
 o conn2
 private void conn2()
conn2: (BSEmployeeDataApplet.start() --> FirstNameTextField.requestFocus())

 o getAppletInfo
 public String getAppletInfo()
Gets the applet information.

Returns:
java.lang.String
Overrides:
getAppletInfo in class Applet
 o getCityLabel
 private Label getCityLabel()
Return the CityLabel property value.

Returns:
java.awt.Label
 o getCityTextField
 private TextField getCityTextField()
Return the CityTextField property value.

Returns:
java.awt.TextField
 o getCountryLabel
 private Label getCountryLabel()
Return the CountryLabel property value.

Returns:
java.awt.Label
 o getDOBBSDateTextField
 private BSDateTextField getDOBBSDateTextField()
Return the DOBBSDateTextField property value.

Returns:
COM.BSMaskedTextFields.BSDateTextField
 o getDOBLabel
 private Label getDOBLabel()
Return the DOBLabel property value.

Returns:
java.awt.Label
 o getFirstNameLabel
 private Label getFirstNameLabel()
Return the FirstNameLabel property value.

Returns:
java.awt.Label
 o getFirstNameTextField
 private TextField getFirstNameTextField()
Return the FirstNameTextField property value.

Returns:
java.awt.TextField
 o getLabel7
 private Label getLabel7()
Return the Label7 property value.

Returns:
java.awt.Label
 o getLastNameLabel
 private Label getLastNameLabel()
Return the LastNameLabel property value.

Returns:
java.awt.Label
 o getLastNameTextField
 private TextField getLastNameTextField()
Return the LastNameTextField property value.

Returns:
java.awt.TextField
 o getPhoneNumberTextField
 private BSMaskedTextField getPhoneNumberTextField()
Return the PhoneNumberTextField property value.

Returns:
COM.BSMaskedTextFields.BSMaskedTextField
 o getProccessedDataLabel
 private Label getProccessedDataLabel()
Return the ProccessedDataLabel property value.

Returns:
java.awt.Label
 o getProcessButton
 private Button getProcessButton()
Return the ProcessButton property value.

Returns:
java.awt.Button
 o getProcessedDataTextArea
 private TextArea getProcessedDataTextArea()
Return the ProcessedDataTextArea property value.

Returns:
java.awt.TextArea
 o getSSNLabel
 private Label getSSNLabel()
Return the SSNLabel property value.

Returns:
java.awt.Label
 o getSSNTextField
 private BSMaskedTextField getSSNTextField()
Return the SSNTextField property value.

Returns:
COM.BSMaskedTextFields.BSMaskedTextField
 o getStateLabel
 private Label getStateLabel()
Return the StateLabel property value.

Returns:
java.awt.Label
 o getStateTextField
 private BSMaskedTextField getStateTextField()
Return the StateTextField property value.

Returns:
COM.BSMaskedTextFields.BSMaskedTextField
 o getStreetAddressLabel
 private Label getStreetAddressLabel()
Return the StreetAddressLabel property value.

Returns:
java.awt.Label
 o getStreetAddressTextField
 private TextField getStreetAddressTextField()
Return the StreetAddressTextField property value.

Returns:
java.awt.TextField
 o getUSA
 private Label getUSA()
Return the USA property value.

Returns:
java.awt.Label
 o getZipCodeLabel
 private Label getZipCodeLabel()
Return the ZipCodeLabel property value.

Returns:
java.awt.Label
 o getZipCodeTextField
 private BSMaskedTextField getZipCodeTextField()
Return the ZipCodeTextField property value.

Returns:
COM.BSMaskedTextFields.BSMaskedTextField
 o handleException
 private void handleException(Throwable exception)
Called whenever the part throws an exception.

Parameters:
exception - java.lang.Throwable
 o init
 public void init()
Handle the Applet init method.

Overrides:
init in class Applet
 o initConnections
 private void initConnections()
Initializes connections

 o main
 public static void main(String args[])
main entrypoint - starts the part when it is run as an application

Parameters:
args - java.lang.String[]
 o processEmployeeData
 private String processEmployeeData()
This method does 'some' processing on the fictional employee data which has been entered and returns a String to be put into a TextArea. The processing serves to prove that the BSMaskedTextFields can be accessed in a variety of ways to obtain String values as well as Java types and primitives.

Returns:
java.lang.String
 o start
 public void start()
Method to handle events for the Applet interface.

Overrides:
start in class Applet

All Packages  Class Hierarchy  This Package  Previous  Next  Index