Großmarkt

market.stdform
Class FSEditPersonData

java.lang.Object
  |
  +--sale.FormSheet
        |
        +--market.stdform.FSEditPersonData
All Implemented Interfaces:
Serializable

public class FSEditPersonData
extends FormSheet

This FormSheet class is used in multiple cases, for both editing customers and employees. The look of the FormSheet varies slightly depending on the type of person to be edited. Customers have a field with their company and their discount, employees have a field with their special occupation and their salary. The types of usage for this FormSheet are:

See Also:
Serialized Form

Field Summary
static int JTFC_CITY
           
static int JTFC_COMPANY
           
static int JTFC_DISCOUNT
           
static int JTFC_FIRSTNAME
           
static int JTFC_LOGIN
           
static int JTFC_NAME
           
static int JTFC_POSTCODE
           
static int JTFC_SALARY
           
static int JTFC_SECTION
           
static int JTFC_STREET
           
static int JTFC_TELEPHONE
           
 
Fields inherited from class sale.FormSheet
BTNID_CANCEL, BTNID_OK, m_fCancelled
 
Constructor Summary
FSEditPersonData(UPerson up, int option)
          Creates a new FSEditPersonData FormSheet
 
Method Summary
static FSCheckable getCustomerProfileForCustomer(UCustomer customer)
          Creation method for this FormSheet if it is to be used by customers.
static FSCheckable getCustomerProfileForManager(UCustomer customer)
          Creation method for this FormSheet if it is to be used by the manger to view customers' data.
 char[] getPassword()
           
 String getQualification()
           
 String getSalutation()
           
static FSCheckable getStafferProfile(UStaffer staffer)
          Creation method for this FormSheet if it is to be used by the manger to view employees' data.
 boolean isPasswordSet()
          Checks if a password has been set.
 boolean passwordsEqual()
          Checks if password and confirmation match.
 
Methods inherited from class sale.FormSheet
addButton, addButton, addContentCreator, attach, attach, attach, buttonIterator, buttonIterator, cancel, close, detachDisplay, detachProcess, detachSalesPoint, fillBtnPanel, getButton, getButtonsLock, getCaption, getComponent, getComponentLock, getDisplay, getDisplayLock, getProcess, getSalesPoint, isCancelled, ok, removeAllButtons, removeButton, setCaption, setComponent, setWaitResponse, toString, waitResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

JTFC_FIRSTNAME

public static final int JTFC_FIRSTNAME
See Also:
Constant Field Values

JTFC_NAME

public static final int JTFC_NAME
See Also:
Constant Field Values

JTFC_TELEPHONE

public static final int JTFC_TELEPHONE
See Also:
Constant Field Values

JTFC_STREET

public static final int JTFC_STREET
See Also:
Constant Field Values

JTFC_POSTCODE

public static final int JTFC_POSTCODE
See Also:
Constant Field Values

JTFC_CITY

public static final int JTFC_CITY
See Also:
Constant Field Values

JTFC_LOGIN

public static final int JTFC_LOGIN
See Also:
Constant Field Values

JTFC_COMPANY

public static final int JTFC_COMPANY
See Also:
Constant Field Values

JTFC_SALARY

public static final int JTFC_SALARY
See Also:
Constant Field Values

JTFC_SECTION

public static final int JTFC_SECTION
See Also:
Constant Field Values

JTFC_DISCOUNT

public static final int JTFC_DISCOUNT
See Also:
Constant Field Values
Constructor Detail

FSEditPersonData

public FSEditPersonData(UPerson up,
                        int option)
Creates a new FSEditPersonData FormSheet

Parameters:
up - the user to be edited, if null the fields stay empty.
option - an option to specify the special look of the FormSheet.
Method Detail

passwordsEqual

public boolean passwordsEqual()
Checks if password and confirmation match.

Returns:
true if password and confirmation match, otherwise false.

getPassword

public char[] getPassword()
Returns:
the password typed into the password field.

isPasswordSet

public boolean isPasswordSet()
Checks if a password has been set.

Returns:
true if a password has been set, otherwise false.

getSalutation

public String getSalutation()
Returns:
value of the salutation ComboBox.

getQualification

public String getQualification()
Returns:
the value of the occupation ComboBox.

getCustomerProfileForCustomer

public static FSCheckable getCustomerProfileForCustomer(UCustomer customer)
Creation method for this FormSheet if it is to be used by customers.

Parameters:
customer - the customer to be displayed with the FormSheet.
Returns:
the FormSheet as FSCheckable.

getCustomerProfileForManager

public static FSCheckable getCustomerProfileForManager(UCustomer customer)
Creation method for this FormSheet if it is to be used by the manger to view customers' data.

Parameters:
customer - the customer to be displayed with the FormSheet.
Returns:
the FormSheet as FSCheckable.

getStafferProfile

public static FSCheckable getStafferProfile(UStaffer staffer)
Creation method for this FormSheet if it is to be used by the manger to view employees' data.

Parameters:
staffer - the employee to be displayed with the FormSheet.
Returns:
the FormSheet as FSCheckable.

Großmarkt