Hi,
I am looking at simulating “glass pane” like functionality, so that I can disable input on part, or all of the browser user interface. I have thought of 2 approaches:
Approach 1 - Disable all user input
Bring up a “notification” modal dialog while the server side is busy processing background tasks. The dialog would need to be modal, to prevent user input during that time. I would like the dialog to:
-
Have a single icon (animated gif like ajax-loader-big.gif from the toolkit), centered in the dialog.
-
Remove the title bar, resizing corner, close button, and all lines from the dialog, to create a window that has only transparent background with the icon in the middle, no visible border, and no shadow behind, and is only sized to be large enough to fit the icon.
Can anyone assist in how to code this, and (in particular) detail the style changes needed on the Window, or point me to something that will already do this ?
Approach 2 - Disable input on part of the browser screen
Define a single style, which could be added/removed to/from any component, which would (temporarily) set the cursor style to a custom gif (like ajax-loader-big.gif from the toolkit), or even the standard cursor “wait” style. I thought maybe addStyleName() / removeStyleName() could be used to dynamically change the style. In addition, setEnabled(false) on the Window/(or modeless dialog) that I wanted to (temporarily) prevent input on while waiting for processing to complete. As I understand it, disabling the Window disables all the components inside it recursively.
Can anyone assist in how to code this, and say if a single style could be defined for this task, or point me to something that will already achieve this ?
Thanks
Andrew