Added set ZIndex

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-explorer@117663 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2015-08-04 16:22:24 +00:00
parent 1d0bc574f8
commit d7befca07a
2 changed files with 34 additions and 0 deletions

View File

@ -24,6 +24,7 @@ import com.github.gwtbootstrap.client.ui.event.HideHandler;
import com.github.gwtbootstrap.client.ui.event.ShownEvent;
import com.github.gwtbootstrap.client.ui.event.ShownHandler;
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.dom.client.Element;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.Window;
@ -424,4 +425,20 @@ public class WorkspaceExplorerSaveDialog extends Modal implements HasWorskpaceEx
}
/**
* Sets the z index.
*
* @param zIndex the new z index
*/
public void setZIndex(int zIndex){
Element el = null;
try{
el = getElement();
}catch (Exception e) {
//silent
return;
}
el.getStyle().setZIndex(zIndex);
}
}

View File

@ -28,6 +28,7 @@ import com.github.gwtbootstrap.client.ui.constants.ButtonType;
import com.github.gwtbootstrap.client.ui.event.HideEvent;
import com.github.gwtbootstrap.client.ui.event.HideHandler;
import com.google.gwt.core.shared.GWT;
import com.google.gwt.dom.client.Element;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
@ -370,4 +371,20 @@ public class WorkspaceExplorerSelectDialog extends Modal implements HasWorskpace
private void setShowableTypes(ItemType ... showableTypes) {
controller.setShowableTypes(showableTypes);
}
/**
* Sets the z index.
*
* @param zIndex the new z index
*/
public void setZIndex(int zIndex){
Element el = null;
try{
el = getElement();
}catch (Exception e) {
//silent
return;
}
el.getStyle().setZIndex(zIndex);
}
}