*
*/
private void initTargetFolders()
{
comboModel = (DefaultComboBoxModel) this.targetFolderList.getModel();
comboModel.addElement(new TargetFolderData("--------::-------"));
ArrayList<TargetFolderData> targetFolders = (ArrayList)this.configHolder.getObject("global.idMap");
if(targetFolders == null){
this.targetFolderList.setVisible(false);
return;
}
int len = targetFolders.size();
if(len > 0)
{
int selected = -1;
String selectedTargetFolderID = ((String)this.configHolder.getObject("global.selectedFolder"));
CustomLog.log("initing BottomToolbar selectedTargetFolderID = " + selectedTargetFolderID);
for(int i=0; i<len; i++)
{
TargetFolderData currentData = (TargetFolderData) targetFolders.get(i);
if(selectedTargetFolderID != null){
if(selectedTargetFolderID.equals(currentData.getTargetFolderID())){
selected = i;
}
}
comboModel.addElement(currentData);
}