|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.jadice.document.AbstractPage
public abstract class AbstractPage
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 #firePageSegmentModified(PageSegmentEvent)
accordingly.
Page
,
BasicPage
Field Summary | |
---|---|
protected com.levigo.jadice.document.PageListenerSupport |
listenerSupport
|
Fields inherited from interface com.levigo.jadice.document.Page |
---|
PROPERTY_PREFIX_USER_PROPERTY |
Constructor Summary | |
---|---|
AbstractPage()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.levigo.jadice.document.Page |
---|
add, getDocumentLayer, getLayers, getPageSegment, getPageSegments, getSize, remove |
Field Detail |
---|
protected final com.levigo.jadice.document.PageListenerSupport listenerSupport
Constructor Detail |
---|
public AbstractPage()
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |