Allows for processing of StyleDeltas.
Example Usage:
class Visitor implements StyleDeltaVisitor {
public boolean visit(StyleDelta delta) {
switch (delta.getKind()) {
case StyleDelta.Kind.ADDED :
// handle added handled
break;
case StyleDelta.Kind.REMOVED :
// handle removed handled
break;
case StyleDelta.Kind.CHANGED :
// handle changed handled
break;
}
return true; // visit children
}
}
StyleDelta delta = styleEvent.getDelta();
delta.accept(new Visitor());
author: Jody Garnett |