Class RecentActorProcessorHandler<M>

    • Field Detail

      • RECENTPROCESSORS_COUNT

        public static final String RECENTPROCESSORS_COUNT
        the property for storing the number of recent statements.
        See Also:
        Constant Field Values
      • RECENTPROCESSORS_PREFIX

        public static final String RECENTPROCESSORS_PREFIX
        the property prefix for a recent statement.
        See Also:
        Constant Field Values
      • MAX_CHARS

        public static final int MAX_CHARS
        the maximum chars in for the menu item.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RecentActorProcessorHandler

        public RecentActorProcessorHandler​(String propsFile,
                                           M menu)
        Initializes the handler with a maximum of 5 items.
        Parameters:
        propsFile - the props file to store the items in
        menu - the menu to add the recent items as subitems to
      • RecentActorProcessorHandler

        public RecentActorProcessorHandler​(String propsFile,
                                           int maxCount,
                                           M menu)
        Initializes the handler.
        Parameters:
        propsFile - the props file to store the items in
        maxCount - the maximum number of items to keep in menu
        menu - the menu to add the recent items as subitems to
      • RecentActorProcessorHandler

        public RecentActorProcessorHandler​(String propsFile,
                                           String propPrefix,
                                           int maxCount,
                                           M menu)
        Initializes the handler.
        Parameters:
        propsFile - the props file to store the items in
        propPrefix - the properties prefix, use null to ignore
        maxCount - the maximum number of items to keep in menu
        menu - the menu to add the recent items as subitems to