Module com.gluonhq.cloudlink.client
Class DataSkel<T,C extends GluonObservableImpl<T>>
- java.lang.Object
-
- com.gluonhq.impl.cloudlink.client.data.DataSkel<T,C>
-
- Direct Known Subclasses:
ListDataSkel
,ObjectDataSkel
public abstract class DataSkel<T,C extends GluonObservableImpl<T>> extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataSkel.Operation
-
Field Summary
Fields Modifier and Type Field Description static String
PROTOCOL_KEY_PAYLOAD
static String
PROTOCOL_KEY_UID
protected Map<String,Object>
proxy
-
Constructor Summary
Constructors Constructor Description DataSkel()
-
Method Summary
-
-
-
Field Detail
-
PROTOCOL_KEY_UID
public static final String PROTOCOL_KEY_UID
- See Also:
- Constant Field Values
-
PROTOCOL_KEY_PAYLOAD
public static final String PROTOCOL_KEY_PAYLOAD
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOperation
public DataSkel.Operation getOperation()
- Returns:
- the operation
-
setOperation
public void setOperation(DataSkel.Operation operation)
- Parameters:
operation
- the operation to set
-
getPayload
public String getPayload()
- Returns:
- the payload
-
setPayload
public void setPayload(String payload)
- Parameters:
payload
- the payload to set
-
getOperationMode
public OperationMode getOperationMode()
-
setOperationMode
public void setOperationMode(OperationMode operationMode)
-
getUid
public String getUid()
- Returns:
- the uid
-
setUid
public void setUid(String uid)
- Parameters:
uid
- the uid to set
-
getObject
public T getObject()
- Returns:
- the object
-
setObject
public void setObject(T object)
- Parameters:
object
- the object to set
-
isMarkedForAddition
public boolean isMarkedForAddition()
-
setMarkedForAddition
public void setMarkedForAddition(boolean markedForAddition)
-
isMarkedForUpdate
public boolean isMarkedForUpdate()
-
setMarkedForUpdate
public void setMarkedForUpdate(boolean markedForUpdate)
-
isMarkedForRemoval
public boolean isMarkedForRemoval()
-
setMarkedForRemoval
public void setMarkedForRemoval(boolean markedForRemoval)
-
track
public abstract void track(C observable)
-
untrack
public abstract void untrack(C observable)
-
createChangeListener
public abstract ChangeListener createChangeListener(String key, C observable)
-
getChangeListener
protected ChangeListener getChangeListener(String key, C observable)
-
removeChangeListener
protected ChangeListener removeChangeListener(String key)
-
-