Class UserInputHistory

  • Direct Known Subclasses:
    FileHistory

    public class UserInputHistory
    extends Object
    UserInputHistory is a fixed-size array for String entries edited by a user. If a new entry is added and the history is full, the list of registered entries is shifted so that the oldest entry is beeing skipped.
    Version:
    $Revision$ $Date$
    • Constructor Detail

      • UserInputHistory

        public UserInputHistory​(int maxNumEntries,
                                String propertyKey)
    • Method Detail

      • getNumEntries

        public int getNumEntries()
      • getMaxNumEntries

        public int getMaxNumEntries()
      • getPropertyKey

        public String getPropertyKey()
      • getEntries

        public String[] getEntries()
      • initBy

        public void initBy​(Preferences preferences)
      • isValidItem

        protected boolean isValidItem​(String item)
      • push

        public void push​(String entry)
      • copyInto

        public void copyInto​(Preferences preferences)
      • setMaxNumEntries

        public void setMaxNumEntries​(int maxNumEntries)