Bug #5825
Enhance WidgetBrowser ContainerTree to evaluate methods from the Widget interface
Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:
0%
billable:
No
vendor_id:
GCD
case_num:
History
#1 Updated by Roger Borrello over 2 years ago
The code which resolves the widget property table on the right-side of the widget browser is in ContainerTree.getWidgetProperties
.
There we can evaluate certain methods from the Widget
interface: location()
, physicalLocation()
, physicalBounds()
, dimension()
, physicalDimension()
, screenLocation()
, screenPhysicalLocation()
, width()
, height()
, etc. The evaluation can be protected in a try/catch(Throwable)
in case it abends.
#3 Updated by Constantin Asofiei over 2 years ago
An approach would be to evaluate all methods which:
- return a
Point
,NativePoint
,Rectangle
, etc (a dimension/location/boundary instance) - have no arguments
This way we can avoid hard-coding the method names.