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