|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mk.fsgrep.gui.RecentProfiles
public class RecentProfiles
A utility that keep a record of recently referenced scan profiles.
Field Summary | |
---|---|
protected static java.lang.String |
PERSISTENT_PREFIX
|
Constructor Summary | |
---|---|
protected |
RecentProfiles()
|
Method Summary | |
---|---|
void |
add(java.lang.String entry,
Finder pFinder)
Add an entry to the (front of) list. |
boolean |
contains(java.lang.String key)
Determine whether the given spec is on the list. |
Finder |
get(java.lang.String key)
Lookup the Finder object for a given spec. |
java.lang.String |
getCurrent()
Give the "currently selected spec" by giving the first one on the list. |
protected MRUList |
getList()
|
protected java.util.Map<java.lang.String,Finder> |
getMap()
|
boolean |
isEmpty()
Determine whether the list of specs is empty. |
java.util.Iterator<java.lang.String> |
iterator()
|
void |
keepFirst()
Remove all items except the first one (current). |
void |
readData(Fsgrep model)
Read the stored profiles from the persistent data. |
protected void |
refreshMap(Fsgrep model)
Clear the map, then (re)populate it. |
void |
select(java.lang.String key)
A callback function for the GUI that gets called when the user selects a spec from the list. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String PERSISTENT_PREFIX
Constructor Detail |
---|
protected RecentProfiles()
Method Detail |
---|
protected MRUList getList()
protected java.util.Map<java.lang.String,Finder> getMap()
protected void refreshMap(Fsgrep model)
model
- The underlying model containing the data.public java.lang.String toString()
toString
in class java.lang.Object
public void add(java.lang.String entry, Finder pFinder)
entry
- The string spec.pFinder
- The associated Finder object.public Finder get(java.lang.String key)
key
- The string spec.
public void select(java.lang.String key)
key
- The string spec chosen by the user.public java.lang.String getCurrent()
public boolean contains(java.lang.String key)
key
- The String spec.
public boolean isEmpty()
public void keepFirst()
public void readData(Fsgrep model)
model
- The model object that the finder will reference.public java.util.Iterator<java.lang.String> iterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |