public abstract class LibraryTableBase extends java.lang.Object implements PersistentStateComponent<Element>, LibraryTable, Disposable
LibraryTable.Listener, LibraryTable.ModifiableModel
Disposable.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, wait
initializeComponent
getPresentation, getTableLevel, isEditable
public LibraryTable.ModifiableModel getModifiableModel()
LibraryTable
LibraryTable.ModifiableModel.commit()
or disposed Disposer.dispose(Disposable)
getModifiableModel
in interface LibraryTable
public 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.XmlSerializer
public void noStateLoaded()
PersistentStateComponent
noStateLoaded
in interface PersistentStateComponent<Element>
public void loadState(Element element)
PersistentStateComponent
State 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 LibraryTable
public java.util.Iterator<Library> getLibraryIterator()
getLibraryIterator
in interface LibraryTable
public Library getLibraryByName(java.lang.String name)
getLibraryByName
in interface LibraryTable
public void addListener(LibraryTable.Listener listener)
addListener
in interface LibraryTable
public void addListener(LibraryTable.Listener listener, Disposable parentDisposable)
addListener
in interface LibraryTable
public void removeListener(LibraryTable.Listener listener)
removeListener
in interface LibraryTable
public void dispose()
Disposable
dispose
in interface Disposable
public Library createLibrary()
createLibrary
in interface LibraryTable
public Library createLibrary(java.lang.String name)
createLibrary
in interface LibraryTable
public void removeLibrary(Library library)
removeLibrary
in interface LibraryTable
public void readExternal(Element element) throws InvalidDataException
InvalidDataException
public void writeExternal(Element element) throws WriteExternalException
WriteExternalException