parent
3c0bb8985a
commit
1867cee0a3
|
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue