| Summary: | [client] Provide bounds getter and resize event on Composite wrapper | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Tim Buschtoens <tbuschto> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P2 | CC: | tbuschto |
| Version: | 2.0 | ||
| Target Milestone: | 2.0 RC1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Tim Buschtoens
+1 for add/removeListener as suggested, except that I don't like event type numbers. If we provide constants (where?), those constants could be strings as well, couldn't they? I guess a getClientArea method is exactly what we should provide, what about synchronizing this information with the client for Canvas and Composite? (In reply to comment #1) > +1 for add/removeListener as suggested, except that I don't like event type > numbers. If we provide constants (where?), those constants could be strings > as well, couldn't they? My only concern is that we have this generic Event object in ClientScripting (EventProxy.js) which has a "type" member which is a number (using the SWT object constants). If we would want use this Event object later, what would the value of "type" be? > I guess a getClientArea method is exactly what we should provide, what about > synchronizing this information with the client for Canvas and Composite? Should be doable. I forgot that we have those constants in clientscripting/SWT.js already. Anyway, considering the constants as public API doesn't mean that their values are fix as well. What about changing them to strings? We don't have to copy the bad parts of SWT. Fixed with commit a40e099062751b7bfd6d8e23791cf12b84e1b0e4 using Stings for the event type. |