| HEADER | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
ru.biosoft.access.DataElementSupport | +--ru.biosoft.access.AbstractDataCollection
This abstract class provides default implementations for most of
the methods in the DataCollection interface. It takes care of
the management of listeners and provides some conveniences for generating
DataCollectionEvents and dispatching them to the listeners.
To create a concrete DataCollection as a sublcass of
AbstractDataCollection you need only provide implementations for the
following methods:
DataCollection.iterator()
if concrete DataColection mutable, then next methods should be implemented
doPut(ru.biosoft.access.DataElement)
doRemove(ru.biosoft.access.DataElement)
| Constructor Summary | |
AbstractDataCollection(DataCollection parent, Properties properties)Constructs data collection with parent. | |
| Method Summary | |
void | addDataCollectionListener(DataCollectionListener listener)Adds listener to this data collection. |
void | close()Do nothing. |
boolean | contains(DataElement element)Check if this data collection contains the specified data element. |
boolean | contains(String name)Returns true if this data collection contains the element with specified name. |
DataElement | get(String name)Gets data element with specified name. |
String | getCompleteName()Gets complete name of data collection. |
Class | getDataElementType()Gets the type of DataElements stored in the data collection. |
DataCollectionInfo | getInfo()Gets data collection info. |
List | getNameList()Gets list of all names in data collection. |
int | getSize()Gets size of data collection. |
void | init()Do nothing. |
boolean | isMutable()Returns false. |
void | propagateElementChanged(DataCollection source, DataCollectionEvent primaryEvent) |
void | propagateElementWillChange(DataCollection source, DataCollectionEvent primaryEvent) |
DataElement | put(DataElement element)Adds the specified data element to the collection. |
DataElement | remove(String name)Removes the specified data element from the collection, if present. |
void | removeDataCollectionListener(DataCollectionListener listener)Removes listener from this data collection. |
String | toString()Returns a String representation of the data collection. |
| Methods inherited from class ru.biosoft.access.DataElementSupport |
getName, getOrigin, registerConstructorWithBadEqual |
| Constructor Detail |
public AbstractDataCollection(DataCollection parent, Properties properties)
| Method Detail |
public void addDataCollectionListener(DataCollectionListener listener)
public void close()
throws java.lang.Exception
public boolean contains(DataElement element)
public boolean contains(String name)
public DataElement get(String name)
throws java.lang.Exception
public String getCompleteName()
public Class getDataElementType()
public DataCollectionInfo getInfo()
public List getNameList()
public int getSize()
public void init()
public boolean isMutable()
public void propagateElementChanged(DataCollection source, DataCollectionEvent primaryEvent)
public void propagateElementWillChange(DataCollection source, DataCollectionEvent primaryEvent)
public DataElement put(DataElement element)
throws java.lang.Exception
doPut(ru.biosoft.access.DataElement) method is used to put the data element.
If the data collection previously contained the specified element,
the old value is replaced.public DataElement remove(String name)
throws java.lang.Exception,
java.lang.UnsupportedOperationException
doRemove(ru.biosoft.access.DataElement) method is used to remove the data element.public void removeDataCollectionListener(DataCollectionListener listener)
public String toString()
| Association Links |
to Class org.apache.log4j.Category
to Class java.lang.String
to Class ru.biosoft.access.DataCollectionInfo
to Class javax.swing.event.EventListenerList
| FOOTER | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||