Package net.sf.archimede.jsf.view

Examples of net.sf.archimede.jsf.view.ViewFolder


    /**
     *
     * @return
     */
    public String seeDescriptionFromResults() {
        ViewFolder selectedFolder = (ViewFolder) this.results.getRowData();
        FolderBean folderBean = (FolderBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(FolderBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());
        folderBean.setSelectedFolder(selectedFolder);

        return "exploration_folder_description";
    }
View Full Code Here


     * "one"; private static final String PHRASE = "phrase";
     *
     * @return
     */
    public String seeCollectionFromResults() {
        ViewFolder selectedFolder = (ViewFolder) this.results.getRowData();
        ViewCollection selectedCollection = new ViewCollection(selectedFolder.getParentCollection());
        CollectionBean collectionBean = (CollectionBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(CollectionBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());
        collectionBean.setSelectedCollection(selectedCollection);

        return "exploration_collection_description";
    }
View Full Code Here

    /**
     *
     * @return
     */
    public String addToMyResult() {
        ViewFolder selectedFolderResult = (ViewFolder) this.results.getRowData();
        MenuBean menuBean = (MenuBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(MenuBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());
        menuBean.addToMyResult(selectedFolderResult);

        return "";
    }
View Full Code Here

    /**
     *
     * @return
     */
    public String seeParentFromResults() {
        ViewFolder selectedFolderResult = (ViewFolder) this.results.getRowData();
        Collection collection = (Collection) selectedFolderResult.getParentCollectionsModel().getRowData();
        CollectionBean collectionBean = (CollectionBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(CollectionBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());
        collectionBean.setSelectedCollection(new ViewCollection(collection));

        return "exploration_collection_description";
    }
View Full Code Here

        Collection collection = CollectionDao.createInstance().retrieve(selectCollectionId);
       
        List collectionFolders = collection.getFolders();
        List collectionViewFolders = new ArrayList(collectionFolders.size());
        for (Iterator it = collectionFolders.iterator(); it.hasNext(); ) {
            collectionViewFolders.add(new ViewFolder((Folder) it.next()));
        }
       
        //Prepare the folderBean with appropriate values
        DataModel foldersDataModel = new ListDataModel();
        foldersDataModel.setWrappedData(collectionViewFolders);
View Full Code Here

        Collection collection = CollectionDao.createInstance().retrieve(selectCollectionId);
       
        List collectionFolders = collection.getFolders();
        List collectionViewFolders = new ArrayList(collectionFolders.size());
        for (Iterator it = collectionFolders.iterator(); it.hasNext(); ) {
            collectionViewFolders.add(new ViewFolder((Folder) it.next()));
        }
       
        //Prepare the folderBean with appropriate values
        DataModel foldersDataModel = new ListDataModel();
        foldersDataModel.setWrappedData(collectionViewFolders);
View Full Code Here

              String[] excerpt = ((LiusField) fields.get("content")).getValues();
              for (int j = 0; j < excerpt.length; j++) {
                  excerptBuffer.append(excerpt[j]);
              }
            }
            viewFolders.add(new ViewFolder(currentFolder, excerptBuffer.toString()));
        }
        return viewFolders;
    }
View Full Code Here

TOP

Related Classes of net.sf.archimede.jsf.view.ViewFolder

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.