javalayoutswtresponsiveeclipse-rap

How to implement repsonsive design in Eclipse RAP?


The Eclipse RAP (Remote Application Platform) project provides a way to write web applications using SWT. Due to single sourcing, the written code can also be used in desktop SWT/RCP applications.

Since it is a framework for web applications I was wondering if it supports responsive design?
If so, a simple example would be great. It does not need to be RCP compatible.

I didn't find a lot on the internet, has there been any efforts towards supporting responsive design?


Solution

  • Due to the fact that RAP shields you from web technology, native CSS and other web-techniques won't work.

    To summarize the comments, you will likely have to implement one or more custom layouts that adapt to the available space and show/hide/resize the managed controls accordingly.

    You may also want to use custom controls or manipulate existing controls to adapt to the available space. in some places. For example, hide texts on toolbar buttons when space becomes rare.

    RAP theming can also be leveraged to a certain extent in order to change the appearance and space of certain controls.

    Further reading: