public abstract class LibraryTableBase extends java.lang.Object implements PersistentStateComponent<Element>, LibraryTable, Disposable
LibraryTable.Listener, LibraryTable.ModifiableModelDisposable.Parent| Constructor and Description |
|---|
LibraryTableBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(LibraryTable.Listener listener) |
void |
addListener(LibraryTable.Listener listener,
Disposable parentDisposable) |
Library |
createLibrary() |
Library |
createLibrary(java.lang.String name) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
Library [] |
getLibraries() |
Library |
getLibraryByName(java.lang.String name) |
java.util.Iterator<Library> |
getLibraryIterator() |
LibraryTable.ModifiableModel |
getModifiableModel()
Returns the interface which allows to create or removed libraries from the table.
|
Element |
getState() |
long |
getStateModificationCount() |
void |
loadState(Element element)
This method is called when new component state is loaded.
|
void |
noStateLoaded()
This method is called when the component is initialized, but no state is persisted.
|
void |
readExternal(Element element) |
void |
removeLibrary(Library library) |
void |
removeListener(LibraryTable.Listener listener) |
void |
writeExternal(Element element) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeComponentgetPresentation, getTableLevel, isEditablepublic LibraryTable.ModifiableModel getModifiableModel()
LibraryTableLibraryTable.ModifiableModel.commit() or disposed Disposer.dispose(Disposable)getModifiableModel in interface LibraryTablepublic Element getState()
getState in interface PersistentStateComponent<Element>null value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializerpublic void noStateLoaded()
PersistentStateComponentnoStateLoaded in interface PersistentStateComponent<Element>public void loadState(Element element)
PersistentStateComponentState object should be used directly, defensive copying is not required.
loadState in interface PersistentStateComponent<Element>element - loaded component stateXmlSerializerUtil.copyBean(Object, Object)public long getStateModificationCount()
public Library [] getLibraries()
getLibraries in interface LibraryTablepublic java.util.Iterator<Library> getLibraryIterator()
getLibraryIterator in interface LibraryTablepublic Library getLibraryByName(java.lang.String name)
getLibraryByName in interface LibraryTablepublic void addListener(LibraryTable.Listener listener)
addListener in interface LibraryTablepublic void addListener(LibraryTable.Listener listener, Disposable parentDisposable)
addListener in interface LibraryTablepublic void removeListener(LibraryTable.Listener listener)
removeListener in interface LibraryTablepublic void dispose()
Disposabledispose in interface Disposablepublic Library createLibrary()
createLibrary in interface LibraryTablepublic Library createLibrary(java.lang.String name)
createLibrary in interface LibraryTablepublic void removeLibrary(Library library)
removeLibrary in interface LibraryTablepublic void readExternal(Element element)
throws InvalidDataException
InvalidDataExceptionpublic void writeExternal(Element element)
throws WriteExternalException
WriteExternalException