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.
-
INCOMPLETE
-
-
ivjCityLabel
-
-
ivjCityTextField
-
-
ivjCountryLabel
-
-
ivjDOBBSDateTextField
-
-
ivjDOBLabel
-
-
ivjFirstNameLabel
-
-
ivjFirstNameTextField
-
-
ivjLabel7
-
-
ivjLastNameLabel
-
-
ivjLastNameTextField
-
-
ivjPhoneNumberTextField
-
-
ivjProccessedDataLabel
-
-
ivjProcessButton
-
-
ivjProcessedDataTextArea
-
-
ivjSSNLabel
-
-
ivjSSNTextField
-
-
ivjStateLabel
-
-
ivjStateTextField
-
-
ivjStreetAddressLabel
-
-
ivjStreetAddressTextField
-
-
ivjUSA
-
-
ivjZipCodeLabel
-
-
ivjZipCodeTextField
-
-
BSEmployeeDataApplet()
-
-
actionPerformed(ActionEvent)
- Method to handle events for the ActionListener interface.
-
conn0(ActionEvent)
- conn0: (ProcessButton.action.actionPerformed(java.awt.event.ActionEvent) --> BSEmployeeDataApplet.processEmployeeData()Ljava.lang.String;)
-
conn1(String)
- conn1: ( (ProcessButton,action.actionPerformed(java.awt.event.ActionEvent) --> BSEmployeeDataApplet,processEmployeeData()Ljava.lang.String;).normalResult --> ProcessedDataTextArea.text)
-
conn2()
- conn2: (BSEmployeeDataApplet.start() --> FirstNameTextField.requestFocus())
-
getAppletInfo()
- Gets the applet information.
-
getCityLabel()
- Return the CityLabel property value.
-
getCityTextField()
- Return the CityTextField property value.
-
getCountryLabel()
- Return the CountryLabel property value.
-
getDOBBSDateTextField()
- Return the DOBBSDateTextField property value.
-
getDOBLabel()
- Return the DOBLabel property value.
-
getFirstNameLabel()
- Return the FirstNameLabel property value.
-
getFirstNameTextField()
- Return the FirstNameTextField property value.
-
getLabel7()
- Return the Label7 property value.
-
getLastNameLabel()
- Return the LastNameLabel property value.
-
getLastNameTextField()
- Return the LastNameTextField property value.
-
getPhoneNumberTextField()
- Return the PhoneNumberTextField property value.
-
getProccessedDataLabel()
- Return the ProccessedDataLabel property value.
-
getProcessButton()
- Return the ProcessButton property value.
-
getProcessedDataTextArea()
- Return the ProcessedDataTextArea property value.
-
getSSNLabel()
- Return the SSNLabel property value.
-
getSSNTextField()
- Return the SSNTextField property value.
-
getStateLabel()
- Return the StateLabel property value.
-
getStateTextField()
- Return the StateTextField property value.
-
getStreetAddressLabel()
- Return the StreetAddressLabel property value.
-
getStreetAddressTextField()
- Return the StreetAddressTextField property value.
-
getUSA()
- Return the USA property value.
-
getZipCodeLabel()
- Return the ZipCodeLabel property value.
-
getZipCodeTextField()
- Return the ZipCodeTextField property value.
-
handleException(Throwable)
- Called whenever the part throws an exception.
-
init()
- Handle the Applet init method.
-
initConnections()
- Initializes connections
-
main(String[])
- main entrypoint - starts the part when it is run as an application
-
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.
-
start()
- Method to handle events for the Applet interface.
INCOMPLETE
private final String INCOMPLETE
ivjCityLabel
private Label ivjCityLabel
ivjCityTextField
private TextField ivjCityTextField
ivjCountryLabel
private Label ivjCountryLabel
ivjDOBBSDateTextField
private BSDateTextField ivjDOBBSDateTextField
ivjDOBLabel
private Label ivjDOBLabel
ivjFirstNameLabel
private Label ivjFirstNameLabel
ivjFirstNameTextField
private TextField ivjFirstNameTextField
ivjLabel7
private Label ivjLabel7
ivjLastNameLabel
private Label ivjLastNameLabel
ivjLastNameTextField
private TextField ivjLastNameTextField
ivjPhoneNumberTextField
private BSMaskedTextField ivjPhoneNumberTextField
ivjProccessedDataLabel
private Label ivjProccessedDataLabel
ivjProcessButton
private Button ivjProcessButton
ivjProcessedDataTextArea
private TextArea ivjProcessedDataTextArea
ivjSSNLabel
private Label ivjSSNLabel
ivjSSNTextField
private BSMaskedTextField ivjSSNTextField
ivjStateLabel
private Label ivjStateLabel
ivjStateTextField
private BSMaskedTextField ivjStateTextField
ivjStreetAddressLabel
private Label ivjStreetAddressLabel
ivjStreetAddressTextField
private TextField ivjStreetAddressTextField
ivjUSA
private Label ivjUSA
ivjZipCodeLabel
private Label ivjZipCodeLabel
ivjZipCodeTextField
private BSMaskedTextField ivjZipCodeTextField
BSEmployeeDataApplet
public BSEmployeeDataApplet()
actionPerformed
public void actionPerformed(ActionEvent e)
- Method to handle events for the ActionListener interface.
- Parameters:
- e - java.awt.event.ActionEvent
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
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
conn2
private void conn2()
- conn2: (BSEmployeeDataApplet.start() --> FirstNameTextField.requestFocus())
getAppletInfo
public String getAppletInfo()
- Gets the applet information.
- Returns:
- java.lang.String
- Overrides:
- getAppletInfo in class Applet
getCityLabel
private Label getCityLabel()
- Return the CityLabel property value.
- Returns:
- java.awt.Label
getCityTextField
private TextField getCityTextField()
- Return the CityTextField property value.
- Returns:
- java.awt.TextField
getCountryLabel
private Label getCountryLabel()
- Return the CountryLabel property value.
- Returns:
- java.awt.Label
getDOBBSDateTextField
private BSDateTextField getDOBBSDateTextField()
- Return the DOBBSDateTextField property value.
- Returns:
- COM.BSMaskedTextFields.BSDateTextField
getDOBLabel
private Label getDOBLabel()
- Return the DOBLabel property value.
- Returns:
- java.awt.Label
getFirstNameLabel
private Label getFirstNameLabel()
- Return the FirstNameLabel property value.
- Returns:
- java.awt.Label
getFirstNameTextField
private TextField getFirstNameTextField()
- Return the FirstNameTextField property value.
- Returns:
- java.awt.TextField
getLabel7
private Label getLabel7()
- Return the Label7 property value.
- Returns:
- java.awt.Label
getLastNameLabel
private Label getLastNameLabel()
- Return the LastNameLabel property value.
- Returns:
- java.awt.Label
getLastNameTextField
private TextField getLastNameTextField()
- Return the LastNameTextField property value.
- Returns:
- java.awt.TextField
getPhoneNumberTextField
private BSMaskedTextField getPhoneNumberTextField()
- Return the PhoneNumberTextField property value.
- Returns:
- COM.BSMaskedTextFields.BSMaskedTextField
getProccessedDataLabel
private Label getProccessedDataLabel()
- Return the ProccessedDataLabel property value.
- Returns:
- java.awt.Label
getProcessButton
private Button getProcessButton()
- Return the ProcessButton property value.
- Returns:
- java.awt.Button
getProcessedDataTextArea
private TextArea getProcessedDataTextArea()
- Return the ProcessedDataTextArea property value.
- Returns:
- java.awt.TextArea
getSSNLabel
private Label getSSNLabel()
- Return the SSNLabel property value.
- Returns:
- java.awt.Label
getSSNTextField
private BSMaskedTextField getSSNTextField()
- Return the SSNTextField property value.
- Returns:
- COM.BSMaskedTextFields.BSMaskedTextField
getStateLabel
private Label getStateLabel()
- Return the StateLabel property value.
- Returns:
- java.awt.Label
getStateTextField
private BSMaskedTextField getStateTextField()
- Return the StateTextField property value.
- Returns:
- COM.BSMaskedTextFields.BSMaskedTextField
getStreetAddressLabel
private Label getStreetAddressLabel()
- Return the StreetAddressLabel property value.
- Returns:
- java.awt.Label
getStreetAddressTextField
private TextField getStreetAddressTextField()
- Return the StreetAddressTextField property value.
- Returns:
- java.awt.TextField
getUSA
private Label getUSA()
- Return the USA property value.
- Returns:
- java.awt.Label
getZipCodeLabel
private Label getZipCodeLabel()
- Return the ZipCodeLabel property value.
- Returns:
- java.awt.Label
getZipCodeTextField
private BSMaskedTextField getZipCodeTextField()
- Return the ZipCodeTextField property value.
- Returns:
- COM.BSMaskedTextFields.BSMaskedTextField
handleException
private void handleException(Throwable exception)
- Called whenever the part throws an exception.
- Parameters:
- exception - java.lang.Throwable
init
public void init()
- Handle the Applet init method.
- Overrides:
- init in class Applet
initConnections
private void initConnections()
- Initializes connections
main
public static void main(String args[])
- main entrypoint - starts the part when it is run as an application
- Parameters:
- args - java.lang.String[]
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
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