Package com.pegaa.uploader.common

Examples of com.pegaa.uploader.common.TargetFolderData


     *
     */
    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);
            }
View Full Code Here


    {
        Lang lang = (Lang)this.configHolder.getObject("global.lang");
        //this.buttonHelp.setText(lang.get("bottomtoolbar.help"));
        this.buttonUpload.setText(lang.get("bottomtoolbar.upload"));
       
        TargetFolderData data = (TargetFolderData)comboModel.getElementAt(0);
        data.setText(lang.get("bottomtoolbar.choose"));
    }
View Full Code Here

     * Sends the selected target folder as source object
     *
     */
    private void controlSelectionAndStartUpload()
    {
        TargetFolderData selectedFolder = null;
        if(this.targetFolderList.isVisible()){
            selectedFolder = (TargetFolderData)this.targetFolderList.getSelectedItem();
        }
        if(selectedFolder == null){
            selectedFolder = new TargetFolderData("::");
        }
        this.notifyListeners(new ActionEvent(selectedFolder.getTargetFolderID(), 0, "upload-button"));
    }
View Full Code Here

            CustomLog.log("** initing target folder list **");
            while ((i < idCount) && (i < DefaultParameters.MAX_ID_COUNT)) {
                //target_folder_no:target_folder_short_name
                currentTargetFolderDesc = applet.getParameter("desc-" + i);
                CustomLog.log("TargetFolder desc = " + currentTargetFolderDesc);
                idParameterMap.add(new TargetFolderData(currentTargetFolderDesc));
                i++;
            }

            this.map.put("global.idMap", idParameterMap);

View Full Code Here

TOP

Related Classes of com.pegaa.uploader.common.TargetFolderData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.