[FR 1953734] - Fixes a bug that would not refresh the header when the line was updated.

This commit is contained in:
fer_luck 2008-04-28 23:02:10 +00:00
parent 4e7e2a3244
commit 981de1dbe6
2 changed files with 26 additions and 1 deletions

View File

@ -1723,6 +1723,13 @@ public final class APanel extends CPanel
if (!isNested)
m_window.setTitle(getTitle());
}
//BEGIN - [FR 1953734]
if(m_curGC.isDetailGrid() && retValue){
m_curGC.getGCParent().refreshMTab(m_curGC);
}
//END - [FR 1953734]
return retValue;
} // cmd_save

View File

@ -447,6 +447,7 @@ public class GridController extends CPanel
* @param gc grid controller to add
* @return GridSynchronizer
*/
//FR [ 1757088 ]
public boolean includeTab (GridController gc , APanel aPanel, GridSynchronizer sync)
{
@ -459,7 +460,9 @@ public class GridController extends CPanel
detail.enableEvents(AWTEvent.HIERARCHY_EVENT_MASK + AWTEvent.MOUSE_EVENT_MASK);
vPanel.includeTab(detail);
//BEGIN - [FR 1953734]
gc.setGCParent(this);
//END - [FR 1953734]
synchronizerList.add(sync);
return true;
@ -1244,6 +1247,21 @@ public class GridController extends CPanel
return vPanel;
}
//BEGIN - [FR 1953734]
GridController m_Parent;
public void setGCParent(GridController gc){
m_Parent = gc;
}
public GridController getGCParent(){
return m_Parent;
}
public void refreshMTab(GridController includedTab){
int m_CurrentRowBeforeSave = includedTab.m_mTab.getCurrentRow();
m_mTab.dataRefresh(m_mTab.getCurrentRow());
includedTab.m_mTab.setCurrentRow(m_CurrentRowBeforeSave);
}
//END - [FR 1953734]
/**
* Accept pending editor changes.
*/