framePos = columnFrames[i];
} else {
framePos = columnFrames[columnFrames.length - i - 1];
}
if (framePos.equals(this.getTargetFramePos())) {
WidgetUpdateInfoBean frameTargetUpdate = this.buildShowletToMoveUpdateInfo(showletsToRender);
this.addUpdateInfoBean(frameTargetUpdate);
check = true;
prevFrames = framePos;
continue;
}
if (check) {
Widget showletToSwitch = showletsToRender[prevFrames];
Integer statusShowletToSwitchInteger = super.getCustomShowletStatus() != null ? super.getCustomShowletStatus()[prevFrames] : null;
int statusShowletToSwitch = (statusShowletToSwitchInteger == null) ? 0 : statusShowletToSwitchInteger;
WidgetUpdateInfoBean showletToSwitchUpdateInfo = new WidgetUpdateInfoBean(framePos, showletToSwitch, statusShowletToSwitch);
//System.out.println("MESSA SHOWLET da switchare da posizione " + prevFrames + " a POSIZIONE " + framePos);
this.getShiftingElements().put(prevFrames, framePos);
this.addUpdateInfoBean(showletToSwitchUpdateInfo);
if (framePos.equals(endFramePos)) {
//System.out.println("TERMINE SWITCH");
check = false;
}
}
prevFrames = framePos;
}
if (!endFramePos.equals(this.getStartFramePos())) {
//System.out.println("SVUOTAMENTO FRAME PARTENZA");
WidgetUpdateInfoBean frameStartUpdate =
new WidgetUpdateInfoBean(this.getStartFramePos(), this.getShowletVoid(), IPageUserConfigManager.STATUS_OPEN);
this.addUpdateInfoBean(frameStartUpdate);
} else {
//System.out.println("CASO IN CUI IL FRAME DI PARTENZA E' IL DESTINATARIO DI UN FRAME SWITCHATO");
}
}