public void call(ActionEvent event) {
dialog.hide();
}
};
FillPicker picker = new FillPicker(this.manager);
Paint pt = ((SketchDocument) context.getDocument()).getBackgroundFill();
picker.setSelectedFill(pt);
EventBus.getSystem().addListener(picker,ChangedEvent.ObjectChanged, new Callback<ChangedEvent>() {
public void call(ChangedEvent event) throws Exception {
Paint paint = (Paint) event.getValue();
SketchDocument doc = (SketchDocument) context.getDocument();
setBackgroundFill(paint, doc);
context.redraw();
}
});
picker.setTranslateX(10);
picker.setTranslateY(10);
Panel panel = new Panel();
panel.add(picker);
Button okay = new Button("Close");
okay.setTranslateX(200);
okay.setTranslateY(200);