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.ResultType
Parent's type definition.protected final LocalizationUtil
Localization utility.protected final ResultSetPresenter
Parent view's presenter.protected final User
Current user from session.protected final UserProfile
The profile of the current user.protected final ResultSetViewImpl
Parent view.protected final ContextMenuVisibility
Helper 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 String
getCoreString
(String key) abstract List<org.zkoss.zk.ui.Component>
protected String
protected boolean
protected boolean
protected 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
-