Class AbstractContextMenu

    • Field Detail

      • 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 instance
        presenter - presenter of associated result set view instance
        definition - result set type definition
        visibility - visibility helper
    • Method Detail

      • 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