public class Controller extends Object
Controller
is the entry point classModifier and Type | Field and Description |
---|---|
String |
collectionID |
Constructor and Description |
---|
Controller(CollectionsExplorer collectionsExplorer) |
Modifier and Type | Method and Description |
---|---|
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
|
public String collectionID
public Controller(CollectionsExplorer collectionsExplorer)
collExplorer
- public void retrieveCollectionObjects(String collectionId, int mode)
collectionID
- mode
- public void retrieveCollectionTrees(String collectionId, int mode)
collectionID
- mode
- public void cleanResults()
public void displayResults(Vector<ResultObj> results, int from, int to, String currTotal, boolean normalResults, HashMap<String,String> externalLinks)
toadd
- the RusultItem to addpublic void displaySingleResult(ResultObj result, int i, int from, boolean isLastOne)
result
- i
- public void displayQuery(String toDisplay)
toDisplay
- the query to displaypublic void setPageDisplayer(String html)
html
- public void fillCollections(List<CollectionBean> colls)
public void showLoading()
public void hideLoading()
public void enableNextButton(boolean enable)
enable
- public void enablePrevButton(boolean enable)
enable
- public void prevPageButtonClicked()
public void firstPageButtonClicked()
public void nextPageButtonClicked()
public void showNoResultsPopup(String msg, boolean showMsg)
showMsg
- true if you got an error during search, false otherwisepublic void hideNoResultsPopup()
public CollectionsExplorer getCollExplorer()
public boolean isAskTreeManager()
public void setAskTreeManager(boolean askTreeManager)
Copyright © 2014. All Rights Reserved.