Bug #616
closedEnable and diable bug in local frame
0%
Description
If a GUIAction was assigned only response to local frame. Sometimes it could
response correctly.
This is because if a GUIAction is assigned locally, when a state change event
happened, morpho will compared the GUIAction's final parent frame and state
change event's final parent's final frame. If they are same, the gui action
will be enabled or diabled. But some time the state change event happened
before a frame was assign to its parent, the event's parent is null but
GUIAction is not. This cause the problem.
We can use a Queque or Vector to store the event, then broadcastiit late.
Updated by Jing Tao about 22 years ago
Change the milstone from postphone to 1.2
Updated by Jing Tao about 22 years ago
In util package, a interface named StoreStateChangeEvent was created. There
are 3 methods: storingStateChangeEvent, getStoredStateChangeEvent and
broadcastStoredChangeEvent.
ResultPanel, DataViewerContainerPanel and DataViewer classes implement the
interface. So Statechange Event can either broadcast lately by stored in a
vector or broadcast immediately.
Now, local event feature works well.