|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap
java.util.HashMap
biouml.standard.type.access.TitleSqlIndex
TitleSqlIndex is map where key is Base#title and value Base#name.
The index is loaded during DataCollection initialisation and updates itself
using DataCollectionEvents.
Additionally titles are stores in sorted list (titleList).
This list is used by ListModel and ComboBoxModel, thus
TitleSqlIndex can be easily used by JList and
JComboBox controls.
| Nested Class Summary |
| Nested classes inherited from class ru.biosoft.access.Index |
Index.IndexEntry, Index.StringIndexEntry |
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Field Summary | |
protected static org.apache.log4j.Category |
cat
|
protected javax.swing.event.EventListenerList |
listenerList
|
protected java.util.List |
titleList
|
| Fields inherited from interface ru.biosoft.access.Index |
DEFAULT_INDEX_NAME |
| Constructor Summary | |
TitleSqlIndex(DataCollection dc)
|
|
| Method Summary | |
void |
addListDataListener(javax.swing.event.ListDataListener l)
|
void |
close()
Release all resources. |
void |
elementAdded(DataCollectionEvent e)
Called after data element was added. |
void |
elementChanged(DataCollectionEvent e)
Called after data element was changed. |
void |
elementRemoved(DataCollectionEvent e)
Called after data element was removed. |
void |
elementWillAdd(DataCollectionEvent e)
Called before data element will be added. |
void |
elementWillChange(DataCollectionEvent e)
Called before data element will be changed. |
void |
elementWillRemove(DataCollectionEvent e)
Called before data element will be removed. |
protected void |
fireIntervalAdded(java.lang.Object source,
int index0,
int index1)
|
protected void |
fireIntervalRemoved(java.lang.Object source,
int index0,
int index1)
|
java.lang.String |
getCompositeName(java.lang.Object title,
java.lang.Object id)
|
java.lang.Object |
getElementAt(int index)
|
java.io.File |
getIndexFile()
Returns index file. |
java.lang.Object |
getSelectedItem()
|
int |
getSize()
|
boolean |
isValid()
Check is this index valid. |
java.util.Iterator |
nodeIterator(Key key)
|
java.lang.Object |
put(java.lang.Object title,
java.lang.Object id)
|
void |
removeListDataListener(javax.swing.event.ListDataListener l)
|
void |
setSelectedItem(java.lang.Object anItem)
|
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, values |
| Field Detail |
protected static org.apache.log4j.Category cat
protected java.util.List titleList
protected javax.swing.event.EventListenerList listenerList
| Constructor Detail |
public TitleSqlIndex(DataCollection dc)
throws java.lang.Exception,
java.sql.SQLException
| Method Detail |
public java.lang.String getCompositeName(java.lang.Object title,
java.lang.Object id)
public java.lang.Object put(java.lang.Object title,
java.lang.Object id)
put in interface java.util.Mappublic java.util.Iterator nodeIterator(Key key)
nodeIterator in interface Indexpublic void close()
Index
close in interface Indexpublic boolean isValid()
Index
isValid in interface Indextrue if index valid, false otherwise.public java.io.File getIndexFile()
Index
getIndexFile in interface Indexpublic int getSize()
getSize in interface javax.swing.ListModelpublic java.lang.Object getElementAt(int index)
getElementAt in interface javax.swing.ListModelpublic void addListDataListener(javax.swing.event.ListDataListener l)
addListDataListener in interface javax.swing.ListModelpublic void removeListDataListener(javax.swing.event.ListDataListener l)
removeListDataListener in interface javax.swing.ListModel
protected void fireIntervalAdded(java.lang.Object source,
int index0,
int index1)
protected void fireIntervalRemoved(java.lang.Object source,
int index0,
int index1)
public java.lang.Object getSelectedItem()
getSelectedItem in interface javax.swing.ComboBoxModelpublic void setSelectedItem(java.lang.Object anItem)
setSelectedItem in interface javax.swing.ComboBoxModel
public void elementAdded(DataCollectionEvent e)
throws java.lang.Exception
DataCollectionListener
elementAdded in interface DataCollectionListenere - DataCollectionEvent information about added data element.
java.lang.Exception - If error occured.
public void elementWillRemove(DataCollectionEvent e)
throws DataCollectionVetoException,
java.lang.Exception
DataCollectionListener
elementWillRemove in interface DataCollectionListenere - DataCollectionEvent information about will removed data element.
DataCollectionVetoException - If listener cancel removing of data element.
java.lang.Exception - If error occured.
public void elementRemoved(DataCollectionEvent e)
throws java.lang.Exception
DataCollectionListener
elementRemoved in interface DataCollectionListenere - DataCollectionEvent information about removed data element.
java.lang.Exception - If error occured.
public void elementWillAdd(DataCollectionEvent e)
throws DataCollectionVetoException,
java.lang.Exception
DataCollectionListener
elementWillAdd in interface DataCollectionListenere - DataCollectionEvent information about will added data element.
DataCollectionVetoException - If listener cancel adding of data element.
java.lang.Exception - If error occured.
public void elementChanged(DataCollectionEvent e)
throws java.lang.Exception
DataCollectionListenere contains old data element (which already changed).
elementChanged in interface DataCollectionListenere - DataCollectionEvent information about changed data element.
java.lang.Exception - If error occured.
public void elementWillChange(DataCollectionEvent e)
throws DataCollectionVetoException,
java.lang.Exception
DataCollectionListenere contains old data element (which will be changed).
elementWillChange in interface DataCollectionListenere - DataCollectionEvent information about will change data element.
DataCollectionVetoException - If listener cancel changing of data element.
java.lang.Exception - If error occured.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||