2015-06-24 15:16:13 +02:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
2015-07-01 11:15:53 +02:00
|
|
|
package org.gcube.portlets.widgets.wsexplorer.client.select;
|
2015-06-25 12:33:18 +02:00
|
|
|
|
2015-06-29 15:14:00 +02:00
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
|
2015-06-25 12:33:18 +02:00
|
|
|
import org.gcube.portlets.widgets.wsexplorer.client.WorkspaceExplorerConstants;
|
2015-06-25 15:52:02 +02:00
|
|
|
import org.gcube.portlets.widgets.wsexplorer.client.WorkspaceExplorerController;
|
2015-08-04 15:35:30 +02:00
|
|
|
import org.gcube.portlets.widgets.wsexplorer.client.event.BreadcrumbClickEvent;
|
|
|
|
import org.gcube.portlets.widgets.wsexplorer.client.event.BreadcrumbClickEventHandler;
|
2015-06-30 14:52:40 +02:00
|
|
|
import org.gcube.portlets.widgets.wsexplorer.client.event.LoadRootEvent;
|
2015-08-04 15:35:30 +02:00
|
|
|
import org.gcube.portlets.widgets.wsexplorer.client.event.RootLoadedEvent;
|
|
|
|
import org.gcube.portlets.widgets.wsexplorer.client.event.RootLoadedEventHandler;
|
2015-07-07 12:14:25 +02:00
|
|
|
import org.gcube.portlets.widgets.wsexplorer.client.notification.WorkspaceExplorerSelectNotification.HasWorskpaceExplorerSelectNotificationListener;
|
|
|
|
import org.gcube.portlets.widgets.wsexplorer.client.notification.WorkspaceExplorerSelectNotification.WorskpaceExplorerSelectNotificationListener;
|
2015-07-29 16:23:29 +02:00
|
|
|
import org.gcube.portlets.widgets.wsexplorer.shared.FilterCriteria;
|
2015-06-29 15:14:00 +02:00
|
|
|
import org.gcube.portlets.widgets.wsexplorer.shared.Item;
|
2015-06-29 15:58:35 +02:00
|
|
|
import org.gcube.portlets.widgets.wsexplorer.shared.ItemType;
|
2015-06-24 15:16:13 +02:00
|
|
|
|
2015-07-01 11:15:53 +02:00
|
|
|
import com.github.gwtbootstrap.client.ui.Alert;
|
2015-06-29 16:45:09 +02:00
|
|
|
import com.github.gwtbootstrap.client.ui.Button;
|
2015-06-25 18:57:11 +02:00
|
|
|
import com.github.gwtbootstrap.client.ui.Modal;
|
|
|
|
import com.github.gwtbootstrap.client.ui.ModalFooter;
|
2015-07-01 11:15:53 +02:00
|
|
|
import com.github.gwtbootstrap.client.ui.constants.AlertType;
|
2015-06-29 16:45:09 +02:00
|
|
|
import com.github.gwtbootstrap.client.ui.constants.ButtonType;
|
2015-06-29 15:14:00 +02:00
|
|
|
import com.github.gwtbootstrap.client.ui.event.HideEvent;
|
|
|
|
import com.github.gwtbootstrap.client.ui.event.HideHandler;
|
2015-08-04 15:35:30 +02:00
|
|
|
import com.google.gwt.core.shared.GWT;
|
2015-06-24 15:16:13 +02:00
|
|
|
import com.google.gwt.event.dom.client.ClickEvent;
|
|
|
|
import com.google.gwt.event.dom.client.ClickHandler;
|
2015-06-29 15:14:00 +02:00
|
|
|
|
2015-06-24 15:16:13 +02:00
|
|
|
|
|
|
|
/**
|
2015-06-29 15:14:00 +02:00
|
|
|
* The Class WorkspaceExplorerLoadDialog.
|
2015-06-24 15:16:13 +02:00
|
|
|
*
|
|
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
2015-06-30 14:52:40 +02:00
|
|
|
* Jun 30, 2015
|
2015-06-24 15:16:13 +02:00
|
|
|
*/
|
2015-07-07 12:14:25 +02:00
|
|
|
public class WorkspaceExplorerSelectDialog extends Modal implements HasWorskpaceExplorerSelectNotificationListener{
|
2015-06-24 15:16:13 +02:00
|
|
|
|
2015-06-29 16:45:09 +02:00
|
|
|
private Button selectButton;
|
2015-07-01 11:15:53 +02:00
|
|
|
private WorkspaceExplorerSelectDialog INSTANCE = this;
|
2015-06-29 15:14:00 +02:00
|
|
|
private boolean isSelect = false;
|
2015-06-24 15:16:13 +02:00
|
|
|
private String captionTxt;
|
2015-06-25 18:57:11 +02:00
|
|
|
private ModalFooter footer = new ModalFooter();
|
2015-07-01 11:15:53 +02:00
|
|
|
private Alert alertConfirm;
|
2015-07-29 16:23:29 +02:00
|
|
|
private WorkspaceExplorerController controller;
|
2015-07-07 12:14:25 +02:00
|
|
|
private List<WorskpaceExplorerSelectNotificationListener> listeners = new ArrayList<WorskpaceExplorerSelectNotificationListener>();
|
2015-06-25 15:52:02 +02:00
|
|
|
|
2015-06-30 14:52:40 +02:00
|
|
|
|
2015-06-24 15:16:13 +02:00
|
|
|
/**
|
2015-07-06 12:27:48 +02:00
|
|
|
* Instantiates a new workspace explorer select dialog.
|
2015-07-07 12:14:25 +02:00
|
|
|
* You can implement {@link WorskpaceExplorerSelectNotificationListener} to receive events
|
2015-07-29 16:23:29 +02:00
|
|
|
* @param captionTxt the caption txt
|
|
|
|
*
|
2015-06-24 15:16:13 +02:00
|
|
|
*/
|
2015-07-01 11:15:53 +02:00
|
|
|
public WorkspaceExplorerSelectDialog(String captionTxt) {
|
2015-07-30 14:59:36 +02:00
|
|
|
controller = new WorkspaceExplorerController(WorkspaceExplorerConstants.HEIGHT_EXPLORER_PANEL);
|
2015-07-29 16:23:29 +02:00
|
|
|
loadExplorer(captionTxt);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Instantiates a new workspace explorer select dialog.
|
|
|
|
* You can implement {@link WorskpaceExplorerSelectNotificationListener} to receive events
|
|
|
|
* @param captionTxt the caption txt
|
|
|
|
* @param filterCriteria the filter criteria
|
|
|
|
*/
|
|
|
|
public WorkspaceExplorerSelectDialog(String captionTxt, FilterCriteria filterCriteria) {
|
2015-07-30 14:59:36 +02:00
|
|
|
controller = new WorkspaceExplorerController(filterCriteria, WorkspaceExplorerConstants.HEIGHT_EXPLORER_PANEL);
|
2015-07-29 16:23:29 +02:00
|
|
|
loadExplorer(captionTxt);
|
2015-06-30 14:52:40 +02:00
|
|
|
}
|
2015-07-31 11:28:47 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Instantiates a new workspace explorer select dialog.
|
|
|
|
* You can implement {@link WorskpaceExplorerSelectNotificationListener} to receive events
|
|
|
|
* @param captionTxt the caption txt
|
|
|
|
* @param filterCriteria the filter criteria
|
|
|
|
*/
|
|
|
|
public WorkspaceExplorerSelectDialog(String captionTxt, FilterCriteria filterCriteria, List<ItemType> selectableTypes) {
|
|
|
|
controller = new WorkspaceExplorerController(filterCriteria, WorkspaceExplorerConstants.HEIGHT_EXPLORER_PANEL);
|
|
|
|
if(selectableTypes!=null){
|
|
|
|
ItemType[] itemsType = new ItemType[selectableTypes.size()];
|
|
|
|
itemsType = selectableTypes.toArray(itemsType);
|
|
|
|
setSelectableTypes(selectableTypes.toArray(itemsType));
|
|
|
|
}
|
|
|
|
loadExplorer(captionTxt);
|
|
|
|
}
|
2015-06-30 14:52:40 +02:00
|
|
|
|
2015-07-29 16:23:29 +02:00
|
|
|
|
2015-06-30 14:52:40 +02:00
|
|
|
/**
|
2015-07-06 12:27:48 +02:00
|
|
|
* Instantiates a new workspace explorer select dialog.
|
2015-06-30 14:52:40 +02:00
|
|
|
*
|
|
|
|
* @param captionTxt the caption txt
|
|
|
|
* @param showOnlyFolders the show only folders
|
|
|
|
*/
|
2015-07-01 11:15:53 +02:00
|
|
|
public WorkspaceExplorerSelectDialog(String captionTxt, boolean showOnlyFolders) {
|
2015-07-30 14:59:36 +02:00
|
|
|
controller = new WorkspaceExplorerController(WorkspaceExplorerConstants.HEIGHT_EXPLORER_PANEL);
|
2015-06-30 14:52:40 +02:00
|
|
|
if(showOnlyFolders){
|
2015-07-13 17:15:21 +02:00
|
|
|
ItemType[] itemsType = new ItemType[1];
|
|
|
|
itemsType[0] = ItemType.FOLDER;
|
2015-06-30 14:52:40 +02:00
|
|
|
setSelectableTypes(itemsType);
|
|
|
|
setShowableTypes(itemsType);
|
|
|
|
}
|
2015-07-29 16:23:29 +02:00
|
|
|
loadExplorer(captionTxt);
|
2015-06-30 14:52:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2015-07-06 12:27:48 +02:00
|
|
|
* Instantiates a new workspace explorer select dialog.
|
2015-06-30 14:52:40 +02:00
|
|
|
*
|
|
|
|
* @param captionTxt captionTxt sets the text inside the caption, if null sets "Workspace Explorer"
|
|
|
|
* @param selectableTypes the selectable types
|
|
|
|
* @param showableTypes the showable types
|
|
|
|
*
|
2015-07-07 12:14:25 +02:00
|
|
|
* You can implement {@link WorskpaceExplorerSelectNotificationListener} to receive events
|
2015-06-30 14:52:40 +02:00
|
|
|
*/
|
2015-07-01 11:15:53 +02:00
|
|
|
public WorkspaceExplorerSelectDialog(String captionTxt, List<ItemType> selectableTypes, List<ItemType> showableTypes) {
|
2015-07-30 14:59:36 +02:00
|
|
|
controller = new WorkspaceExplorerController(WorkspaceExplorerConstants.HEIGHT_EXPLORER_PANEL);
|
2015-06-30 14:52:40 +02:00
|
|
|
if(selectableTypes!=null){
|
|
|
|
ItemType[] itemsType = new ItemType[selectableTypes.size()];
|
|
|
|
itemsType = selectableTypes.toArray(itemsType);
|
|
|
|
setSelectableTypes(selectableTypes.toArray(itemsType));
|
|
|
|
}
|
|
|
|
|
|
|
|
if(showableTypes!=null){
|
|
|
|
ItemType[] itemsType = new ItemType[showableTypes.size()];
|
|
|
|
itemsType = showableTypes.toArray(itemsType);
|
|
|
|
setShowableTypes(showableTypes.toArray(itemsType));
|
|
|
|
}
|
2015-07-30 12:03:08 +02:00
|
|
|
|
2015-07-29 16:23:29 +02:00
|
|
|
loadExplorer(captionTxt);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Load explorer.
|
|
|
|
*
|
|
|
|
* @param captionTxt the caption txt
|
|
|
|
*/
|
|
|
|
private void loadExplorer(String captionTxt){
|
2015-08-04 15:35:30 +02:00
|
|
|
WorkspaceExplorerController.eventBus.fireEvent(new LoadRootEvent());
|
2015-06-29 16:45:09 +02:00
|
|
|
initDialog(captionTxt);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Inits the dialog.
|
|
|
|
*
|
|
|
|
* @param captionTxt the caption txt
|
|
|
|
*/
|
|
|
|
private void initDialog(String captionTxt) {
|
2015-06-24 15:18:42 +02:00
|
|
|
this.captionTxt = (captionTxt==null || captionTxt.isEmpty())?WorkspaceExplorerConstants.WORKSPACE_EXPLORER_CAPTION:captionTxt;
|
2015-06-25 18:57:11 +02:00
|
|
|
setAnimation(false);
|
|
|
|
setCloseVisible(true);
|
2015-07-07 18:18:14 +02:00
|
|
|
hide(false);
|
2015-06-25 18:57:11 +02:00
|
|
|
setTitle(this.captionTxt);
|
2015-07-07 12:14:25 +02:00
|
|
|
selectButton = new Button(WorkspaceExplorerConstants.SELECT);
|
2015-06-29 16:45:09 +02:00
|
|
|
selectButton.setType(ButtonType.PRIMARY);
|
2015-07-07 12:14:25 +02:00
|
|
|
setWidth(WorkspaceExplorerConstants.WIDHT_DIALOG);
|
|
|
|
setMaxHeigth(WorkspaceExplorerConstants.MAX_HEIGHT_DIALOG);
|
2015-07-07 18:18:14 +02:00
|
|
|
|
2015-06-29 15:14:00 +02:00
|
|
|
addHideHandler(new HideHandler() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onHide(HideEvent hideEvent) {
|
|
|
|
if(!isSelect)
|
|
|
|
notifyAborted();
|
|
|
|
}
|
|
|
|
});
|
2015-06-24 15:16:13 +02:00
|
|
|
|
2015-06-25 18:57:11 +02:00
|
|
|
add(controller.getWorkspaceExplorerPanel());
|
2015-06-29 16:45:09 +02:00
|
|
|
selectButton.addClickHandler(new ClickHandler() {
|
2015-06-24 15:16:13 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onClick(ClickEvent event) {
|
2015-06-29 15:14:00 +02:00
|
|
|
isSelect = false;
|
|
|
|
Item item = controller.getWsExplorer().getItemSelected();
|
2015-08-03 18:42:05 +02:00
|
|
|
boolean isSelectable = controller.itemIsSelectable(item);
|
|
|
|
|
|
|
|
if(item!=null && isSelectable){
|
2015-06-29 15:14:00 +02:00
|
|
|
isSelect = true;
|
|
|
|
INSTANCE.hide();
|
|
|
|
notifySelectedItem(item);
|
2015-08-04 15:35:30 +02:00
|
|
|
}else if(item==null){ //IGNORING ITEM SELECT, CAN USE BREADCRUMBS?
|
2015-07-01 11:15:53 +02:00
|
|
|
Item itemB = controller.getBreadcrumbs().getLastParent();
|
|
|
|
if(itemB!=null){
|
2015-08-04 15:35:30 +02:00
|
|
|
isSelectable = controller.itemIsSelectable(itemB); //BREADCRUMB IS SELECTABLE?
|
|
|
|
if(isSelectable)
|
|
|
|
setAlertConfirm("Selecting \""+itemB.getName()+"\", confirm?", true, itemB);
|
2015-07-01 11:15:53 +02:00
|
|
|
}
|
2015-06-29 15:14:00 +02:00
|
|
|
}
|
2015-06-24 15:16:13 +02:00
|
|
|
}
|
|
|
|
});
|
2015-06-25 18:57:11 +02:00
|
|
|
|
2015-07-01 11:15:53 +02:00
|
|
|
setAlertConfirm("", false, null);
|
2015-06-29 16:45:09 +02:00
|
|
|
footer.add(selectButton);
|
2015-06-25 18:57:11 +02:00
|
|
|
add(footer);
|
2015-06-29 16:45:09 +02:00
|
|
|
}
|
2015-07-01 11:15:53 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the alert confirm.
|
|
|
|
*
|
|
|
|
* @param html the html
|
2015-07-29 16:23:29 +02:00
|
|
|
* @param show the show
|
|
|
|
* @param item the item
|
2015-07-01 11:15:53 +02:00
|
|
|
*/
|
|
|
|
private void setAlertConfirm(String html, boolean show, final Item item){
|
|
|
|
try{
|
|
|
|
footer.remove(alertConfirm);
|
|
|
|
}catch(Exception e){
|
|
|
|
//silent
|
|
|
|
}
|
|
|
|
|
|
|
|
alertConfirm = new Alert();
|
|
|
|
alertConfirm.setText(html);
|
|
|
|
alertConfirm.setVisible(show);
|
|
|
|
alertConfirm.setClose(true);
|
|
|
|
alertConfirm.setType(AlertType.INFO);
|
|
|
|
|
|
|
|
Button yes = new Button("Yes");
|
|
|
|
yes.setType(ButtonType.LINK);
|
|
|
|
yes.addClickHandler(new ClickHandler() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onClick(ClickEvent event) {
|
|
|
|
if(item!=null){
|
|
|
|
isSelect = true;
|
|
|
|
INSTANCE.hide();
|
|
|
|
notifySelectedItem(item);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
Button no = new Button("No");
|
|
|
|
no.setType(ButtonType.LINK);
|
|
|
|
no.addClickHandler(new ClickHandler() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onClick(ClickEvent event) {
|
|
|
|
alertConfirm.close();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
alertConfirm.add(yes);
|
|
|
|
alertConfirm.add(no);
|
|
|
|
footer.insert(alertConfirm,0);
|
|
|
|
}
|
2015-06-24 15:16:13 +02:00
|
|
|
/**
|
2015-06-29 15:14:00 +02:00
|
|
|
* Notify selected item.
|
|
|
|
*
|
|
|
|
* @param selected the selected
|
|
|
|
*/
|
|
|
|
private void notifySelectedItem(Item selected){
|
|
|
|
|
2015-07-07 12:14:25 +02:00
|
|
|
for (WorskpaceExplorerSelectNotificationListener worskpaceExplorerNotificationListener : listeners) {
|
2015-06-29 15:14:00 +02:00
|
|
|
worskpaceExplorerNotificationListener.onSelectedItem(selected);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Notify aborted.
|
|
|
|
*/
|
|
|
|
private void notifyAborted(){
|
|
|
|
|
2015-07-07 12:14:25 +02:00
|
|
|
for (WorskpaceExplorerSelectNotificationListener worskpaceExplorerNotificationListener : listeners) {
|
2015-06-29 15:14:00 +02:00
|
|
|
worskpaceExplorerNotificationListener.onAborted();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-04 15:35:30 +02:00
|
|
|
/**
|
|
|
|
* Notify not valid selection.
|
|
|
|
*/
|
|
|
|
private void notifyNotValidSelection(){
|
|
|
|
|
|
|
|
for (WorskpaceExplorerSelectNotificationListener worskpaceExplorerNotificationListener : listeners) {
|
|
|
|
worskpaceExplorerNotificationListener.onNotValidSelection();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-06-29 15:14:00 +02:00
|
|
|
/**
|
|
|
|
* Notify failed.
|
|
|
|
*
|
|
|
|
* @param t the t
|
|
|
|
*/
|
2015-06-29 16:45:09 +02:00
|
|
|
@SuppressWarnings("unused")
|
2015-06-29 15:14:00 +02:00
|
|
|
private void notifyFailed(Throwable t){
|
|
|
|
|
2015-07-07 12:14:25 +02:00
|
|
|
for (WorskpaceExplorerSelectNotificationListener worskpaceExplorerNotificationListener : listeners) {
|
2015-06-29 15:14:00 +02:00
|
|
|
worskpaceExplorerNotificationListener.onFailed(t);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the caption txt.
|
|
|
|
*
|
2015-06-24 15:16:13 +02:00
|
|
|
* @return the captionTxt
|
|
|
|
*/
|
|
|
|
public String getCaptionTxt() {
|
|
|
|
return captionTxt;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Checks if is valid hide.
|
|
|
|
*
|
|
|
|
* @return the isValidHide
|
|
|
|
*/
|
|
|
|
public boolean isValidHide() {
|
2015-06-29 15:14:00 +02:00
|
|
|
return isSelect;
|
2015-06-24 15:16:13 +02:00
|
|
|
}
|
|
|
|
|
2015-06-29 15:14:00 +02:00
|
|
|
/* (non-Javadoc)
|
|
|
|
* @see com.github.gwtbootstrap.client.ui.Modal#show()
|
|
|
|
*/
|
2015-06-24 15:16:13 +02:00
|
|
|
@Override
|
|
|
|
public void show() {
|
|
|
|
super.show();
|
2015-06-29 15:14:00 +02:00
|
|
|
isSelect = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* (non-Javadoc)
|
|
|
|
* @see org.gcube.portlets.widgets.wsexplorer.client.notification.WorskpaceExplorerNotification.HasWorskpaceExplorerNotificationListener#addWorkspaceExplorerNotificationListener(org.gcube.portlets.widgets.wsexplorer.client.notification.WorskpaceExplorerNotification.WorskpaceExplorerNotificationListener)
|
|
|
|
*/
|
|
|
|
@Override
|
2015-07-07 12:14:25 +02:00
|
|
|
public void addWorkspaceExplorerSelectNotificationListener(WorskpaceExplorerSelectNotificationListener handler) {
|
2015-06-29 15:14:00 +02:00
|
|
|
if(handler!=null)
|
|
|
|
listeners.add(handler);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* (non-Javadoc)
|
|
|
|
* @see org.gcube.portlets.widgets.wsexplorer.client.notification.WorskpaceExplorerNotification.HasWorskpaceExplorerNotificationListener#removeWorkspaceExplorerNotificationListener(org.gcube.portlets.widgets.wsexplorer.client.notification.WorskpaceExplorerNotification.WorskpaceExplorerNotificationListener)
|
|
|
|
*/
|
|
|
|
@Override
|
2015-07-07 12:14:25 +02:00
|
|
|
public void removeWorkspaceExplorerSelectNotificationListener(WorskpaceExplorerSelectNotificationListener handler) {
|
2015-06-29 15:14:00 +02:00
|
|
|
if(handler!=null){
|
|
|
|
if(listeners.contains(handler))
|
|
|
|
listeners.remove(handler);
|
|
|
|
}
|
2015-06-24 15:16:13 +02:00
|
|
|
}
|
2015-06-29 15:58:35 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set which items are selectable.
|
|
|
|
* @param selectableTypes the selectableTypes to set
|
|
|
|
*/
|
2015-06-29 16:45:09 +02:00
|
|
|
private void setSelectableTypes(ItemType ... selectableTypes) {
|
2015-06-29 15:58:35 +02:00
|
|
|
controller.setSelectableTypes(selectableTypes);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the selectable types.
|
|
|
|
*
|
|
|
|
* @return the selectable types
|
|
|
|
*/
|
|
|
|
public List<ItemType> getSelectableTypes() {
|
|
|
|
return controller.getSelectableTypes();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the showable items.
|
|
|
|
* @return the showableTypes
|
|
|
|
*/
|
|
|
|
public List<ItemType> getShowableTypes() {
|
|
|
|
return controller.getShowableTypes();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the showable items. The folders items are show as default.
|
|
|
|
* @param showableTypes the showableTypes to set
|
|
|
|
*/
|
2015-06-29 16:45:09 +02:00
|
|
|
private void setShowableTypes(ItemType ... showableTypes) {
|
2015-06-29 15:58:35 +02:00
|
|
|
controller.setShowableTypes(showableTypes);
|
|
|
|
}
|
2015-06-24 15:16:13 +02:00
|
|
|
}
|