public class TicklerEditor extends TelesalesConfigurableEditorPart implements org.eclipse.ui.ISelectionListener
This class may be sub-classed.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field
|
static int | CREATE_MODE
Mode constant (value 0) which identifies create mode, or a new tickler.
|
static java.lang.String | CREATE_TICKLER_EDITOR_BUTTON_BAR_MANAGED_COMPOSITE_ID
Create tickler editor button bar managed composite ID.
|
static java.lang.String | CREATE_TICKLER_EDITOR_MANAGED_COMPOSITE_ID
Create tickler editor managed composite ID.
|
static java.lang.String | EDITOR_ID
Tickler editor id.
|
static int | READ_ONLY_MODE
Mode constant (value 1) which identifies edit mode, or an existing tickler.
|
static java.lang.String | READ_ONLY_TICKLER_EDITOR_BUTTON_BAR_MANAGED_COMPOSITE_ID
Read only tickler editor button bar managed composite ID.
|
static int | WORK_ON_MODE
Mode constant (value 1) which identifies edit mode, or an existing tickler.
|
static java.lang.String | WORK_ON_TICKLER_EDITOR_BUTTON_BAR_MANAGED_COMPOSITE_ID
Work on tickler editor button bar managed composite ID.
|
static java.lang.String | WORK_ON_TICKLER_EDITOR_MANAGED_COMPOSITE_ID
Work on tickler editor managed composite ID.
|
Constructor and Description |
---|
TicklerEditor() |
Modifier and Type | Method and Description |
---|---|
protected void | beforeClosingWorkOnEditor()
This method unlocks the tickler and removes the tickler from the store open tickler list.
|
protected void | cancelPressed()
This method notifies that the Cancel button of this page has been pressed.
|
void | create(Tickler tickler)
This method notifies that a Create action is required.
|
void | dispose()
This implementation ensures that the context is deactivated before calling the parent's dispose method.
|
void | doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
This method saves the contents of this part.
|
protected Customer | findCustomer(java.lang.String customerLogonId)
This method is used to find and create a Customer object based on the customer logon identifier passed as an input argument.
|
protected void | findTicklerRelatedToCustomer(java.lang.String customerLogonId)
This method opens the details of the customer to which this tickler is related to.
|
protected void | findTicklerRelatedToOrder(java.lang.String orderId)
This method opens the details of the order to which this tickler is related to.
|
protected void | findTicklerRelatedToQuote(java.lang.String quoteId)
This method opens the details of the quote to which this tickler is related to.
|
protected void | findTicklerRelatedToRMA(java.lang.String rmaId)
This method opens the details of the return to which this tickler is related to.
|
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 identifier.
|
java.lang.String | getHelpContextId()
This method retrieves the page's help context identifier.
|
java.lang.String | getHelpResource()
This method retrieves the resources for help messages.
|
int | getMode()
This method returns the edit mode.
|
protected java.lang.String | getPageContentManagedCompositeId()
This method returns the page content managed composite ID.
|
java.lang.String | getPartName()
getPartName() is being overridden as getTitle() is deprecated.
|
java.lang.String | getTitle()
This method retrieves the title for the page.
|
org.eclipse.swt.graphics.Image | getTitleImage()
This method retrieves the image of the title.
|
java.lang.String | getTitleToolTip()
This method retrieves the title of the tool tip.
|
WidgetManagerInputProperties | getWidgetManagerInputProperties()
This method returns the widget manager input properties.
|
boolean | hasRequiredInput()
This method returns a boolean indicating whether all the required fields of this page have valid entries.
|
void | init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput editorInput)
This method initializes the Tickler editor.
|
void | initializeWidgetManagerInputProperties()
This method initializes the widget manager input properties.
|
void | okPressed()
This implementation requests the updated tickler attributes by calling getAdapter.
|
void | openTicklerRelatedToObjectPressed()
This method notifies that the Open Tickler Related To Object button has been pressed.
|
void | recordNewActionPressed()
This method is to handle the record new action pressed event.
|
void | selectionChanged(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
This is a listener method that responds to selections within viewers.
|
void | setMode(int mode)
This method sets the edit mode.
|
protected void | setTicklerStoreToActiveStore(java.lang.String ticklerStoreId)
This method sets the tickler store as the active store.
|
void | unlockTickler(Tickler tickler)
This method notifies that an Unlock action is required.
|
void | widgetManagerChanged(WidgetManagerEvent widgetManagerEvent)
This method handles widget manager events.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String EDITOR_ID
public static final java.lang.String CREATE_TICKLER_EDITOR_MANAGED_COMPOSITE_ID
public static final java.lang.String CREATE_TICKLER_EDITOR_BUTTON_BAR_MANAGED_COMPOSITE_ID
public static final java.lang.String WORK_ON_TICKLER_EDITOR_MANAGED_COMPOSITE_ID
public static final java.lang.String WORK_ON_TICKLER_EDITOR_BUTTON_BAR_MANAGED_COMPOSITE_ID
public static final java.lang.String READ_ONLY_TICKLER_EDITOR_BUTTON_BAR_MANAGED_COMPOSITE_ID
public static final int CREATE_MODE
public static final int WORK_ON_MODE
public static final int READ_ONLY_MODE
protected java.lang.String getPageContentManagedCompositeId()
protected java.lang.String getButtonBarManagedCompositeId()
public WidgetManagerInputProperties getWidgetManagerInputProperties()
public void initializeWidgetManagerInputProperties()
public void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput editorInput) throws org.eclipse.ui.PartInitException
public void dispose()
protected void beforeClosingWorkOnEditor()
Subclasses may override this method.
public java.lang.Object getAdapter(java.lang.Class adapter)
This implementation supports Tickler, which indicates an update is required of the Tickler input.
public int getMode()
public void setMode(int mode)
public void selectionChanged(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
public boolean hasRequiredInput()
protected void cancelPressed()
The TelesalesEditorPart implementation of this framework method fires a property event to the parent editor notifying the editor to cancel and close.
The Subclasses may override this method.
public void okPressed()
After the updated Tickler is retrieved, either create or update is called based on the mode.
public void recordNewActionPressed()
public void create(Tickler tickler)
The TelesalesEditorPart implementation of this framework method requests a new tickler to WebSphere Commerce issuing the action ID of com.ibm.commerce.telesales.createTickler to the TelesalesJobScheduler.
public void unlockTickler(Tickler tickler)
The TelesalesEditorPart implementation of this framework method requests a new tickler to WebSphere Commerce issuing the action Id of com.ibm.commerce.telesales.createTickler to the TelesalesJobScheduler.
Subclasses may override.
public java.lang.String getPartName()
public java.lang.String getTitle()
public java.lang.String getTitleToolTip()
public org.eclipse.swt.graphics.Image getTitleImage()
public java.lang.String getHelpContextId()
public java.lang.String getHelpResource()
protected void setTicklerStoreToActiveStore(java.lang.String ticklerStoreId)
Subclasses may override this method.
protected Customer findCustomer(java.lang.String customerLogonId)
public void openTicklerRelatedToObjectPressed()
The TicklerEditorPage implementation of this framework method calls the openCustomerEditor or openOrderEditor method to open the tickler related to object editor.
Subclasses may override this method.
protected void findTicklerRelatedToCustomer(java.lang.String customerLogonId)
protected void findTicklerRelatedToOrder(java.lang.String orderId)
protected void findTicklerRelatedToQuote(java.lang.String quoteId)
protected void findTicklerRelatedToRMA(java.lang.String rmaId)
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
public void widgetManagerChanged(WidgetManagerEvent widgetManagerEvent)