// Transforms a source value during a bind operation.
BindMapping bindMapping = new BindMapping() {
@Override
public Object evaluate(Object value) {
Orientation o = (Orientation) value;
if (o == Orientation.HORIZONTAL) {
return Orientation.VERTICAL;
} else {
return Orientation.HORIZONTAL;
}