Package adams.gui.goe

Class PersistentObjectHistory

    • Field Detail

      • MAX_LINE_CHARS

        public static final int MAX_LINE_CHARS
        the maximum number of characters per line for a single setup.
        See Also:
        Constant Field Values
      • m_Superclass

        protected Class m_Superclass
        the superclass.
      • m_CommandLines

        protected List<String> m_CommandLines
        the history of commandlines - used for determining whether object has already been added.
    • Constructor Detail

      • PersistentObjectHistory

        public PersistentObjectHistory()
    • Method Detail

      • setSuperclass

        public void setSuperclass​(Class value)
        Sets the superclass to use.
        Parameters:
        value - the class
      • generateMenuItemCaption

        protected String generateMenuItemCaption​(Object obj)
        Generates an HTML caption for the an entry in the history menu.
        Parameters:
        obj - the object to create the caption for
        Returns:
        the generated HTML captiopn
      • customizePopupMenu

        public void customizePopupMenu​(JPopupMenu menu,
                                       Object current,
                                       HistorySelectionListener listener)
        Adds a menu item with the history to the popup menu.
        Parameters:
        menu - the menu to add the history to
        current - the current object
        listener - the listener to attach to the menu items' ActionListener