Class AbstractContextMenu
java.lang.Object
com.saperion.ngc.resultset.contextmenu.AbstractContextMenu
- Direct Known Subclasses:
AbstractWorkflowContextMenu,EmptyContextMenu,MultiDocumentContextMenu,MultiFolderContextMenu,MultiLookupContextMenu,SingleDocumentContextMenu,SingleFolderContextMenu,SingleLookupContextMenu
Abstract superclass for all context menu types.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.saperion.ngc.iform.xml.ResultTypeParent's type definition.protected final LocalizationUtilLocalization utility.protected final ResultSetPresenterParent view's presenter.protected final UserCurrent user from session.protected final UserProfileThe profile of the current user.protected final ResultSetViewImplParent view.protected final ContextMenuVisibilityHelper class that manages visibility of context menu items. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractContextMenu(ResultSetViewImpl view, ResultSetPresenter presenter, com.saperion.ngc.iform.xml.ResultType definition, ContextMenuVisibility visibility) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetCoreString(String key) abstract List<org.zkoss.zk.ui.Component>protected Stringprotected booleanprotected booleanprotected boolean
-
Field Details
-
view
Parent view. -
presenter
Parent view's presenter. -
localization
Localization utility. -
definition
protected final com.saperion.ngc.iform.xml.ResultType definitionParent's type definition. -
user
Current user from session. -
visibility
Helper class that manages visibility of context menu items. -
userProfile
The profile of the current user.
-
-
Constructor Details
-
AbstractContextMenu
public AbstractContextMenu(ResultSetViewImpl view, ResultSetPresenter presenter, com.saperion.ngc.iform.xml.ResultType definition, ContextMenuVisibility visibility) - Parameters:
view- associated result set view instancepresenter- presenter of associated result set view instancedefinition- result set type definitionvisibility- visibility helper
-
-
Method Details
-
getMenuItems
public abstract List<org.zkoss.zk.ui.Component> getMenuItems() throws NgcUiException, AuthenticationException- Returns:
- list of menu items for the context menu
- Throws:
NgcUiException- exception to be handled by viewAuthenticationException- re-logon required
-
getString
- Parameters:
key- key to localize- Returns:
- web-localized string
-
getCoreString
- Parameters:
key- key to localize- Returns:
- core-localized string
-
isLookupMode
protected boolean isLookupMode()- Returns:
- if view is in lookup-mode
-
isEfileQueryMask
protected boolean isEfileQueryMask()- Returns:
- if parent view shows an eFile-query-mask
-
isIndexUser
protected boolean isIndexUser()- Returns:
- if the current user is an index-user
-