Package com.saperion.ngc.resultset
Class ContextMenuItemFactory
- java.lang.Object
-
- com.saperion.ngc.resultset.ContextMenuItemFactory
-
public class ContextMenuItemFactory extends java.lang.ObjectFactory to create Menuitems for context menu.
-
-
Constructor Summary
Constructors Constructor Description ContextMenuItemFactory(ResultSetViewImpl parentView, ResultSetPresenter parentPresenter, com.saperion.ngc.iform.xml.ResultType def, ResultSetViewImpl.ViewMode viewMode)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<org.zkoss.zk.ui.Component>createEmptyListItems()Creates the menu for empty lists.java.util.List<org.zkoss.zk.ui.Component>createEmptyMenu()java.util.List<org.zkoss.zk.ui.Component>createItems()Creates all menu items that can be used with the currently selected items.
-
-
-
Constructor Detail
-
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 Detail
-
createItems
public java.util.List<org.zkoss.zk.ui.Component> createItems() throws NgcUiException, AuthenticationExceptionCreates 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 java.util.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
public java.util.List<org.zkoss.zk.ui.Component> createEmptyMenu()
- Returns:
- a menu containing only one disabled item signalizing that the menu is disabled.
-
-