public abstract class AbstractPage extends Object implements Page
An abstract implementation of a Page
that ties the handling of user properties
and PageListener
handling.
Concrete implementations only have to implement the AbstractPageSegment
handling and call
the method firePageSegmentAdded(PageSegment, DocumentLayer)
and
firePageSegmentRemoved(PageSegment, DocumentLayer)
accordingly.
Modifier and Type | Field and Description |
---|---|
protected com.levigo.jadice.document.PageListenerSupport |
listenerSupport |
PROPERTY_PREFIX_USER_PROPERTY
Constructor and Description |
---|
AbstractPage() |
Modifier and Type | Method and Description |
---|---|
void |
addPageListener(PageListener listener)
Register a
PageListener |
long |
getModCount()
Get the number of page modifications since its creation.
|
Map<String,Object> |
getProperties()
Return a map of user properties.
|
Map<DocumentLayer,PageSegment> |
getSegmentMap()
Return the map of
DocumentLayer s to PageSegment s. |
void |
removePageListener(PageListener listener)
Deregister a
PageListener |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, getDocumentLayer, getLayers, getPageSegment, getPageSegments, getSize, remove
protected final com.levigo.jadice.document.PageListenerSupport listenerSupport
public void addPageListener(PageListener listener)
PageListener
addPageListener
in interface Page
listener
- the listener to registerpublic void removePageListener(PageListener listener)
PageListener
removePageListener
in interface Page
listener
- the listener to removepublic Map<String,Object> getProperties()
PropertiesProvider
getProperties
in interface PropertiesProvider
public long getModCount()
Page
PageSegment
is added
to or
removed
from a Page.getModCount
in interface Page
public Map<DocumentLayer,PageSegment> getSegmentMap()
Page
DocumentLayer
s to PageSegment
s. Depending on the
implementation of this interface, the returned map may be "live" or read-only.getSegmentMap
in interface Page
DocumentLayer
s to PageSegment
s.Copyright © 2024 levigo holding gmbh. All rights reserved.