org.gcube.portlets.user.collectionexplorer.client.controller
Class Controller

java.lang.Object
  extended by org.gcube.portlets.user.collectionexplorer.client.controller.Controller

public class Controller
extends Object

Controller is the entry point class

Version:
September 2010 (0.1)
Author:
Massimiliano Assante, ISTI-CNR - massimiliano.assante@isti.cnr.it

Field Summary
 String collectionID
           
 
Constructor Summary
Controller(CollectionsExplorer collectionsExplorer)
           
 
Method Summary
 void cleanResults()
           
 void displayQuery(String toDisplay)
           
 void displayResults(Vector<ResultObj> results, int from, int to, String currTotal, boolean normalResults, HashMap<String,String> externalLinks)
          adds a record to the recordpanel
 void displaySingleResult(ResultObj result, int i, int from, boolean isLastOne)
          single result
 void enableNextButton(boolean enable)
           
 void enablePrevButton(boolean enable)
           
 void fillCollections(List<CollectionBean> colls)
           
 void firstPageButtonClicked()
           
 CollectionsExplorer getCollExplorer()
           
 void hideLoading()
          This method closes the loading gif
 void hideNoResultsPopup()
           
 boolean isAskTreeManager()
           
 void nextPageButtonClicked()
           
 void prevPageButtonClicked()
           
 void retrieveCollectionObjects(String collectionId, int mode)
           
 void retrieveCollectionTrees(String collectionId, int mode)
           
 void setAskTreeManager(boolean askTreeManager)
           
 void setPageDisplayer(String html)
           
 void showLoading()
          This method show the loading gif during ajax server calls
 void showNoResultsPopup(String msg, boolean showMsg)
          This method show the popup for error or no results after a search
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

collectionID

public String collectionID
Constructor Detail

Controller

public Controller(CollectionsExplorer collectionsExplorer)
Parameters:
collExplorer -
Method Detail

retrieveCollectionObjects

public void retrieveCollectionObjects(String collectionId,
                                      int mode)
Parameters:
collectionID -
mode -

retrieveCollectionTrees

public void retrieveCollectionTrees(String collectionId,
                                    int mode)
Parameters:
collectionID -
mode -

cleanResults

public void cleanResults()

displayResults

public void displayResults(Vector<ResultObj> results,
                           int from,
                           int to,
                           String currTotal,
                           boolean normalResults,
                           HashMap<String,String> externalLinks)
adds a record to the recordpanel

Parameters:
toadd - the RusultItem to add

displaySingleResult

public void displaySingleResult(ResultObj result,
                                int i,
                                int from,
                                boolean isLastOne)
single result

Parameters:
result -
i -

displayQuery

public void displayQuery(String toDisplay)
Parameters:
toDisplay - the query to display

setPageDisplayer

public void setPageDisplayer(String html)
Parameters:
html -

fillCollections

public void fillCollections(List<CollectionBean> colls)

showLoading

public void showLoading()
This method show the loading gif during ajax server calls


hideLoading

public void hideLoading()
This method closes the loading gif


enableNextButton

public void enableNextButton(boolean enable)
Parameters:
enable -

enablePrevButton

public void enablePrevButton(boolean enable)
Parameters:
enable -

prevPageButtonClicked

public void prevPageButtonClicked()

firstPageButtonClicked

public void firstPageButtonClicked()

nextPageButtonClicked

public void nextPageButtonClicked()

showNoResultsPopup

public void showNoResultsPopup(String msg,
                               boolean showMsg)
This method show the popup for error or no results after a search

Parameters:
showMsg - true if you got an error during search, false otherwise

hideNoResultsPopup

public void hideNoResultsPopup()

getCollExplorer

public CollectionsExplorer getCollExplorer()
Returns:

isAskTreeManager

public boolean isAskTreeManager()

setAskTreeManager

public void setAskTreeManager(boolean askTreeManager)


Copyright © 2014. All Rights Reserved.