public class B2BUnitEnableOrDisableAction extends AbstractEnableDisableAction
ListViewAction.ContextAPPROVED_STATE_ICON, ICON_FUNC_APPROVAL_ACTION_AVAILABLE, ICON_FUNC_APPROVAL_ACTION_UNAVAILABLE, ITEM_ACTIVE, UNAPPROVED_STATE_ICON, UNKNOWN_STATE_ICONalwaysEnabled, IN_EDITOR_AREA_SECTION_PANELAFFECTED_ITEMS_KEY| Constructor and Description |
|---|
B2BUnitEnableOrDisableAction() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doChangeStatus(TypedObject selectedItem,
boolean activeStatus) |
B2BUnitService<CompanyModel,UserModel> |
getB2bUnitService() |
String |
getImageURI(ListViewAction.Context context)
Gets the image URI which represents the action button.
|
Menupopup |
getMultiSelectPopup(ListViewAction.Context context)
Gets the popup of the action button for selection operation.
|
Menupopup |
getPopup(ListViewAction.Context context)
Gets the popup of the action button.
|
ValueService |
getValueService() |
void |
setB2bUnitService(B2BUnitService<CompanyModel,UserModel> b2bUnitService) |
void |
setValueService(ValueService valueService) |
protected void |
toggleUnit(TypedObject selectedItem,
boolean activeStatus) |
doCreateContext, getContextPopup, getEventListener, getMultiSelectImageURI, getStatusLabel, getTooltip, getTypeService, setTypeServicecreateContext, createContext, getItem, getMultiSelectEventListener, getSelectedItems, getStatusCode, isAlwaysEnabled, sendEvent, sendUpdateItemsEvent, setAlwaysEnabledpublic ValueService getValueService()
public void setValueService(ValueService valueService)
valueService - the valueService to setpublic Menupopup getMultiSelectPopup(ListViewAction.Context context)
ListViewActiongetMultiSelectPopup in interface ListViewActiongetMultiSelectPopup in class AbstractListViewActionnull if no popup is availablepublic String getImageURI(ListViewAction.Context context)
ListViewActiongetImageURI in interface ListViewActiongetImageURI in class AbstractEnableDisableActionpublic Menupopup getPopup(ListViewAction.Context context)
ListViewActiongetPopup in interface ListViewActiongetPopup in class AbstractEnableDisableActionnull if no popup is availableprotected void doChangeStatus(TypedObject selectedItem, boolean activeStatus) throws Exception
Exceptionprotected void toggleUnit(TypedObject selectedItem, boolean activeStatus)
public B2BUnitService<CompanyModel,UserModel> getB2bUnitService()
public void setB2bUnitService(B2BUnitService<CompanyModel,UserModel> b2bUnitService)
Copyright © 2017 SAP SE. All Rights Reserved.