public abstract class TelesalesCustomerPage extends TelesalesConfigurableEditorPage
Modifier and Type | Field and Description |
---|---|
static java.lang.String | B2B_CUSTOMER
Type constant (value Customer.B2B_CUSTOMER) which identifies B2B customer.
|
static java.lang.String | B2C_CUSTOMER
Type constant (value Customer.B2C_CUSTOMER) which identifies B2C customer.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field
|
static java.lang.String | CREATE_CUSTOMER_BUTTON_BAR_MANAGED_COMPOSITE_ID
Create customer button bar managed composite ID.
|
static int | CREATE_MODE
Mode constant (value 0) which identifies create mode, or a new customer.
|
static java.lang.String | CUSTOMER_BUTTON_BAR_MANAGED_COMPOSITE_ID
Edit customer button bar managed composite ID.
|
static int | EDIT_MODE
Mode constant (value 1) which identifies edit mode, or an existing customer.
|
Constructor and Description |
---|
TelesalesCustomerPage()
Default constructor to create an editor page instance.
|
Modifier and Type | Method and Description |
---|---|
protected void | cancelPressed()
This method notifies that the Cancel button of this page has been pressed.
|
java.lang.Object | getAdapter(java.lang.Class adapter)
This method returns an object which is an instance of the given class associated with this object.
|
protected java.lang.String | getButtonBarManagedCompositeId()
This method returns the button bar managed composite ID.
|
int | getMode()
This method returns the edit mode.
|
java.lang.String | getType()
This method returns the type of customer.
|
boolean | hasRequiredInput()
This method returns a flag indicating whether all the required fields of this page have valid entries.
|
void | init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input)
This method initializes the page content with the editor input.
|
void | okPressed()
This implementation requests the updated customer attributes by calling getAdapter.
|
void | resetPasswordPressed()
This method resets the customer's password.
|
void | setDirty(boolean dirty)
This method marks the page dirty.
|
void | setMode(int mode)
This method sets the edit mode.
|
void | setType(java.lang.String type)
This method sets the type of customer.
|
protected void | updateOKButtonEnablement()
This method updates the Create or Update button by calling managed composite's postDirty method.
|
void | widgetManagerChanged(WidgetManagerEvent widgetManagerEvent)
This method handles widget manager events.
|
public static final java.lang.String COPYRIGHT
public static final int CREATE_MODE
public static final int EDIT_MODE
public static final java.lang.String B2B_CUSTOMER
public static final java.lang.String B2C_CUSTOMER
public static final java.lang.String CUSTOMER_BUTTON_BAR_MANAGED_COMPOSITE_ID
public static final java.lang.String CREATE_CUSTOMER_BUTTON_BAR_MANAGED_COMPOSITE_ID
public TelesalesCustomerPage()
protected void cancelPressed()
The TelesalesEditorPage implementation of this framework method fires a property event to the parent editor notifying the editor to cancel and close.
Subclasses may override this method.
public int getMode()
public java.lang.String getType()
public void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input)
Sets the customer type and mode.
public void okPressed()
After the updated Customer is retrieved, either create or update is called based on the mode.
public void setDirty(boolean dirty)
Subclasses should call this method as a result of user interaction with the widgets in the page.
public void setMode(int mode)
public void setType(java.lang.String type)
protected void updateOKButtonEnablement()
public boolean hasRequiredInput()
public void widgetManagerChanged(WidgetManagerEvent widgetManagerEvent)
protected java.lang.String getButtonBarManagedCompositeId()
public void resetPasswordPressed()
public java.lang.Object getAdapter(java.lang.Class adapter)
This implementation supports Customer, which indicates an update is required of the Customer input.
Returns null if no such object can be found.