*/
protected void pageChange(int newPageIndex)
{
super.pageChange(newPageIndex);
FolderDescription fd = getFD();
switch (newPageIndex)
{
case 0:
setPartName(fd.getName());
_fNameEntry.setValue(fd.getName(), true);
_fCmtEntry.setValue(fd.getComment(), true);
_fIdxIconEntry.setValue(Integer.toString(fd.getIconAttrIndex()), true);
_fIdxLabelEntry.setValue(Integer.toString(fd.getLabelAttrIndex()), true);
// Fill Statistic fields
_fMainTable.setValue(fd.getTName(), true);
_fCardTable.setValue(fd.getCardDescription().getTName(), true);
fd.updateStats(Application.getDataStore());
_fNbInstance.setValue(Long.toString(fd.getNbInstance()), true);
break;
case 1:
_tabvFdAttr.setDescr(fd);
break;
case 2:
_tabvCdAttr.setDescr(fd.getCardDescription());
break;
case 3:
// Check if layout data are created or read
if (_adLayout == null)
{
_adLayout = Application.getDataStore().readLayout(fd);
}
if (_cdLayout == null)
{
_cdLayout = Application.getDataStore().readLayout(fd.getCardDescription());
}
// Fill layout general fields
_lsMainLayout.setLayout(_adLayout);
_lsCardLayout.setLayout(_cdLayout);