This object provides an implementation of a persistent MRU (Most Recently Used) list of values. It uses class atg.cim.persistence.RecentValueList. Only Strings can be persisted.

The following example persists the value C:/ATG/ATG10 as the most recent value to a list named atgpath:

mRecentlyUsedValue = SessionContext.getRecentValueList()
mRecentlyUsedValue.addToList("atgpath", "C:/ATG/ATG10");

The list of the 5 (or less) latest values in the atgpath list can be retrieved with this code snippet:

mRecentlyUsedValue = SessionContext.getRecentValueList()
List paths = mRecentlyUsedValue.getList("atgpath", 5);

The list atgpath can be cleared with this code snippet:

mRecentlyUsedValue = SessionContext.getRecentValueList()
mRecentlyUsedValue.clearList("atgpath");

Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices