Package org.esa.snap.ui
Class UserInputHistory
- java.lang.Object
-
- org.esa.snap.ui.UserInputHistory
-
- Direct Known Subclasses:
FileHistory
public class UserInputHistory extends Object
UserInputHistory
is a fixed-size array forString
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 Summary
Constructors Constructor Description UserInputHistory(int maxNumEntries, String propertyKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyInto(Preferences preferences)
String[]
getEntries()
int
getMaxNumEntries()
int
getNumEntries()
String
getPropertyKey()
void
initBy(Preferences preferences)
protected boolean
isValidItem(String item)
void
push(String entry)
void
setMaxNumEntries(int maxNumEntries)
-
-
-
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)
-
-