public abstract class SalesContainerBaseEditor extends TelesalesMultiPageEditor implements org.eclipse.ui.ISelectionListener
This class may be subclassed.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field
|
static java.lang.String | EDITOR_ID
SalesContainer Editor ID.
|
Constructor and Description |
---|
SalesContainerBaseEditor() |
Modifier and Type | Method and Description |
---|---|
abstract void | addLineItem(Product product)
Adds an item to the sales container.
|
void | associationsPageClosed()
Informs the editor that its associations view has been closed.
|
abstract void | closeSalesContainer()
This method is called to close the sales container.
|
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 is called when the editor is required to do a save.
|
protected void | doSelectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
Responds to the selection changed event.
|
java.lang.Object | getAdapter(java.lang.Class key)
Returns an object which is an instance of the given class associated with this editor.
|
protected com.ibm.commerce.telesales.ui.impl.views.associations.AssociationsPage | getAssociationsPage()
Creates the associations page used with this editor.
|
abstract java.lang.String | getContextId()
Returns the context ID that would be used by the command plugin.
|
java.lang.String | getEditorId()
Returns the editor ID for this editor.
|
protected com.ibm.commerce.telesales.ui.impl.views.promotions.MarketingPromotionsPage | getMarketingPromotionsPage()
Creates the marketingPromotions page used with this editor.
|
boolean | hasRequiredInput()
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)
Initializes this editor.
|
abstract void | refreshSalesContainer()
This method is called to perform a server request to refresh the sales container editor input.
|
abstract void | replaceLineItems(Line[] originalLineItems, Product product)
Replaces items in the sales container.
|
void | selectionChanged(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
Responds to selections within viewers.
|
protected void | setAssociationPageInput(org.eclipse.ui.IEditorInput input)
Sets the input of the editor's association page.
|
protected void | setMarketingPromotionPageInput(MarketingPromotion[] promotions)
Sets the input of the editor's marketing promotion page.
|
void | synchronizeAssociationPage(Product current)
Synchronizes the AssociationPage with the products in the editor.
|
void | updateSubmitButtonEnablement()
Update the OK button enablement.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String EDITOR_ID
public void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput editorInput) throws org.eclipse.ui.PartInitException
public void dispose()
public abstract void addLineItem(Product product)
Sub-classes must provide their own implementation.
public abstract void replaceLineItems(Line[] originalLineItems, Product product)
Sub-classes must provide their own implementation.
protected void doSelectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
public java.lang.Object getAdapter(java.lang.Class key)
protected com.ibm.commerce.telesales.ui.impl.views.associations.AssociationsPage getAssociationsPage()
protected com.ibm.commerce.telesales.ui.impl.views.promotions.MarketingPromotionsPage getMarketingPromotionsPage()
public void associationsPageClosed()
public void selectionChanged(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
protected void setAssociationPageInput(org.eclipse.ui.IEditorInput input)
protected void setMarketingPromotionPageInput(MarketingPromotion[] promotions)
public void synchronizeAssociationPage(Product current)
If the product's associations are not already in the association page, then the associations will be added.
If the product's associations already exist within the association page, then the page is notified that the associations belongs to the product.
public java.lang.String getEditorId()
public abstract void refreshSalesContainer()
public abstract void closeSalesContainer()
public abstract java.lang.String getContextId()
public boolean hasRequiredInput()
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
public void updateSubmitButtonEnablement()