Class AbstractContextMenu
- java.lang.Object
-
- com.saperion.ngc.resultset.contextmenu.AbstractContextMenu
-
- Direct Known Subclasses:
AbstractWorkflowContextMenu,EmptyContextMenu,MultiDocumentContextMenu,MultiFolderContextMenu,MultiLookupContextMenu,SingleDocumentContextMenu,SingleFolderContextMenu,SingleLookupContextMenu
public abstract class AbstractContextMenu extends java.lang.ObjectAbstract superclass for all context menu types.
-
-
Field Summary
Fields Modifier and Type Field Description protected com.saperion.ngc.iform.xml.ResultTypedefinitionParent's type definition.protected LocalizationUtillocalizationLocalization utility.protected ResultSetPresenterpresenterParent view's presenter.protected UseruserCurrent user from session.protected UserProfileuserProfileThe profile of the current user.protected ResultSetViewImplviewParent view.protected ContextMenuVisibilityvisibilityHelper class that manages visibility of context menu items.
-
Constructor Summary
Constructors Constructor Description AbstractContextMenu(ResultSetViewImpl view, ResultSetPresenter presenter, com.saperion.ngc.iform.xml.ResultType definition, ContextMenuVisibility visibility)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetCoreString(java.lang.String key)abstract java.util.List<org.zkoss.zk.ui.Component>getMenuItems()protected java.lang.StringgetString(java.lang.String key)protected booleanisEfileQueryMask()protected booleanisIndexUser()protected booleanisLookupMode()
-
-
-
Field Detail
-
view
protected final ResultSetViewImpl view
Parent view.
-
presenter
protected final ResultSetPresenter presenter
Parent view's presenter.
-
localization
protected final LocalizationUtil localization
Localization utility.
-
definition
protected final com.saperion.ngc.iform.xml.ResultType definition
Parent's type definition.
-
user
protected final User user
Current user from session.
-
visibility
protected final ContextMenuVisibility visibility
Helper class that manages visibility of context menu items.
-
userProfile
protected final UserProfile userProfile
The profile of the current user.
-
-
Constructor Detail
-
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 Detail
-
getMenuItems
public abstract java.util.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
protected java.lang.String getString(java.lang.String key)
- Parameters:
key- key to localize- Returns:
- web-localized string
-
getCoreString
protected java.lang.String getCoreString(java.lang.String key)
- 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
-
-