org.esa.beam.framework.ui
Class UserInputHistory

java.lang.Object
  extended by org.esa.beam.framework.ui.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$
Author:
Norman Fomferra

Constructor Summary
UserInputHistory(int maxNumEntries, String propertyKey)
           
 
Method Summary
 void copyInto(PropertyMap propertyMap)
           
 String[] getEntries()
           
 int getMaxNumEntries()
           
 int getNumEntries()
           
 String getPropertyKey()
           
 void initBy(PropertyMap propertyMap)
           
protected  boolean isValidItem(String item)
           
 void push(String entry)
           
 void setMaxNumEntries(int maxNumEntries)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(PropertyMap propertyMap)

isValidItem

protected boolean isValidItem(String item)

push

public void push(String entry)

copyInto

public void copyInto(PropertyMap propertyMap)

setMaxNumEntries

public void setMaxNumEntries(int maxNumEntries)


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.