Class GenericPageSegmentHandle
java.lang.Object
com.levigo.jadice.web.shared.model.PageSegmentHandle
com.levigo.jadice.web.client.messaging.data.GenericPageSegmentHandle
- All Implemented Interfaces:
Serializable
A generic PageSegmentHandle/Source that only lives on the client, specially made for the TypeScript Viewer.
In the TS-Viewer you can use pretty much every JSON-structure as a Source. In the GWT-part, we will struggle
with untyped Objects. We therefore use these generic classes to transport customer-specific data in a generic
params-field as the GWT-Jadice-renderer is only interested in the fields of a handle that come from the
abstract class PageSegmentHandle (pageIndex, documentLayer,...).
On the Backend-side there is no such thing as a generic Handle/Source. The type tells the Backend to which
custom Handle/Source this will be deserialized (the params will be deserialized do a specific Handle/Source-class).
This seems to be a proper solution to handle untyped JS together with typed GWT.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.levigo.jadice.web.shared.model.PageSegmentHandle
copyTo, equals, getDocumentLayer, getPageIndex, getPageSegmentUUID, hashCode, init, setDocumentLayer, setPageIndex, setPageSegmentUUID, toString
-
Constructor Details
-
GenericPageSegmentHandle
public GenericPageSegmentHandle()
-
-
Method Details
-
getType
-
setType
-
getParams
-
setParams
-
getIdentifier
Description copied from class:PageSegmentHandleCreates a "DocumentID" to be able to cache the Jadice document on recovering. NOTE: The Identifier represents the ID of the Document, not thePageSegment!- Specified by:
getIdentifierin classPageSegmentHandle- Returns:
- The unique DocumentID of the document associated with this
PageSegment.
-
copy
- Specified by:
copyin classPageSegmentHandle
-