|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jpos.config.simple.editor.JposEntryList
Simple bean list class for JposEntry objects. Allows listeners to know when JposEntry objects are added and removed to the list.
Constructor Summary | |
JposEntryList()
Default no-arg ctor |
|
JposEntryList(java.lang.String fileName)
1-arg ctor |
Method Summary | |
void |
add(java.lang.String logicalName,
JposEntry entry)
Adds a new entry with logicalName in the list |
void |
addJposEntryListListener(JposEntryListListener l)
Adds new listener for this JposEntryList NOTE: the listener name should change to JposEntryListListener insteand of JposEntryTreeListener |
void |
change(java.lang.String logicalName,
JposEntry entry)
Change/replace the entry with logicalName with this one |
java.util.Enumeration |
getEntries()
|
java.lang.String |
getEntriesFileName()
|
java.util.Enumeration |
getRemovedEntries()
|
boolean |
hasJposEntry(java.lang.String logicalName)
|
boolean |
isEmpty()
|
boolean |
isLoadedFromFile()
|
void |
load(java.lang.String fileName)
Loads the JposEntry from the serialized file specified |
void |
remove(java.lang.String logicalName)
Removes the entry with logicalName from the list |
void |
removeJposEntryListListener(JposEntryListListener l)
Removes new listener for this JposEntryList NOTE: the listener name should change to JposEntryListListener insteand of JposEntryTreeListener |
void |
save()
Serializes the JposEntry objects in the entriesFileName |
void |
setEntriesFileName(java.lang.String fileName)
Sets the serialization file name |
int |
size()
|
void |
sort()
sorts the list of entries |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public JposEntryList()
public JposEntryList(java.lang.String fileName) throws java.lang.Exception
fileName
- the file name to load the JposEntry fromjava.lang.Exception
- if something goes wrong loading the entriesMethod Detail |
public void addJposEntryListListener(JposEntryListListener l)
l
- the listener instancepublic void removeJposEntryListListener(JposEntryListListener l)
l
- the listener instancepublic java.util.Enumeration getEntries()
public java.util.Enumeration getRemovedEntries()
public int size()
public java.lang.String getEntriesFileName()
public void setEntriesFileName(java.lang.String fileName)
public void load(java.lang.String fileName) throws java.lang.Exception
fileName
- the serialized file namejava.lang.Exception
- if something goes wrong loading this ser filepublic void save() throws java.lang.Exception
java.lang.Exception
- if something goes wrong saving this ser filepublic void add(java.lang.String logicalName, JposEntry entry)
logicalName
- the logicalName for this entryentry
- the JposEntry to addpublic void remove(java.lang.String logicalName)
entry
- the JposEntry to addpublic void change(java.lang.String logicalName, JposEntry entry)
logicalName
- the logicalName for this entryentry
- the JposEntry to replacepublic boolean isLoadedFromFile()
public boolean hasJposEntry(java.lang.String logicalName)
logicalName
- of the JposEntry to be searchedpublic boolean isEmpty()
public void sort()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |