Project

General

Profile

Actions

Bug #616

closed

Enable and diable bug in local frame

Added by Jing Tao over 21 years ago. Updated over 21 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
morpho - general
Target version:
Start date:
09/30/2002
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
616

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.

Actions #1

Updated by Jing Tao over 21 years ago

Change the milstone from postphone to 1.2

Actions #2

Updated by Jing Tao over 21 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.

Actions #3

Updated by Redmine Admin about 11 years ago

Original Bugzilla ID was 616

Actions

Also available in: Atom PDF