| Summary: | Provide a mechanism to query the selectability and focusability of an IContentPart. | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Matthias Wienand <matthias.wienand> |
| Component: | GEF MVC | Assignee: | gef-inbox <gef-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P1 | CC: | nyssen |
| Version: | 0.2.0 | ||
| Target Milestone: | 4.0.0 (Neon) M6 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Matthias Wienand
Since selection and focus are generic concepts, I added query methods for the selectability and focusability to IContentPart, and adjusted the corresponding interaction policies (FXFocusAndSelectOnClick, FXMarqueeOnDrag, FXSelectOnType) so that only selectable content parts are selected, and only focusable content parts are focused. + IContentPart#isSelectable():boolean + IContentPart#isFocusable():boolean The default implementation within AbstractContentPart returns true for both methods. However, in the Logo example, I ensured that the FXGeometricModelPart is not focusable, so that it is skipped when traversing keyboard focus. The code is published on the master branch. Therefore, I resolve this ticket as fixed for 4.0.0 M6. |