private RegionViewport regionEnd = null;
private RegionViewport regionAfter = null;
- // hashmap of markers for this page
- // start and end are added by the fo that contains the markers
- private Map markerStart = null;
- private Map markerEnd = null;
-
// temporary map of unresolved objects used when serializing the page
private Map unresolved = null;
private Map pendingResolved = null;
+ // hashmap of markers for this page
+ // start and end are added by the fo that contains the markers
+ private Map markerStart = null;
+ private Map markerEnd = null;
+
/**
* Create a page viewport.
* @param p the page reference area that holds the contents
}
}
+ /**
+ * Add the start markers for this page.
+ *
+ * @param marks the map of start markers to add
+ */
+ public void addMarkers(Map marks, boolean start) {
+ if (start) {
+ if (markerStart == null) {
+ markerStart = new HashMap();
+ }
+ markerStart.putAll(marks);
+ } else {
+ if (markerEnd == null) {
+ markerEnd = new HashMap();
+ }
+ markerEnd.putAll(marks);
+ }
+ }
+
+ public Object getMarker(String name, int pos) {
+ if (markerStart != null) {
+ return markerStart.get(name);
+ }
+ return null;
+ }
+
/**
* Save the page contents to an object stream.
* The map of unresolved references are set on the page so that