public class ReturnEditor extends TelesalesMultiPageEditor implements org.eclipse.ui.ISelectionListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String | APPROVE_MODE
Mode constant value "APP" which identifies approved mode for an existing return.
|
static java.lang.String | CANCEL_MODE
Mode constant value "CAN" which identifies Cancelled mode CLO or CANfor an existing return.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field
|
static java.lang.String | CREATE_EDIT_MODE
Mode constant value "EDT" which identifies editing state of return.
|
static java.lang.String | CUST_EDIT_MODE
Mode constant value "PRC" which identifies initial state of return.
|
static java.lang.String | EDITOR_PAGES_ID
Return Editor pages ID - com.ibm.commerce.telesales.returnEditorPages
|
static java.lang.String | EVENT_ID_APPROVE
This event is triggered when the user input is Approve
|
static java.lang.String | EVENT_ID_CLOSE
This event is triggered when the user input is CloseEditor
|
static java.lang.String | EVENT_ID_EDIT
This event is triggered when the user input is Edit
|
static java.lang.String | EVENT_ID_SUBMIT
This event is triggered when the user input is Submit
|
static java.lang.String | EVENT_ID_VIEW_RECEIPTS
This event is triggered when the user input is viewReceipts
|
static java.lang.String | LOCKED_MODE
Mode constant value "LCK" which identifies Locked mode for an existing return.
|
static java.lang.String | PND_MODE
Mode constant value "PND" which identifies PND mode for an existing return.
|
static java.lang.String | PROP_MODE
Mode property name.
|
Constructor and Description |
---|
ReturnEditor() |
Modifier and Type | Method and Description |
---|---|
void | clearReturn()
This method invokes the RemoveReturnAction action.
|
void | clearReturn(boolean confirm)
This method invokes the RemoveReturnAction action.
|
void | dispose()
This implementation ensures that the context is deactivated before calling the parent's dispose method.
|
boolean | doApprove()
This method approves the current Return.The return should be submitted to get the approval.
|
boolean | doEdit()
This method performs the edit operation on the return
|
void | doOpenReturnReceiptDialog()
This method will open returnReceipt Dialog in ReturnByConfigurablePage.
|
boolean | doPrepare()
This method prepares the current Return.
|
boolean | doSave()
This method perform the rma save operation.
|
boolean | doSubmit()
This method submits(Prepares and then Process) the current Return.
|
java.lang.String | getEditorId()
This method returns the identifier of this editor.
|
java.lang.String | getEditorPagesId()
This method returns the editor pages ID for this editor.
|
java.lang.String | getMode()
This method returns the mode.
|
Return | getReturn()
This method returns the return object from the Editor.
|
protected TelesalesProperties | getReturnReceiptParameters()
Deprecated.
do not use this method for any customization, rather use action class.
|
java.lang.String | getTitle()
This method returns the title of the editor.
|
org.eclipse.swt.graphics.Image | getTitleImage()
This method gets the title image.
|
WidgetManagerInputProperties | getWidgetManagerInputProperties()
This method gets the widget manager input properties.
|
boolean | hasRequiredInput()
This method returns whether the required input for all pages has been entered.
|
void | init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput editorInput)
This method initializes the state of the editor.
|
void | initializeWidgetManagerInputProperties()
This method initializes the widget manager input properties.
|
protected void | pageChange(int newPageIndex)
This method listens for when a page has changed.
|
protected boolean | readyForSubmission(Return rma)
This method validates an RMA before submission
|
void | selectionChanged(org.eclipse.ui.IWorkbenchPart arg0, org.eclipse.jface.viewers.ISelection arg1)
IWorkbenchPart ISelection
|
void | setMode(java.lang.String mode)
This method sets the mode.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String EDITOR_PAGES_ID
public static final java.lang.String CREATE_EDIT_MODE
public static final java.lang.String CUST_EDIT_MODE
public static final java.lang.String APPROVE_MODE
public static final java.lang.String PND_MODE
public static final java.lang.String CANCEL_MODE
public static final java.lang.String LOCKED_MODE
public static final java.lang.String EVENT_ID_VIEW_RECEIPTS
public static final java.lang.String EVENT_ID_CLOSE
public static final java.lang.String EVENT_ID_APPROVE
public static final java.lang.String EVENT_ID_SUBMIT
public static final java.lang.String EVENT_ID_EDIT
public static final java.lang.String PROP_MODE
public void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput editorInput) throws org.eclipse.ui.PartInitException
public void dispose()
public void clearReturn()
public void clearReturn(boolean confirm)
public void doOpenReturnReceiptDialog()
public java.lang.String getEditorPagesId()
public java.lang.String getEditorId()
public java.lang.String getTitle()
public org.eclipse.swt.graphics.Image getTitleImage()
public boolean doSubmit()
protected boolean readyForSubmission(Return rma)
public boolean doPrepare()
public boolean doApprove()
public boolean hasRequiredInput()
public boolean doEdit()
public boolean doSave()
public java.lang.String getMode()
public void setMode(java.lang.String mode)
protected TelesalesProperties getReturnReceiptParameters()
public void selectionChanged(org.eclipse.ui.IWorkbenchPart arg0, org.eclipse.jface.viewers.ISelection arg1)
public WidgetManagerInputProperties getWidgetManagerInputProperties()
public void initializeWidgetManagerInputProperties()
protected void pageChange(int newPageIndex)
public Return getReturn()