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