* Included Tab

- Fixed synchronization issue.
This commit is contained in:
Heng Sin Low 2008-01-18 02:26:09 +00:00
parent 3c0bb8985a
commit 1867cee0a3
1 changed files with 6 additions and 14 deletions

View File

@ -52,26 +52,16 @@ public class GridSynchronizer implements PropertyChangeListener, StateChangeList
* @param evt
*/
public void propertyChange(PropertyChangeEvent evt) {
if (evt.getPropertyName().equals(GridTab.PROPERTY)) {
if (child.isCurrent()) {
child.getMTab().dataRefresh();
} else {
MRole role = MRole.getDefault();
child.query (false, 0, role.getMaxQueryRecords());
}
}
MRole role = MRole.getDefault();
child.query (false, 0, role.getMaxQueryRecords());
}
/**
* @param event
*/
public void stateChange(StateChangeEvent event) {
if (child.isCurrent()) {
child.getMTab().dataRefresh();
} else {
MRole role = MRole.getDefault();
child.query (false, 0, role.getMaxQueryRecords());
}
MRole role = MRole.getDefault();
child.query (false, 0, role.getMaxQueryRecords());
}
/**
@ -80,6 +70,8 @@ public class GridSynchronizer implements PropertyChangeListener, StateChangeList
public void activateChild() {
window.initTab(window.getTabIndex(child.getMTab()));
child.activate();
MRole role = MRole.getDefault();
child.query (false, 0, role.getMaxQueryRecords());
}
}