68 lines
2.2 KiB
Java
68 lines
2.2 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package javax.baja.sync;
|
|
|
|
import javax.baja.category.BCategoryMask;
|
|
import javax.baja.space.TrapCallbacks;
|
|
import javax.baja.sync.SyncBuffer;
|
|
import javax.baja.sys.Action;
|
|
import javax.baja.sys.BComponent;
|
|
import javax.baja.sys.BFacets;
|
|
import javax.baja.sys.BValue;
|
|
import javax.baja.sys.Context;
|
|
import javax.baja.sys.Property;
|
|
import javax.baja.sys.Slot;
|
|
|
|
public abstract class TrapToSyncBuffer
|
|
extends TrapCallbacks {
|
|
public abstract SyncBuffer getBuffer();
|
|
|
|
public boolean isTrapEnabled() {
|
|
return true;
|
|
}
|
|
|
|
public boolean trapSets() {
|
|
return true;
|
|
}
|
|
|
|
public boolean set(BComponent bComponent, Property[] propertyArray, BValue bValue, Context context) {
|
|
this.getBuffer().set(bComponent, propertyArray, bValue, context);
|
|
return false;
|
|
}
|
|
|
|
public Property add(BComponent bComponent, String string, BValue bValue, int n, BFacets bFacets, Context context) {
|
|
this.getBuffer().add(bComponent, string, bValue, n, bFacets, context);
|
|
return null;
|
|
}
|
|
|
|
public void remove(BComponent bComponent, Property property, Context context) {
|
|
this.getBuffer().remove(bComponent, property, context);
|
|
}
|
|
|
|
public void rename(BComponent bComponent, Property property, String string, Context context) {
|
|
this.getBuffer().rename(bComponent, property, string, context);
|
|
}
|
|
|
|
public void reorder(BComponent bComponent, Property[] propertyArray, Context context) {
|
|
this.getBuffer().reorder(bComponent, propertyArray, context);
|
|
}
|
|
|
|
public void setFlags(BComponent bComponent, Slot slot, int n, Context context) {
|
|
this.getBuffer().setFlags(bComponent, slot, n, context);
|
|
}
|
|
|
|
public void setFacets(BComponent bComponent, Slot slot, BFacets bFacets, Context context) {
|
|
this.getBuffer().setFacets(bComponent, slot, bFacets, context);
|
|
}
|
|
|
|
public void setCategoryMask(BComponent bComponent, BCategoryMask bCategoryMask, Context context) {
|
|
this.getBuffer().setCategoryMask(bComponent, bCategoryMask, context);
|
|
}
|
|
|
|
public BValue invoke(BComponent bComponent, Action action, BValue bValue, Context context) {
|
|
return bComponent.invoke(action, bValue, Context.commit);
|
|
}
|
|
}
|
|
|