Package com.saperion.ngc.resultset
Class ContextMenuItemFactory
java.lang.Object
com.saperion.ngc.resultset.ContextMenuItemFactory
Factory to create Menuitems for context menu.
-
Constructor Summary
ConstructorsConstructorDescriptionContextMenuItemFactory
(ResultSetViewImpl parentView, ResultSetPresenter parentPresenter, com.saperion.ngc.iform.xml.ResultType def, ResultSetViewImpl.ViewMode viewMode) Constructor. -
Method Summary
-
Constructor Details
-
ContextMenuItemFactory
public ContextMenuItemFactory(ResultSetViewImpl parentView, ResultSetPresenter parentPresenter, com.saperion.ngc.iform.xml.ResultType def, ResultSetViewImpl.ViewMode viewMode) Constructor.- Parameters:
parentPresenter
- presenter of viewparentView
- parent view of the context menudef
- Result typeviewMode
- View mode
-
-
Method Details
-
createItems
Creates all menu items that can be used with the currently selected items.- Returns:
- List of Menuitems
- Throws:
AuthenticationException
- re-logon requiredNgcUiException
- exception to be handled by view
-
createEmptyListItems
public List<org.zkoss.zk.ui.Component> createEmptyListItems() throws NgcUiException, AuthenticationExceptionCreates the menu for empty lists.- Returns:
- Menu items
- Throws:
AuthenticationException
- re-logon requiredNgcUiException
- exception to be handled by view
-
createEmptyMenu
- Returns:
- a menu containing only one disabled item signalizing that the menu is disabled.
-