public class CreateReturnAction extends org.eclipse.jface.action.Action implements IModelListener
Constructor and Description |
---|
CreateReturnAction()
Creates a new action.
|
Modifier and Type | Method and Description |
---|---|
Customer | createAnonymousCustomer()
This method creates and returns an anonymous customer.
|
protected void | createEmptyReturn(Customer customer, Return return_)
This method issues the create return request to the server with an empty return.
|
void | createNewReturn(Customer customer)
This method creates and returns a new Return.
|
protected void | createReturn(Customer customer, Return return_)
This method issues the create return request to the server.
|
protected TelesalesProperties | getCreateReturnParameters(Return return_)
This method constructs the parameters for the create Returns data access object.
|
java.lang.String | getHelpId()
This method returns the help id of this action.
|
void | modelChanged(ModelObjectChangedEvent event)
This method listens to model changed events and sets the enablement state.
|
void | run()
This method performs this action.
|
void | setAutoApplyItems(boolean autoApplyItems_)
Enables the auto apply return items behavior.
|
void | updateEnablement()
This method disables create return if - No Return reasons defined for Store - No Active customer has been chosen
|
public void setAutoApplyItems(boolean autoApplyItems_)
public void updateEnablement()
public void modelChanged(ModelObjectChangedEvent event)
public java.lang.String getHelpId()
public void run()
public void createNewReturn(Customer customer)
protected void createEmptyReturn(Customer customer, Return return_)
protected void createReturn(Customer customer, Return return_)
protected TelesalesProperties getCreateReturnParameters(Return return_)
public Customer createAnonymousCustomer()