#1315 Several useful features for FWT

Yuri Strot Sat 13 Nov 2010

I'd like to have some more features in FWT which are available in SWT.

  • Widget.onResize (Control.addControlListener in SWT)
  • Canvas.onPaint(Graphics g) -> Canvas.onPaint(Graphics g, Rect dirty) (flexibility for perfomance optimizations)
  • Image(Size).graphics() (mentioned at #1156)
  • Desktop.getClipboard/setClipboard (mentioned at #1205). It's already available in the TextWidget API, but it doesn't work when I need to provide "copy/paste to clipboard" feature for my custom component.
  • Pure native Slider. Currently I could use ScrollPane for scrollable components. However in some cases I need to use native ScrollBar and handle scrolling directly. ScrollBar can't be created both in SWT and FWT, but in SWT I can use Slider for this.

I'm ready to work on patches for Java/JS implementation if you guys agree on these features.

brian Sat 13 Nov 2010

Those all seem reasonable. If you want to work with me to submit patches that would be great. You can just email directly.

Login or Signup to reply.