256: Workspace explorer

Task-Url: https://support.d4science.org/issues/256

Updated method

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-explorer@117527 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2015-07-28 14:52:35 +00:00
parent 622e28a17d
commit cf9b4bfffc
1 changed files with 6 additions and 6 deletions

View File

@ -21,7 +21,6 @@ import com.github.gwtbootstrap.client.ui.constants.AlertType;
import com.github.gwtbootstrap.client.ui.constants.ButtonType;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.ScrollPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
@ -44,7 +43,6 @@ public class WorkspaceExplorerSelectPanel extends ScrollPanel implements HasWors
private WorkspaceExplorerController controller = new WorkspaceExplorerController();
private List<WorskpaceExplorerSelectNotificationListener> listeners = new ArrayList<WorskpaceExplorerSelectNotificationListener>();
private VerticalPanel mainVP = new VerticalPanel();
private HorizontalPanel footerHP = new HorizontalPanel();
/**
* Instantiates a new workspace explorer select panel.
@ -103,14 +101,16 @@ public class WorkspaceExplorerSelectPanel extends ScrollPanel implements HasWors
/**
* Inits the dialog.
* Inits the panel.
*
* @param captionTxt the caption txt
* @param captionTxt the caption txt is the tool-tip
*/
private void initPanel(String captionTxt) {
this.captionTxt = (captionTxt==null || captionTxt.isEmpty())?WorkspaceExplorerConstants.WORKSPACE_EXPLORER_CAPTION:captionTxt;
setTitle(this.captionTxt);
this.captionTxt = captionTxt;
if(this.captionTxt!=null && !this.captionTxt.isEmpty())
setTitle(this.captionTxt);
selectButton = new Button(WorkspaceExplorerConstants.SELECT);
selectButton.setType(ButtonType.PRIMARY);
setWidth(WorkspaceExplorerConstants.WIDHT_DIALOG+"px");